/src/libheif/libheif/codecs/vvc_dec.h
Line | Count | Source |
1 | | /* |
2 | | * HEIF codec. |
3 | | * Copyright (c) 2024 Dirk Farin <dirk.farin@gmail.com> |
4 | | * |
5 | | * This file is part of libheif. |
6 | | * |
7 | | * libheif is free software: you can redistribute it and/or modify |
8 | | * it under the terms of the GNU Lesser General Public License as |
9 | | * published by the Free Software Foundation, either version 3 of |
10 | | * the License, or (at your option) any later version. |
11 | | * |
12 | | * libheif 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 |
15 | | * GNU Lesser General Public License for more details. |
16 | | * |
17 | | * You should have received a copy of the GNU Lesser General Public License |
18 | | * along with libheif. If not, see <http://www.gnu.org/licenses/>. |
19 | | */ |
20 | | |
21 | | #ifndef HEIF_VVC_DEC_H |
22 | | #define HEIF_VVC_DEC_H |
23 | | |
24 | | #include "libheif/heif.h" |
25 | | #include "box.h" |
26 | | #include "error.h" |
27 | | |
28 | | #include <memory> |
29 | | #include <vector> |
30 | | #include <codecs/decoder.h> |
31 | | |
32 | | class Box_vvcC; |
33 | | |
34 | | |
35 | | class Decoder_VVC : public Decoder |
36 | | { |
37 | | public: |
38 | 0 | explicit Decoder_VVC(const std::shared_ptr<const Box_vvcC>& vvcC) : m_vvcC(vvcC) {} |
39 | | |
40 | 0 | heif_compression_format get_compression_format() const override { return heif_compression_VVC; } |
41 | | |
42 | | int get_luma_bits_per_pixel() const override; |
43 | | |
44 | | int get_chroma_bits_per_pixel() const override; |
45 | | |
46 | | Error get_coded_image_colorspace(heif_colorspace*, heif_chroma*) const override; |
47 | | |
48 | | Result<std::vector<uint8_t>> read_bitstream_configuration_data() const override; |
49 | | |
50 | | private: |
51 | | const std::shared_ptr<const Box_vvcC> m_vvcC; |
52 | | }; |
53 | | |
54 | | #endif |