RawSpeed
fast raw decoding library
Loading...
Searching...
No Matches
PanasonicV6Decompressor.h
Go to the documentation of this file.
1/*
2 RawSpeed - RAW file decoder.
3
4 Copyright (C) 2020 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.1 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 "common/RawImage.h"
25#include "io/ByteStream.h"
26#include <cstdint>
27
28namespace rawspeed {
29
32
34
35 // Contains the decoding recepie for the block,
36 struct BlockDsc;
37
38 // There are two variants. Which one is to be used depends on image's bps.
41
43
44 template <const BlockDsc& dsc>
45 inline void __attribute__((always_inline))
46 decompressBlock(ByteStream& rowInput, int row, int col) const noexcept;
47
48 template <const BlockDsc& dsc> void decompressRow(int row) const noexcept;
49
50 template <const BlockDsc& dsc> void decompressInternal() const noexcept;
51
52public:
54
55 void decompress() const noexcept;
56};
57
58} // namespace rawspeed
void decompressInternal() const noexcept
PanasonicV6Decompressor(RawImage img, ByteStream input_, uint32_t bps_)
void decompress() const noexcept
void __attribute__((always_inline)) decompressBlock(ByteStream &rowInput
void decompressRow(int row) const noexcept