libopenraw
lib
bititerator.hpp
1
/* -*- tab-width:4; c-basic-offset:4 -*- */
2
/*
3
* libopenraw - bititerator.cpp
4
*
5
* Copyright (C) 2008 Rafael Avila de Espindola.
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
#ifndef OR_INTERNAL_BITITERATOR_H_
23
#define OR_INTERNAL_BITITERATOR_H_
24
25
#include <stdint.h>
26
#include <stddef.h>
27
28
namespace
OpenRaw
{
29
namespace
Internals {
30
31
class
BitIterator
{
32
const
uint8_t* m_p;
33
size_t
m_size;
34
35
uint32_t m_bitBuffer;
36
size_t
m_bitsOnBuffer;
37
void
load(
size_t
numBits);
38
39
public
:
40
BitIterator
(
const
uint8_t *p,
size_t
s);
41
uint32_t
get
(size_t);
42
uint32_t peek(
size_t
);
43
void
skip(
size_t
);
44
};
45
46
}
47
}
48
49
#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::BitIterator
Definition:
bititerator.hpp:31
Generated by
1.8.13