Blame lib/dngfile.hpp

rpm-build d2b433
/* -*- Mode: C++ -*- */
rpm-build d2b433
/*
rpm-build d2b433
 * libopenraw - dngfile.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_DNGFILE_H_
rpm-build d2b433
#define OR_INTERNALS_DNGFILE_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 "ifdfile.hpp"
rpm-build d2b433
#include "io/stream.hpp"
rpm-build d2b433
#include "tiffepfile.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 DngFile
rpm-build d2b433
    : public TiffEpFile
rpm-build d2b433
{
rpm-build d2b433
public:
rpm-build d2b433
    static RawFile *factory(const IO::Stream::Ptr &);
rpm-build d2b433
rpm-build d2b433
    DngFile(const IO::Stream::Ptr &);
rpm-build d2b433
    virtual ~DngFile();
rpm-build d2b433
rpm-build d2b433
    DngFile(const DngFile&) = delete;
rpm-build d2b433
    DngFile & operator=(const DngFile&) = delete;
rpm-build d2b433
rpm-build d2b433
rpm-build d2b433
    /** DNG specific for now: check if file is Cinema DNG. */
rpm-build d2b433
    bool isCinema() const;
rpm-build d2b433
protected:
rpm-build d2b433
    virtual ::or_error _getRawData(RawData & data, uint32_t options) override;
rpm-build d2b433
    virtual void _identifyId() override;
rpm-build d2b433
rpm-build d2b433
private:
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