mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-22 22:53:04 +00:00
prores: rename some variables
Signed-off-by: R <rqou@berkeley.edu>
This commit is contained in:
parent
200bdf9ce6
commit
2cc5c9488f
2 changed files with 12 additions and 12 deletions
|
@ -584,16 +584,16 @@ desc = EncodeNotRawDescriptor(
|
|||
pix_surface_h_2_=im_H,
|
||||
pix_surface_w=im_W, # changing this seems ok at least if luma is broken
|
||||
pix_surface_h=im_H,
|
||||
pix_plane0_bytesperrow_div=divroundup(im_W, 64), # this is a stride of some kind
|
||||
pix_plane1_bytesperrow_div=divroundup(im_W*2, 64), # FIXME is this fully correct?
|
||||
pix_plane2_bytesperrow_div=divroundup(im_W, 64),
|
||||
luma_stride=divroundup(im_W, 64), # XXX how does the div work exactly?
|
||||
chroma_stride=divroundup(im_W*2, 64),
|
||||
alpha_stride=divroundup(im_W, 64),
|
||||
unk_pad_0x26_=b'\x00\x00',
|
||||
|
||||
pix_plane0_iova=in_buf_luma_iova,
|
||||
luma_iova=in_buf_luma_iova,
|
||||
pix_plane0_tileheader_thing_=0,
|
||||
pix_plane1_iova=in_buf_chroma_iova,
|
||||
chroma_iova=in_buf_chroma_iova,
|
||||
pix_plane1_tileheader_thing_=0,
|
||||
pix_plane2_iova=in_buf_luma_iova,
|
||||
alpha_iova=in_buf_luma_iova,
|
||||
pix_plane2_tileheader_thing_=0,
|
||||
|
||||
# changing this does add extra 0 bytes
|
||||
|
|
|
@ -29,15 +29,15 @@ EncodeNotRawDescriptor = namedtuple('EncodeNotRawDescriptor', [
|
|||
'pix_surface_h_2_', # +0x01a
|
||||
'pix_surface_w', # +0x01c
|
||||
'pix_surface_h', # +0x01e
|
||||
'pix_plane0_bytesperrow_div', # +0x020
|
||||
'pix_plane1_bytesperrow_div', # +0x022
|
||||
'pix_plane2_bytesperrow_div', # +0x024
|
||||
'luma_stride', # +0x020
|
||||
'chroma_stride', # +0x022
|
||||
'alpha_stride', # +0x024
|
||||
'unk_pad_0x26_', # +0x026
|
||||
'pix_plane0_iova', # +0x028
|
||||
'luma_iova', # +0x028
|
||||
'pix_plane0_tileheader_thing_', # +0x030
|
||||
'pix_plane1_iova', # +0x038
|
||||
'chroma_iova', # +0x038
|
||||
'pix_plane1_tileheader_thing_', # +0x040
|
||||
'pix_plane2_iova', # +0x048
|
||||
'alpha_iova', # +0x048
|
||||
'pix_plane2_tileheader_thing_', # +0x050
|
||||
'frame_header_sz', # +0x058
|
||||
'unk_pad_0x5a_', # +0x05a
|
||||
|
|
Loading…
Reference in a new issue