RawSpeed
fast raw decoding library
Loading...
Searching...
No Matches
HasselbladLJpegDecoder.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 "
decompressors/AbstractLJpegDecoder.h
"
25
26
namespace
rawspeed
{
27
28
class
ByteStream
;
29
class
RawImage
;
30
31
class
HasselbladLJpegDecoder
final :
public
AbstractLJpegDecoder
{
32
// Old Hasselblad cameras don't end their LJpeg stream with an EOI.
33
// After fully decoding (first) Scan, just stop.
34
[[nodiscard]]
bool
erratumImplicitEOIMarkerAfterScan
()
const override
{
35
return
true
;
36
}
37
38
[[nodiscard]]
ByteStream::size_type
decodeScan
()
override
;
39
40
public
:
41
HasselbladLJpegDecoder
(
ByteStream
bs,
const
RawImage
& img);
42
43
void
decode
();
44
};
45
46
}
// namespace rawspeed
AbstractLJpegDecoder.h
rawspeed::AbstractLJpegDecoder::AbstractLJpegDecoder
AbstractLJpegDecoder(ByteStream bs, RawImage img)
Definition
AbstractLJpegDecoder.cpp:49
rawspeed::Buffer::size_type
uint32_t size_type
Definition
Buffer.h:49
rawspeed::ByteStream
Definition
ByteStream.h:43
rawspeed::HasselbladLJpegDecoder::decode
void decode()
Definition
HasselbladLJpegDecoder.cpp:68
rawspeed::HasselbladLJpegDecoder::HasselbladLJpegDecoder
HasselbladLJpegDecoder(ByteStream bs, const RawImage &img)
Definition
HasselbladLJpegDecoder.cpp:35
rawspeed::HasselbladLJpegDecoder::decodeScan
ByteStream::size_type decodeScan() override
Definition
HasselbladLJpegDecoder.cpp:50
rawspeed::HasselbladLJpegDecoder::erratumImplicitEOIMarkerAfterScan
bool erratumImplicitEOIMarkerAfterScan() const override
Definition
HasselbladLJpegDecoder.h:34
rawspeed::RawImage
Definition
RawImage.h:247
rawspeed
Definition
CoalescingOutputIteratorBenchmark.cpp:35
librawspeed
decompressors
HasselbladLJpegDecoder.h
Generated by
1.15.0