Mesa (main): frontends/omx: change rate ctrl struct to array
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Jul 26 20:27:35 UTC 2021
Module: Mesa
Branch: main
Commit: c2695823fd121e508256c4593ceff46df89da4af
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c2695823fd121e508256c4593ceff46df89da4af
Author: Thong Thai <thong.thai at amd.com>
Date: Tue Jul 13 12:03:59 2021 -0400
frontends/omx: change rate ctrl struct to array
Signed-off-by: Thong Thai <thong.thai at amd.com>
Reviewed-by: Boyuan Zhang <Boyuan.Zhang at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11850>
---
src/gallium/frontends/omx/vid_enc_common.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/gallium/frontends/omx/vid_enc_common.c b/src/gallium/frontends/omx/vid_enc_common.c
index ceffb3352a5..9c26c33cec5 100644
--- a/src/gallium/frontends/omx/vid_enc_common.c
+++ b/src/gallium/frontends/omx/vid_enc_common.c
@@ -247,7 +247,7 @@ void enc_ScaleInput_common(vid_enc_PrivateType * priv, OMX_VIDEO_PORTDEFINITIONT
void enc_ControlPicture_common(vid_enc_PrivateType * priv, struct pipe_h264_enc_picture_desc *picture)
{
- struct pipe_h264_enc_rate_control *rate_ctrl = &picture->rate_ctrl;
+ struct pipe_h264_enc_rate_control *rate_ctrl = &picture->rate_ctrl[0];
/* Get bitrate from port */
switch (priv->bitrate.eControlRate) {
@@ -302,7 +302,7 @@ void enc_ControlPicture_common(vid_enc_PrivateType * priv, struct pipe_h264_enc_
picture->frame_num = priv->frame_num;
picture->ref_idx_l0 = priv->ref_idx_l0;
picture->ref_idx_l1 = priv->ref_idx_l1;
- picture->enable_vui = (picture->rate_ctrl.frame_rate_num != 0);
+ picture->enable_vui = (picture->rate_ctrl[0].frame_rate_num != 0);
enc_GetPictureParamPreset(picture);
}
More information about the mesa-commit
mailing list