RawSpeed
fast raw decoding library
Loading...
Searching...
No Matches
BitStreamMSB16.h
Go to the documentation of this file.
1
/*
2
RawSpeed - RAW file decoder.
3
4
Copyright (C) 2009-2014 Klaus Post
5
Copyright (C) 2017 Axel Waggershauser
6
Copyright (C) 2017-2021 Roman Lebedev
7
8
This library is free software; you can redistribute it and/or
9
modify it under the terms of the GNU Lesser General Public
10
License as published by the Free Software Foundation; either
11
version 2 of the License, or (at your option) any later version.
12
13
This library is distributed in the hope that it will be useful,
14
but WITHOUT ANY WARRANTY; without even the implied warranty of
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
Lesser General Public License for more details.
17
18
You should have received a copy of the GNU Lesser General Public
19
License along with this library; if not, write to the Free Software
20
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21
*/
22
23
#pragma once
24
25
#include "
bitstreams/BitStream.h
"
26
#include "
io/Endianness.h
"
27
#include <cstdint>
28
29
namespace
rawspeed
{
30
31
template
<>
struct
BitStreamTraits
<
BitOrder
::
MSB16
> final {
32
static
constexpr
BitOrder
Tag
=
BitOrder::MSB16
;
33
34
using
StreamFlow
=
BitStreamCacheRightInLeftOut
;
35
36
static
constexpr
bool
FixedSizeChunks
=
true
;
37
38
using
ChunkType
=
uint16_t
;
39
40
static
constexpr
Endianness
ChunkEndianness
=
Endianness::little
;
41
42
static
constexpr
int
MinLoadStepByteMultiple
= 2;
43
};
44
45
}
// namespace rawspeed
BitStream.h
Declaration of the bitstream data structure.
Endianness.h
uint16_t
rawspeed
Definition
CoalescingOutputIteratorBenchmark.cpp:35
rawspeed::BitOrder
BitOrder
Definition
BitStreams.h:28
rawspeed::BitOrder::MSB16
@ MSB16
Definition
BitStreams.h:32
rawspeed::Endianness
Endianness
Definition
Endianness.h:31
rawspeed::Endianness::little
@ little
Definition
Endianness.h:32
rawspeed::BitStreamCacheRightInLeftOut
Definition
BitStream.h:92
rawspeed::BitStreamTraits< BitOrder::MSB16 >::ChunkEndianness
static constexpr Endianness ChunkEndianness
Definition
BitStreamMSB16.h:40
rawspeed::BitStreamTraits< BitOrder::MSB16 >::MinLoadStepByteMultiple
static constexpr int MinLoadStepByteMultiple
Definition
BitStreamMSB16.h:42
rawspeed::BitStreamTraits< BitOrder::MSB16 >::Tag
static constexpr BitOrder Tag
Definition
BitStreamMSB16.h:32
rawspeed::BitStreamTraits< BitOrder::MSB16 >::ChunkType
uint16_t ChunkType
Definition
BitStreamMSB16.h:38
rawspeed::BitStreamTraits< BitOrder::MSB16 >::StreamFlow
BitStreamCacheRightInLeftOut StreamFlow
Definition
BitStreamMSB16.h:34
rawspeed::BitStreamTraits< BitOrder::MSB16 >::FixedSizeChunks
static constexpr bool FixedSizeChunks
Definition
BitStreamMSB16.h:36
rawspeed::BitStreamTraits
Definition
BitStream.h:33
librawspeed
bitstreams
BitStreamMSB16.h
Generated by
1.15.0