mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-10 17:54:13 +00:00
jpeg: Unbreak encode for RGB formats
Signed-off-by: R <rqou@berkeley.edu>
This commit is contained in:
parent
d28ab8cc81
commit
04fc26639b
1 changed files with 6 additions and 6 deletions
|
@ -1022,11 +1022,6 @@ if args.encode:
|
|||
jpeg.PX_PLANE0_TILING_V = 16
|
||||
jpeg.PX_PLANE1_TILING_H = 2
|
||||
jpeg.PX_PLANE1_TILING_V = 8
|
||||
elif args.encode_subsampling == '411':
|
||||
jpeg.PX_PLANE0_TILING_H = 4
|
||||
jpeg.PX_PLANE0_TILING_V = 8
|
||||
jpeg.PX_PLANE1_TILING_H = 4
|
||||
jpeg.PX_PLANE1_TILING_V = 4
|
||||
else:
|
||||
assert False
|
||||
else:
|
||||
|
@ -1087,11 +1082,16 @@ if args.encode:
|
|||
jpeg.ENCODE_COMPONENT1_POS = 1
|
||||
jpeg.ENCODE_COMPONENT2_POS = 3
|
||||
jpeg.ENCODE_COMPONENT3_POS = 2
|
||||
else:
|
||||
elif pixfmt in ['YUV422-planar', 'YUV420-planar', 'YUV444-planar']:
|
||||
jpeg.ENCODE_COMPONENT0_POS = 0
|
||||
jpeg.ENCODE_COMPONENT1_POS = 0
|
||||
jpeg.ENCODE_COMPONENT2_POS = 1
|
||||
jpeg.ENCODE_COMPONENT3_POS = 3
|
||||
else:
|
||||
jpeg.ENCODE_COMPONENT0_POS = 0
|
||||
jpeg.ENCODE_COMPONENT1_POS = 1
|
||||
jpeg.ENCODE_COMPONENT2_POS = 2
|
||||
jpeg.ENCODE_COMPONENT3_POS = 3
|
||||
|
||||
jpeg.INPUT_START1 = input_buf_iova
|
||||
jpeg.INPUT_START2 = input_buf_iova + surface_P1_off
|
||||
|
|
Loading…
Reference in a new issue