libopenraw
orfcontainer.hpp
1/* -*- Mode: C++ -*- */
2/*
3 * libopenraw - orfcontainer.h
4 *
5 * Copyright (C) 2006-2015 Hubert Figuiere
6 *
7 * This library is free software: you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public License
9 * as published by the Free Software Foundation, either version 3 of
10 * the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library. If not, see
19 * <http://www.gnu.org/licenses/>.
20 */
21
22
23#ifndef OR_INTERNALS_ORF_CONTAINER_H_
24#define OR_INTERNALS_ORF_CONTAINER_H_
25
26#include <sys/types.h>
27
28#include "io/stream.hpp"
29#include "rawcontainer.hpp"
30#include "ifdfilecontainer.hpp"
31
32namespace OpenRaw {
33namespace Internals {
34
35static const char ORF_SUBTYPE_16BPP = 'O';
36static const char ORF_SUBTYPE_12BPP = 'S';
37
39 : public IfdFileContainer
40{
41public:
42 OrfContainer(const IO::Stream::Ptr &file, off_t offset);
44 virtual ~OrfContainer();
45
46 OrfContainer(const OrfContainer &) = delete;
47 OrfContainer & operator=(const OrfContainer &) = delete;
48
53 isMagicHeader(const char *p, int len) override;
54
55private:
56 char subtype_;
57};
58
59}
60}
61
62
63#endif
virtual IfdFileContainer::EndianType isMagicHeader(const char *p, int len) override
CIFF is the container for CRW files. It is an attempt from Canon to make this a standard....
Definition: arwfile.cpp:30