Exiv2
jp2image_int.hpp
1 #ifndef JP2IMAGE_INT_HPP
2 #define JP2IMAGE_INT_HPP
3 
4 #include <stdint.h>
5 #include <vector>
6 
7 namespace Exiv2
8 {
9  namespace Internal
10  {
11  struct Jp2BoxHeader
12  {
13  uint32_t length;
14  uint32_t type;
15  };
16 
18  {
19  uint32_t imageHeight;
20  uint32_t imageWidth;
21  uint16_t componentCount;
22  uint8_t bpc; //<! Bits per component
23  uint8_t c; //<! Compression type
24  uint8_t unkC; //<! Colourspace unknown
25  uint8_t ipr; //<! Intellectual property
26  };
27 
28  struct Jp2UuidBox
29  {
30  uint8_t uuid[16];
31  };
32 
33  const uint32_t brandJp2 = 0x6a703220;
34 
36  bool isValidBoxFileType(const std::vector<uint8_t>& boxData);
37  } // namespace Internal
38 } // namespace Exiv2
39 
40 #endif // JP2IMAGE_INT_HPP
bool isValidBoxFileType(const std::vector< uint8_t > &boxData)
Determines if the File Type box is valid.
Definition: jp2image_int.cpp:10
Provides classes and functions to encode and decode Exif and Iptc data. The libexiv2 API consists of ...
Definition: asfvideo.hpp:36
Definition: jp2image_int.hpp:12
Definition: jp2image_int.hpp:18
Definition: jp2image_int.hpp:29