libopenraw
|
00001 /* -*- mode:c++; tab-width:4; c-basic-offset:4 -*- */ 00002 /* 00003 * libopenraw - nefcfaiterator.h 00004 * 00005 * Copyright (C) 2008 Rafael Avila de Espindola. 00006 * 00007 * This library is free software: you can redistribute it and/or 00008 * modify it under the terms of the GNU Lesser General Public License 00009 * as published by the Free Software Foundation, either version 3 of 00010 * the License, or (at your option) any later version. 00011 * 00012 * This library is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 * Lesser General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Lesser General Public 00018 * License along with this library. If not, see 00019 * <http://www.gnu.org/licenses/>. 00020 */ 00021 00022 #ifndef __NEFCFAITERATOR_H_ 00023 #define __NEFCFAITERATOR_H_ 00024 00025 #include "nefdiffiterator.h" 00026 00027 namespace OpenRaw { 00028 namespace Internals { 00029 00030 class NefCfaIterator { 00031 NefDiffIterator m_diffs; 00032 size_t m_rows; 00033 size_t m_columns; 00034 unsigned int m_row; 00035 unsigned int m_column; 00036 uint16_t m_vpred[2][2]; 00037 uint16_t m_hpred[2]; 00038 00039 public: 00040 00041 NefCfaIterator (const NefDiffIterator&, size_t, size_t, 00042 const uint16_t(*)[2]); 00043 uint16_t get(); 00044 }; 00045 00046 } 00047 } 00048 00049 #endif