Loading...
Searching...
No Matches
jp2image_int.hpp
// SPDX-License-Identifier: GPL-2.0-or-later
#ifndef JP2IMAGE_INT_HPP
#define JP2IMAGE_INT_HPP
#include <cstdint>
#include <vector>
namespace Exiv2::Internal {
struct Jp2BoxHeader {
uint32_t length;
uint32_t type;
};
struct Jp2ImageHeaderBox {
uint32_t imageHeight;
uint32_t imageWidth;
uint16_t componentCount;
uint8_t bpc;
uint8_t c;
uint8_t unkC;
uint8_t ipr;
};
struct Jp2UuidBox {
uint8_t uuid[16];
};
constexpr uint32_t brandJp2{0x6a703220};
bool isValidBoxFileType(const std::vector<std::uint8_t>& boxData);
} // namespace Exiv2::Internal
#endif // JP2IMAGE_INT_HPP
Exiv2::Internal
Helper structure for the Matroska tags lookup table.
Definition matroskavideo.hpp:39
Exiv2::Internal::Jp2BoxHeader
Definition jp2image_int.hpp:11
Exiv2::Internal::Jp2ImageHeaderBox
Definition jp2image_int.hpp:16
Exiv2::Internal::Jp2ImageHeaderBox::c
uint8_t c
Compression type.
Definition jp2image_int.hpp:21
Exiv2::Internal::Jp2ImageHeaderBox::ipr
uint8_t ipr
Intellectual property.
Definition jp2image_int.hpp:23
Exiv2::Internal::Jp2ImageHeaderBox::unkC
uint8_t unkC
Colourspace unknown.
Definition jp2image_int.hpp:22
Exiv2::Internal::Jp2ImageHeaderBox::bpc
uint8_t bpc
Bits per component.
Definition jp2image_int.hpp:20
Exiv2::Internal::Jp2UuidBox
Definition jp2image_int.hpp:26