vl: Add cropping flags for H264
authorsuresh guttula <suresh.guttula@amd.com>
Thu, 11 Apr 2019 04:39:10 +0000 (10:09 +0530)
committerLeo Liu <leo.liu@amd.com>
Tue, 16 Apr 2019 14:15:09 +0000 (10:15 -0400)
This patch adds cropping flags for H264 in pipe_h264_enc_pic_control.

Signed-off-by: Satyajit Sahu <satyajit.sahu@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
src/gallium/include/pipe/p_video_state.h

index 05855a36e2389c264dc14d92b5b5e853cd600210..1369f1a8ca6c2d749741a62d26794b7b1de82d95 100644 (file)
@@ -395,6 +395,11 @@ struct pipe_h264_enc_pic_control
 {
    unsigned enc_cabac_enable;
    unsigned enc_constraint_set_flags;
+   unsigned enc_frame_cropping_flag;
+   unsigned enc_frame_crop_left_offset;
+   unsigned enc_frame_crop_right_offset;
+   unsigned enc_frame_crop_top_offset;
+   unsigned enc_frame_crop_bottom_offset;
 };
 
 struct pipe_h264_enc_picture_desc