st/omx_bellagio: add picture profile and entry point
authorBoyuan Zhang <boyuan.zhang@amd.com>
Fri, 2 Mar 2018 16:11:01 +0000 (11:11 -0500)
committerLeo Liu <leo.liu@amd.com>
Fri, 2 Mar 2018 17:04:36 +0000 (12:04 -0500)
Profile and entry point were missing in the picture structure.
Therefore, add them back.

Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
src/gallium/state_trackers/omx_bellagio/vid_enc.c

index 1a4fb62d408adafff9109bce83e5999d224bade7..162ec1f65ab1289c7105033aca7a6c8a34d4594f 100644 (file)
@@ -1098,6 +1098,8 @@ static void enc_HandleTask(omx_base_PortType *port, struct encode_task *task,
 
    picture.picture_type = picture_type;
    picture.pic_order_cnt = task->pic_order_cnt;
+   picture.base.profile = enc_TranslateOMXProfileToPipe(priv->profile_level.eProfile);
+   picture.base.entry_point = PIPE_VIDEO_ENTRYPOINT_ENCODE;
    if (priv->restricted_b_frames && picture_type == PIPE_H264_ENC_PICTURE_TYPE_B)
       picture.not_referenced = true;
    enc_ControlPicture(port, &picture);