Skip to content

Commit fc8cee8

Browse files
6by9popcornmix
authored andcommitted
media: uapi: Add hevc ctrls for WPP decoding
WPP can allow greater parallelism within the decode, but needs offset information to be passed in. Adds num_entry_point_offsets and entry_point_offset_minus1 to v4l2_ctrl_hevc_slice_params. This is based on Jernej Skrabec's patches for cedrus which implement the same feature. Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
1 parent bb75745 commit fc8cee8

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎include/media/hevc-ctrls.h‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ struct v4l2_ctrl_hevc_slice_params {
170170

171171
/* ISO/IEC 23008-2, ITU-T Rec. H.265: General slice segment header */
172172
__u32 slice_segment_addr;
173+
__u32 num_entry_point_offsets;
173174

174175
/* ISO/IEC 23008-2, ITU-T Rec. H.265: NAL unit header */
175176
__u8 nal_unit_type;
@@ -204,7 +205,9 @@ struct v4l2_ctrl_hevc_slice_params {
204205
__u8 num_rps_poc_st_curr_after;
205206
__u8 num_rps_poc_lt_curr;
206207

207-
__u8 padding[5];
208+
__u8 padding;
209+
210+
__u32 entry_point_offset_minus1[256];
208211

209212
/* ISO/IEC 23008-2, ITU-T Rec. H.265: General slice segment header */
210213
struct v4l2_hevc_dpb_entry dpb[V4L2_HEVC_DPB_ENTRIES_NUM_MAX];

0 commit comments

Comments
 (0)