20#include <unordered_map>
25#define MJ2_MJ2 0x6d6a7032
26#define MJ2_MJ2S 0x6d6a3273
27#define MJ2_MDAT 0x6d646174
28#define MJ2_MOOV 0x6d6f6f76
29#define MJ2_MVHD 0x6d766864
30#define MJ2_TRAK 0x7472616b
31#define MJ2_TKHD 0x746b6864
32#define MJ2_MDIA 0x6d646961
33#define MJ2_MDHD 0x6d646864
34#define MJ2_MHDR 0x6d686472
35#define MJ2_HDLR 0x68646C72
36#define MJ2_MINF 0x6d696e66
37#define MJ2_VMHD 0x766d6864
38#define MJ2_SMHD 0x736d6864
39#define MJ2_HMHD 0x686d6864
40#define MJ2_DINF 0x64696e66
41#define MJ2_DREF 0x64726566
42#define MJ2_URL 0x75726c20
43#define MJ2_URN 0x75726e20
44#define MJ2_STBL 0x7374626c
45#define MJ2_STSD 0x73747364
46#define MJ2_STTS 0x73747473
47#define MJ2_STSC 0x73747363
48#define MJ2_STSZ 0x7374737a
49#define MJ2_STCO 0x7374636f
50#define MJ2_MOOF 0x6d6f6f66
51#define MJ2_FREE 0x66726565
52#define MJ2_SKIP 0x736b6970
53#define MJ2_JP2C 0x6a703263
54#define MJ2_FIEL 0x6669656c
55#define MJ2_JP2P 0x6a703270
56#define MJ2_JP2X 0x6a703278
57#define MJ2_JSUB 0x6a737562
58#define MJ2_ORFO 0x6f72666f
59#define MJ2_MVEX 0x6d766578
60#define MJ2_JP2 0x6a703220
61#define MJ2_J2P0 0x4a325030
63#define MJ2_VIDE 0x76696465
64#define MJ2_SOUN 0x736F756E
65#define MJ2_HINT 0x68696E74
67#define MJ2_TRACK_TYPE_VIDEO 0
68#define MJ2_TRACK_TYPE_SOUND 1
69#define MJ2_TRACK_TYPE_HINT 2
121 for(uint32_t i = 0; i < 4; ++i)
134 for(uint32_t i = 0; i < 2; ++i)
137 for(uint32_t i = 0; i < 4; ++i)
186 std::vector<uint32_t>
br_;
Stores header and data for an image.
Definition GrkImage.h:54
ResWindow.
Definition CompressedChunkCache.h:36
uint32_t offset_
Definition FileFormatMJ2.h:89
uint32_t num_samples_
Definition FileFormatMJ2.h:87
uint32_t samples_descr_idx_
Definition FileFormatMJ2.h:88
mj2_chunk()
Definition FileFormatMJ2.h:86
uint32_t offset_
Definition FileFormatMJ2.h:110
uint32_t samples_size_
Definition FileFormatMJ2.h:109
mj2_sample()
Definition FileFormatMJ2.h:108
int32_t samples_delta_
Definition FileFormatMJ2.h:111
uint32_t samples_per_chunk_
Definition FileFormatMJ2.h:99
uint32_t first_chunk_
Definition FileFormatMJ2.h:98
uint32_t samples_descr_idx_
Definition FileFormatMJ2.h:100
mj2_sampletochunk()
Definition FileFormatMJ2.h:97
Video Track Parameters.
Definition FileFormatMJ2.h:148
std::vector< mj2_sample > samples_
Definition FileFormatMJ2.h:203
int32_t horizresolution_
Definition FileFormatMJ2.h:178
int32_t transorm_
Definition FileFormatMJ2.h:195
std::vector< mj2_chunk > chunks_
Definition FileFormatMJ2.h:200
uint8_t hoff_
Definition FileFormatMJ2.h:191
int32_t CbCr_subsampling_dx_
Definition FileFormatMJ2.h:174
int32_t vertresolution_
Definition FileFormatMJ2.h:179
uint8_t or_fieldcount_
Definition FileFormatMJ2.h:184
int16_t graphicsmode_
Definition FileFormatMJ2.h:165
uint32_t modification_time_
Definition FileFormatMJ2.h:153
int32_t compressorname_[8]
Definition FileFormatMJ2.h:180
uint8_t same_sample_size_
Definition FileFormatMJ2.h:198
int32_t samples_rate_
Definition FileFormatMJ2.h:176
uint8_t fieldorder_
Definition FileFormatMJ2.h:183
int16_t layer_
Definition FileFormatMJ2.h:156
uint8_t or_fieldorder_
Definition FileFormatMJ2.h:185
int32_t slidingavgbitrate_
Definition FileFormatMJ2.h:164
int32_t handler_type_
Definition FileFormatMJ2.h:196
int32_t trans_matrix_[9]
Definition FileFormatMJ2.h:193
int16_t maxPDUsize_
Definition FileFormatMJ2.h:160
int32_t visual_h_
Definition FileFormatMJ2.h:173
int16_t balance_
Definition FileFormatMJ2.h:159
int16_t language_
Definition FileFormatMJ2.h:158
int32_t timescale_
Definition FileFormatMJ2.h:155
int32_t CbCr_subsampling_dy_
Definition FileFormatMJ2.h:175
int16_t opcolor_[3]
Definition FileFormatMJ2.h:166
std::vector< mj2_tts > tts_
Definition FileFormatMJ2.h:199
~mj2_tk()
Definition FileFormatMJ2.cpp:60
int32_t Dim_[2]
Definition FileFormatMJ2.h:169
uint32_t name_size_
Definition FileFormatMJ2.h:197
std::vector< mj2_url > url_
Definition FileFormatMJ2.h:167
uint8_t * jp2xdata_
Definition FileFormatMJ2.h:188
int32_t duration_
Definition FileFormatMJ2.h:154
uint8_t vsub_
Definition FileFormatMJ2.h:190
int32_t avgbitrate_
Definition FileFormatMJ2.h:163
int16_t avgPDUsize_
Definition FileFormatMJ2.h:161
mj2_tk()
Definition FileFormatMJ2.cpp:41
std::vector< mj2_sampletochunk > sampletochunk_
Definition FileFormatMJ2.h:201
int32_t track_type_
Definition FileFormatMJ2.h:151
int32_t maxbitrate_
Definition FileFormatMJ2.h:162
int16_t volume_
Definition FileFormatMJ2.h:157
uint32_t num_samples_
Definition FileFormatMJ2.h:194
uint8_t voff_
Definition FileFormatMJ2.h:192
int16_t depth_
Definition FileFormatMJ2.h:181
int16_t w_
Definition FileFormatMJ2.h:170
int16_t h_
Definition FileFormatMJ2.h:171
int32_t visual_w_
Definition FileFormatMJ2.h:172
uint8_t hsub_
Definition FileFormatMJ2.h:189
uint8_t fieldcount_
Definition FileFormatMJ2.h:182
std::string name_
Definition FileFormatMJ2.h:202
uint8_t num_jp2x_
Definition FileFormatMJ2.h:187
std::vector< mj2_urn > urn_
Definition FileFormatMJ2.h:168
uint32_t creation_time_
Definition FileFormatMJ2.h:152
std::vector< uint32_t > br_
Definition FileFormatMJ2.h:186
int32_t samples_description_
Definition FileFormatMJ2.h:177
mj2_tts()
Definition FileFormatMJ2.h:76
uint32_t samples_count_
Definition FileFormatMJ2.h:77
int32_t samples_delta_
Definition FileFormatMJ2.h:78
int32_t location_[4]
Definition FileFormatMJ2.h:124
mj2_url()
Definition FileFormatMJ2.h:119
int32_t location_[4]
Definition FileFormatMJ2.h:141
int32_t name_[2]
Definition FileFormatMJ2.h:140
mj2_urn()
Definition FileFormatMJ2.h:132