Blame lib/cr2file.hpp

rpm-build d2b433
/* -*- Mode: C++ -*- */
rpm-build d2b433
/*
rpm-build d2b433
 * libopenraw - cr2file.h
rpm-build d2b433
 *
rpm-build d2b433
 * Copyright (C) 2006-2016 Hubert Figuiere
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_CR2FILE_H_
rpm-build d2b433
#define OR_INTERNALS_CR2FILE_H_
rpm-build d2b433
rpm-build d2b433
#include <stdint.h>
rpm-build d2b433
rpm-build d2b433
#include <libopenraw/consts.h>
rpm-build d2b433
rpm-build d2b433
#include "rawfile.hpp"
rpm-build d2b433
#include "io/stream.hpp"
rpm-build d2b433
#include "ifddir.hpp"
rpm-build d2b433
#include "ifdfile.hpp"
rpm-build d2b433
rpm-build d2b433
namespace OpenRaw {
rpm-build d2b433
rpm-build d2b433
class RawData;
rpm-build d2b433
rpm-build d2b433
namespace Internals {
rpm-build d2b433
rpm-build d2b433
class Cr2File
rpm-build d2b433
    : public IfdFile
rpm-build d2b433
{
rpm-build d2b433
public:
rpm-build d2b433
    static RawFile *factory(const IO::Stream::Ptr &s);
rpm-build d2b433
    Cr2File(const IO::Stream::Ptr &s);
rpm-build d2b433
    virtual ~Cr2File();
rpm-build d2b433
rpm-build d2b433
    Cr2File(const Cr2File&) = delete;
rpm-build d2b433
    Cr2File & operator=(const Cr2File&) = delete;
rpm-build d2b433
protected:
rpm-build d2b433
    virtual IfdDir::Ref  _locateCfaIfd() override;
rpm-build d2b433
    virtual IfdDir::Ref  _locateMainIfd() override;
rpm-build d2b433
private:
rpm-build d2b433
    virtual ::or_error _getRawData(RawData & data, uint32_t options) override;
rpm-build d2b433
rpm-build d2b433
    static const IfdFile::camera_ids_t s_def[];
rpm-build d2b433
};
rpm-build d2b433
rpm-build d2b433
}
rpm-build d2b433
}
rpm-build d2b433
rpm-build d2b433
#endif