Mesa (main): frontends/va/enc: allow for frames to be marked as (not) referenced

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Dec 8 03:41:42 UTC 2021


Module: Mesa
Branch: main
Commit: e44fef8dd66cf8ac1ced60bb674d526e656ca938
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e44fef8dd66cf8ac1ced60bb674d526e656ca938

Author: Thong Thai <thong.thai at amd.com>
Date:   Sun Nov 21 20:04:20 2021 -0500

frontends/va/enc: allow for frames to be marked as (not) referenced

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/13915>

---

 src/gallium/frontends/va/picture_h264_enc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/frontends/va/picture_h264_enc.c b/src/gallium/frontends/va/picture_h264_enc.c
index 466b920c9bc..07170a4721f 100644
--- a/src/gallium/frontends/va/picture_h264_enc.c
+++ b/src/gallium/frontends/va/picture_h264_enc.c
@@ -37,7 +37,7 @@ vlVaHandleVAEncPictureParameterBufferTypeH264(vlVaDriver *drv, vlVaContext *cont
 
    h264 = buf->data;
    context->desc.h264enc.frame_num = h264->frame_num;
-   context->desc.h264enc.not_referenced = false;
+   context->desc.h264enc.not_referenced = !h264->pic_fields.bits.reference_pic_flag;
    context->desc.h264enc.pic_order_cnt = h264->CurrPic.TopFieldOrderCnt;
    if (context->desc.h264enc.gop_cnt == 0)
       context->desc.h264enc.i_remain = context->gop_coeff;



More information about the mesa-commit mailing list