RawSpeed
fast raw decoding library
Loading...
Searching...
No Matches
FujiDecompressor.h
Go to the documentation of this file.
1/*
2 RawSpeed - RAW file decoder.
3
4 Copyright (C) 2017 Uwe Müssel
5 Copyright (C) 2017 Roman Lebedev
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.1 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 "rawspeedconfig.h"
25#include "adt/Array1DRef.h"
26#include "adt/Point.h"
27#include "common/RawImage.h"
29#include "io/ByteStream.h"
30#include <cstdint>
31#include <vector>
32
33namespace rawspeed {
34
37
38public:
40
41 void decompress() const;
42
43 struct FujiHeader final {
44 FujiHeader() = default;
45
46 explicit FujiHeader(ByteStream& input_);
47 explicit RAWSPEED_READONLY operator bool() const; // validity check
48
50 uint8_t version;
51 uint8_t raw_type;
52 uint8_t raw_bits;
60 };
61
62private:
64
66
67 std::vector<Array1DRef<const uint8_t>> strips;
68};
69
70} // namespace rawspeed
std::vector< Array1DRef< const uint8_t > > strips
FujiDecompressor(RawImage img, ByteStream input)