Blame lib/nefcfaiterator.hpp

rpm-build d2b433
/* -*- mode:c++; tab-width:4; c-basic-offset:4 -*- */
rpm-build d2b433
/*
rpm-build d2b433
 * libopenraw - nefcfaiterator.h
rpm-build d2b433
 *
rpm-build d2b433
 * Copyright (C) 2008 Rafael Avila de Espindola.
rpm-build d2b433
 *
rpm-build d2b433
 * This library is free software: you can redistribute it and/or
rpm-build d2b433
 * modify it under the terms of the GNU Lesser General Public License
rpm-build d2b433
 * as published by the Free Software Foundation, either version 3 of
rpm-build d2b433
 * the License, or (at your option) any later version.
rpm-build d2b433
 *
rpm-build d2b433
 * This library is distributed in the hope that it will be useful,
rpm-build d2b433
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
rpm-build d2b433
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
rpm-build d2b433
 * Lesser General Public License for more details.
rpm-build d2b433
 *
rpm-build d2b433
 * You should have received a copy of the GNU Lesser General Public
rpm-build d2b433
 * License along with this library.  If not, see
rpm-build d2b433
 * <http://www.gnu.org/licenses/>.
rpm-build d2b433
 */
rpm-build d2b433
rpm-build d2b433
#ifndef OR_INTERNALS_NEFCFAITERATOR_H_
rpm-build d2b433
#define OR_INTERNALS_NEFCFAITERATOR_H_
rpm-build d2b433
rpm-build d2b433
#include <stddef.h>
rpm-build d2b433
#include <stdint.h>
rpm-build d2b433
rpm-build d2b433
#include "nefdiffiterator.hpp"
rpm-build d2b433
rpm-build d2b433
namespace OpenRaw {
rpm-build d2b433
namespace Internals {
rpm-build d2b433
rpm-build d2b433
class NefCfaIterator {
rpm-build d2b433
	NefDiffIterator m_diffs;
rpm-build d2b433
	size_t m_rows;
rpm-build d2b433
	size_t m_columns;
rpm-build d2b433
	unsigned int m_row;
rpm-build d2b433
	unsigned int m_column;
rpm-build d2b433
	uint16_t m_vpred[2][2];
rpm-build d2b433
	uint16_t m_hpred[2];
rpm-build d2b433
rpm-build d2b433
public:
rpm-build d2b433
rpm-build d2b433
	NefCfaIterator (const NefDiffIterator&, size_t, size_t,
rpm-build d2b433
					const uint16_t(*)[2]);
rpm-build d2b433
	uint16_t get();
rpm-build d2b433
};
rpm-build d2b433
rpm-build d2b433
}
rpm-build d2b433
}
rpm-build d2b433
rpm-build d2b433
#endif