RawSpeed
fast raw decoding library
Loading...
Searching...
No Matches
NakedDecoder.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
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 "
bitstreams/BitStreams.h
"
25
#include "
common/RawImage.h
"
26
#include "
decoders/RawDecoder.h
"
27
#include <cstdint>
28
29
namespace
rawspeed
{
30
31
class
Buffer
;
32
class
Camera
;
33
class
CameraMetaData
;
34
35
class
NakedDecoder
final :
public
RawDecoder
{
36
const
Camera
*
cam
;
37
38
uint32_t
width
{0};
39
uint32_t
height
{0};
40
uint32_t
filesize
{0};
41
uint32_t
bits
{0};
42
uint32_t
offset
{0};
43
BitOrder
bo
{
BitOrder::MSB16
};
44
45
void
parseHints
();
46
47
public
:
48
NakedDecoder
(
Buffer
file,
const
Camera
* c);
49
RawImage
decodeRawInternal
()
override
;
50
void
checkSupportInternal
(
const
CameraMetaData
* meta)
override
;
51
void
decodeMetaDataInternal
(
const
CameraMetaData
* meta)
override
;
52
53
private
:
54
[[nodiscard]]
int
getDecoderVersion
()
const override
{
return
0; }
55
};
56
57
}
// namespace rawspeed
BitStreams.h
RawDecoder.h
RawImage.h
rawspeed::Buffer
Definition
Buffer.h:47
rawspeed::Camera
Definition
Camera.h:77
rawspeed::CameraMetaData
Definition
CameraMetaData.h:47
rawspeed::NakedDecoder::decodeRawInternal
RawImage decodeRawInternal() override
Definition
NakedDecoder.cpp:100
rawspeed::NakedDecoder::NakedDecoder
NakedDecoder(Buffer file, const Camera *c)
Definition
NakedDecoder.cpp:44
rawspeed::NakedDecoder::offset
uint32_t offset
Definition
NakedDecoder.h:42
rawspeed::NakedDecoder::decodeMetaDataInternal
void decodeMetaDataInternal(const CameraMetaData *meta) override
Definition
NakedDecoder.cpp:120
rawspeed::NakedDecoder::parseHints
void parseHints()
Definition
NakedDecoder.cpp:64
rawspeed::NakedDecoder::height
uint32_t height
Definition
NakedDecoder.h:39
rawspeed::NakedDecoder::width
uint32_t width
Definition
NakedDecoder.h:38
rawspeed::NakedDecoder::getDecoderVersion
int getDecoderVersion() const override
Definition
NakedDecoder.h:54
rawspeed::NakedDecoder::checkSupportInternal
void checkSupportInternal(const CameraMetaData *meta) override
Definition
NakedDecoder.cpp:116
rawspeed::NakedDecoder::filesize
uint32_t filesize
Definition
NakedDecoder.h:40
rawspeed::NakedDecoder::bits
uint32_t bits
Definition
NakedDecoder.h:41
rawspeed::NakedDecoder::bo
BitOrder bo
Definition
NakedDecoder.h:43
rawspeed::NakedDecoder::cam
const Camera * cam
Definition
NakedDecoder.h:36
rawspeed::RawDecoder::RawDecoder
RawDecoder(Buffer file)
Definition
RawDecoder.cpp:54
rawspeed::RawImage
Definition
RawImage.h:247
uint32_t
rawspeed
Definition
CoalescingOutputIteratorBenchmark.cpp:35
rawspeed::BitOrder
BitOrder
Definition
BitStreams.h:28
rawspeed::BitOrder::MSB16
@ MSB16
Definition
BitStreams.h:32
librawspeed
decoders
NakedDecoder.h
Generated by
1.15.0