RawSpeed
fast raw decoding library
Loading...
Searching...
No Matches
PentaxDecompressor.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
7
This library is free software; you can redistribute it and/or
8
modify it under the terms of the GNU Lesser General Public
9
License as published by the Free Software Foundation; either
10
version 2 of 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, write to the Free Software
19
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
*/
21
22
#pragma once
23
24
#include "
adt/Optional.h
"
25
#include "
codes/AbstractPrefixCode.h
"
26
#include "
codes/HuffmanCode.h
"
27
#include "
codes/PrefixCodeDecoder.h
"
28
#include "
common/RawImage.h
"
29
#include "
decompressors/AbstractDecompressor.h
"
30
#include <array>
31
#include <cstdint>
32
33
namespace
rawspeed
{
34
35
class
ByteStream
;
36
37
class
PentaxDecompressor
final :
public
AbstractDecompressor
{
38
RawImage
mRaw
;
39
const
PrefixCodeDecoder<>
ht
;
40
41
public
:
42
PentaxDecompressor
(
RawImage
img,
Optional<ByteStream>
metaData);
43
44
void
decompress
(
ByteStream
data)
const
;
45
46
private
:
47
static
HuffmanCode<BaselineCodeTag>
SetupPrefixCodeDecoder_Legacy
();
48
static
HuffmanCode<BaselineCodeTag>
49
SetupPrefixCodeDecoder_Modern
(
ByteStream
stream);
50
static
PrefixCodeDecoder<>
51
SetupPrefixCodeDecoder
(
Optional<ByteStream>
metaData);
52
53
static
const
std::array<std::array<std::array<uint8_t, 16>, 2>, 1>
54
pentax_tree
;
55
};
56
57
}
// namespace rawspeed
AbstractDecompressor.h
AbstractPrefixCode.h
HuffmanCode.h
Optional.h
PrefixCodeDecoder.h
RawImage.h
rawspeed::AbstractDecompressor
Definition
AbstractDecompressor.h:25
rawspeed::ByteStream
Definition
ByteStream.h:43
rawspeed::HuffmanCode
Definition
HuffmanCode.h:42
rawspeed::Optional
Definition
Optional.h:30
rawspeed::PentaxDecompressor::pentax_tree
static const std::array< std::array< std::array< uint8_t, 16 >, 2 >, 1 > pentax_tree
Definition
PentaxDecompressor.h:54
rawspeed::PentaxDecompressor::decompress
void decompress(ByteStream data) const
Definition
PentaxDecompressor.cpp:156
rawspeed::PentaxDecompressor::SetupPrefixCodeDecoder
static PrefixCodeDecoder SetupPrefixCodeDecoder(Optional< ByteStream > metaData)
Definition
PentaxDecompressor.cpp:142
rawspeed::PentaxDecompressor::mRaw
RawImage mRaw
Definition
PentaxDecompressor.h:38
rawspeed::PentaxDecompressor::SetupPrefixCodeDecoder_Modern
static HuffmanCode< BaselineCodeTag > SetupPrefixCodeDecoder_Modern(ByteStream stream)
Definition
PentaxDecompressor.cpp:81
rawspeed::PentaxDecompressor::ht
const PrefixCodeDecoder ht
Definition
PentaxDecompressor.h:39
rawspeed::PentaxDecompressor::PentaxDecompressor
PentaxDecompressor(RawImage img, Optional< ByteStream > metaData)
Definition
PentaxDecompressor.cpp:53
rawspeed::PentaxDecompressor::SetupPrefixCodeDecoder_Legacy
static HuffmanCode< BaselineCodeTag > SetupPrefixCodeDecoder_Legacy()
Definition
PentaxDecompressor.cpp:68
rawspeed::RawImage
Definition
RawImage.h:247
rawspeed
Definition
CoalescingOutputIteratorBenchmark.cpp:35
rawspeed::PrefixCodeDecoder
PrefixCodeLUTDecoder< CodeTag, PrefixCodeLookupDecoder< CodeTag > > PrefixCodeDecoder
Definition
PrefixCodeDecoder.h:37
librawspeed
decompressors
PentaxDecompressor.h
Generated by
1.15.0