prores: picture header fields

Signed-off-by: R <rqou@berkeley.edu>
This commit is contained in:
R 2022-04-05 23:12:11 -07:00 committed by Hector Martin
parent af8ebc03ef
commit 0328517051
2 changed files with 9 additions and 6 deletions

View file

@ -574,7 +574,7 @@ desc = EncodeNotRawDescriptor(
frame_header_sz=bswp16(0x94),
unk_pad_0x5a_=b'\x00',
bitstream_version=0,
encoder_identifier=0xcafefade,
encoder_identifier=0xcafeface,
# cannot change arbitrily
pix_surface_w_byteswap_=bswp16(1920),
pix_surface_h_byteswap_=bswp16(1080),
@ -587,8 +587,10 @@ desc = EncodeNotRawDescriptor(
alpha_channel_type=0x30,
frame_hdr_reserved14=b'\x00\x03',
unk_pad_0x6c_=b'\xaa' * 128,
unk_0xec_=0xfc03,
unk_0xee_=0x230,
deprecated_number_of_slices=bswp16(0x3fc),
# this one affects the encoding not just the header
log2_desired_slice_size_in_mb=0x30,
unk_0xef_=0x2,
unk_0xf0_=0x248,
unk_0xf2_=0x298,
unk_0xf4_=0x8000402015100c0c,

View file

@ -39,8 +39,9 @@ EncodeNotRawDescriptor = namedtuple('EncodeNotRawDescriptor', [
'alpha_channel_type', # +0x069
'frame_hdr_reserved14', # +0x06a
'unk_pad_0x6c_', # +0x06c
'unk_0xec_', # +0x0ec
'unk_0xee_', # +0x0ee
'deprecated_number_of_slices', # +0x0ec
'log2_desired_slice_size_in_mb', # +0x0ee
'unk_0xef_', # +0x0ef
'unk_0xf0_', # +0x0f0
'unk_0xf2_', # +0x0f2
'unk_0xf4_', # +0x0f4
@ -68,7 +69,7 @@ EncodeNotRawDescriptor = namedtuple('EncodeNotRawDescriptor', [
'unk_0x150_', # +0x150
'unk_pad_0x154_', # +0x154
])
ENCODE_NOT_RAW_STRUCT = "<IIQIHHHHHHHHH2sQQQQQQH1sBIHHBBBBBB2s128sHHHHQIIIIIIIIIIIIIIIIIIIIII44s"
ENCODE_NOT_RAW_STRUCT = "<IIQIHHHHHHHHH2sQQQQQQH1sBIHHBBBBBB2s128sHBBHHQIIIIIIIIIIIIIIIIIIIIII44s"
class ProResRegs(RegMap):