RawSpeed
fast raw decoding library
Loading...
Searching...
No Matches
PhaseOneDecompressor.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) 2018 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"
27#include "io/ByteStream.h"
28#include <vector>
29
30namespace rawspeed {
31
32struct PhaseOneStrip final {
33 int n;
35
36 PhaseOneStrip() = default;
37 PhaseOneStrip(int block, ByteStream bs_) : n(block), bs(bs_) {}
38};
39
42
43 std::vector<PhaseOneStrip> strips;
44
45 void decompressStrip(const PhaseOneStrip& strip) const;
46
47 void decompressThread() const noexcept;
48
49 void prepareStrips();
50
51public:
53
54 void decompress() const;
55};
56
57} // namespace rawspeed
std::vector< PhaseOneStrip > strips
void decompressStrip(const PhaseOneStrip &strip) const
PhaseOneDecompressor(RawImage img, std::vector< PhaseOneStrip > &&strips_)
STL class.
PhaseOneStrip(int block, ByteStream bs_)