RawSpeed
fast raw decoding library
Loading...
Searching...
No Matches
KodakDecompressor.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) 2014 Pedro CĂ´rte-Real
6
Copyright (C) 2017 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 "
common/RawImage.h
"
26
#include "
decompressors/AbstractDecompressor.h
"
27
#include "
io/ByteStream.h
"
28
#include <array>
29
#include <cstdint>
30
31
namespace
rawspeed
{
32
33
class
KodakDecompressor
final :
public
AbstractDecompressor
{
34
RawImage
mRaw
;
35
ByteStream
input
;
36
int
bps
;
37
bool
uncorrectedRawValues
;
38
39
static
constexpr
int
segment_size
= 256;
// pixels
40
using
segment
= std::array<int16_t, segment_size>;
41
42
segment
decodeSegment
(
uint32_t
bsize);
43
44
public
:
45
KodakDecompressor
(
RawImage
img,
ByteStream
bs,
int
bps
,
46
bool
uncorrectedRawValues_);
47
48
void
decompress
();
49
};
50
51
}
// namespace rawspeed
AbstractDecompressor.h
ByteStream.h
RawImage.h
rawspeed::AbstractDecompressor
Definition
AbstractDecompressor.h:25
rawspeed::ByteStream
Definition
ByteStream.h:43
rawspeed::KodakDecompressor::bps
int bps
Definition
KodakDecompressor.h:36
rawspeed::KodakDecompressor::mRaw
RawImage mRaw
Definition
KodakDecompressor.h:34
rawspeed::KodakDecompressor::KodakDecompressor
KodakDecompressor(RawImage img, ByteStream bs, int bps, bool uncorrectedRawValues_)
Definition
KodakDecompressor.cpp:46
rawspeed::KodakDecompressor::decodeSegment
segment decodeSegment(uint32_t bsize)
Definition
KodakDecompressor.cpp:68
rawspeed::KodakDecompressor::uncorrectedRawValues
bool uncorrectedRawValues
Definition
KodakDecompressor.h:37
rawspeed::KodakDecompressor::input
ByteStream input
Definition
KodakDecompressor.h:35
rawspeed::KodakDecompressor::decompress
void decompress()
Definition
KodakDecompressor.cpp:120
rawspeed::KodakDecompressor::segment_size
static constexpr int segment_size
Definition
KodakDecompressor.h:39
rawspeed::KodakDecompressor::segment
std::array< int16_t, segment_size > segment
Definition
KodakDecompressor.h:40
rawspeed::RawImage
Definition
RawImage.h:247
uint32_t
rawspeed
Definition
CoalescingOutputIteratorBenchmark.cpp:35
librawspeed
decompressors
KodakDecompressor.h
Generated by
1.15.0