libopenraw
lib
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
32
namespace
OpenRaw
{
33
namespace
Internals {
34
35
static
const
char
ORF_SUBTYPE_16BPP =
'O'
;
36
static
const
char
ORF_SUBTYPE_12BPP =
'S'
;
37
38
class
OrfContainer
39
:
public
IfdFileContainer
40
{
41
public
:
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
52
virtual
IfdFileContainer::EndianType
53
isMagicHeader
(
const
char
*p,
int
len)
override
;
54
55
private
:
56
char
subtype_;
57
};
58
59
}
60
}
61
62
63
#endif
OpenRaw
CIFF is the container for CRW files. It is an attempt from Canon to make this a standard. I guess it failed.
Definition:
arwfile.cpp:30
OpenRaw::Internals::IfdFileContainer
Definition:
ifdfilecontainer.hpp:47
OpenRaw::Internals::OrfContainer::isMagicHeader
virtual IfdFileContainer::EndianType isMagicHeader(const char *p, int len) override
Definition:
orfcontainer.cpp:41
OpenRaw::Internals::RawContainer::EndianType
EndianType
Definition:
rawcontainer.hpp:44
OpenRaw::Internals::OrfContainer::~OrfContainer
virtual ~OrfContainer()
Definition:
orfcontainer.cpp:37
OpenRaw::Internals::OrfContainer
Definition:
orfcontainer.hpp:38
Generated by
1.8.13