bcm27xx: update to latest patches from RPi foundation
[openwrt/openwrt.git] / target / linux / bcm27xx / patches-5.4 / 950-0504-media-uapi-Add-hevc-ctrls-for-WPP-decoding.patch
1 From 6a42d17668699234bfa2d459e29cc2732e59759b Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Mon, 23 Mar 2020 19:00:17 +0000
4 Subject: [PATCH] media: uapi: Add hevc ctrls for WPP decoding
5
6 WPP can allow greater parallelism within the decode, but needs
7 offset information to be passed in.
8
9 Adds num_entry_point_offsets and entry_point_offset_minus1 to
10 v4l2_ctrl_hevc_slice_params.
11
12 This is based on Jernej Skrabec's patches for cedrus which
13 implement the same feature.
14
15 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
16 ---
17 include/media/hevc-ctrls.h | 5 ++++-
18 1 file changed, 4 insertions(+), 1 deletion(-)
19
20 --- a/include/media/hevc-ctrls.h
21 +++ b/include/media/hevc-ctrls.h
22 @@ -170,6 +170,7 @@ struct v4l2_ctrl_hevc_slice_params {
23
24 /* ISO/IEC 23008-2, ITU-T Rec. H.265: General slice segment header */
25 __u32 slice_segment_addr;
26 + __u32 num_entry_point_offsets;
27
28 /* ISO/IEC 23008-2, ITU-T Rec. H.265: NAL unit header */
29 __u8 nal_unit_type;
30 @@ -204,7 +205,9 @@ struct v4l2_ctrl_hevc_slice_params {
31 __u8 num_rps_poc_st_curr_after;
32 __u8 num_rps_poc_lt_curr;
33
34 - __u8 padding[5];
35 + __u8 padding;
36 +
37 + __u32 entry_point_offset_minus1[256];
38
39 /* ISO/IEC 23008-2, ITU-T Rec. H.265: General slice segment header */
40 struct v4l2_hevc_dpb_entry dpb[V4L2_HEVC_DPB_ENTRIES_NUM_MAX];