RawSpeed
fast raw decoding library
Loading...
Searching...
No Matches
JpegDecompressor.h
Go to the documentation of this file.
1
/*
2
RawSpeed - RAW file decoder.
3
4
Copyright (C) 2017 Roman Lebedev
5
6
This library is free software; you can redistribute it and/or
7
modify it under the terms of the GNU Lesser General Public
8
License as published by the Free Software Foundation; either
9
version 2 of the License, or (at your option) any later version.
10
11
This library is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
Lesser General Public License for more details.
15
16
You should have received a copy of the GNU Lesser General Public
17
License along with this library; if not, write to the Free Software
18
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19
*/
20
21
#pragma once
22
23
#include "rawspeedconfig.h"
24
25
#ifdef HAVE_JPEG
26
27
#include "
common/RawImage.h
"
28
#include "
decompressors/AbstractDecompressor.h
"
29
#include "
io/Buffer.h
"
30
#include <cstdint>
31
#include <utility>
32
33
namespace
rawspeed
{
34
35
class
JpegDecompressor final :
public
AbstractDecompressor
{
36
struct
JpegDecompressStruct;
37
38
Buffer input;
39
RawImage mRaw;
40
41
public
:
42
JpegDecompressor(Buffer bs, RawImage img) : input(bs), mRaw(std::move(img)) {}
43
44
void
decode(uint32_t offsetX, uint32_t offsetY);
45
};
46
47
}
// namespace rawspeed
48
49
#else
50
51
#pragma message \
52
"JPEG is not present! Lossy JPEG compression will not be supported!"
53
54
#endif
AbstractDecompressor.h
Buffer.h
RawImage.h
rawspeed::AbstractDecompressor
Definition
AbstractDecompressor.h:25
rawspeed
Definition
CoalescingOutputIteratorBenchmark.cpp:35
librawspeed
decompressors
JpegDecompressor.h
Generated by
1.15.0