libopenraw
rawfile_private.hpp
1/*
2 * libopenraw - rawfile_private.h
3 *
4 * Copyright (C) 2012-2016 Hubert Figuiere
5 *
6 * This library is free software: you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public License
8 * as published by the Free Software Foundation, either version 3 of
9 * the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library. If not, see
18 * <http://www.gnu.org/licenses/>.
19 */
20
21#ifndef OR_INTERNALS_RAWFILE_PRIV_H_
22#define OR_INTERNALS_RAWFILE_PRIV_H_
23
24#include <assert.h>
25
26#include <map>
27
28#include "rawfile.hpp"
29
30namespace OpenRaw {
31namespace Internals {
32
35{
36 OpenRaw::RawFile::TypeId camera;
37 uint16_t black;
38 uint16_t white;
39 int16_t matrix[9]; // in 1/10,000th
40};
41
46{
47public:
48 ThumbDesc(uint32_t _x, uint32_t _y, ::or_data_type _type,
49 size_t _offset, size_t _length)
50 : x(_x), y(_y), type(_type)
51 , offset(_offset), length(_length)
52 {
53#ifdef DEBUG
54 assert(_length);
55#endif
56 }
57 ThumbDesc()
58 : x(0), y(0), type(OR_DATA_TYPE_NONE)
59 , offset(0), length(0)
60 {
61 }
62 uint32_t x;
63 uint32_t y;
64 ::or_data_type type;
65 size_t offset;
66 size_t length;
67};
68
69typedef std::map<uint32_t, ThumbDesc> ThumbLocations;
70
71}
72}
73
74/*
75 Local Variables:
76 mode:c++
77 c-file-style:"stroustrup"
78 c-file-offsets:((innamespace . 0))
79 tab-width:2
80 c-basic-offset:2
81 indent-tabs-mode:nil
82 fill-column:80
83 End:
84*/
85#endif
CIFF is the container for CRW files. It is an attempt from Canon to make this a standard....
Definition: arwfile.cpp:30