vl: add poc type
authorBoyuan Zhang <boyuan.zhang@amd.com>
Tue, 7 Nov 2017 20:46:43 +0000 (15:46 -0500)
committerLeo Liu <leo.liu@amd.com>
Fri, 17 Nov 2017 17:25:47 +0000 (12:25 -0500)
Different from vce encoding, vcn encoding requires driver side to encode
bitstream header, such as pps, sps and slice header. pic_order_cnt_type
is a required variable when encoding both sps and slice header, therefore
we need to add this new variable here, and hold the value passed from st,
e.g. vaapi interface

Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
src/gallium/include/pipe/p_video_state.h

index abd5d364d22a3c2d8d048e408e7b6bf519469c17..1d571653da76e400e74725d372c3acce88ea89ce 100644 (file)
@@ -400,6 +400,7 @@ struct pipe_h264_enc_picture_desc
    unsigned idr_pic_id;
    unsigned gop_cnt;
    unsigned pic_order_cnt;
+   unsigned pic_order_cnt_type;
    unsigned ref_idx_l0;
    unsigned ref_idx_l1;
    unsigned gop_size;