frontends/va: get st_rps_bits from VA pic param hevc

Get st_rps_bits from VAPictureParameterBufferHEVC, and set the flag that
indicates st_rps_bits will be used for parsing the short_term_ref_pic_set
structure

Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10889>
This commit is contained in:
Boyuan Zhang 2021-05-19 14:34:57 -04:00 committed by Marge Bot
parent db0bf188d9
commit 1285e0d2fc

View file

@ -175,6 +175,8 @@ void vlVaHandlePictureParameterBufferHEVC(vlVaDriver *drv, vlVaContext *context,
context->desc.h265.NumPocLtCurr++;
}
}
context->desc.h265.pps->st_rps_bits = hevc->st_rps_bits;
context->desc.h265.UseStRpsBits = true;
}
void vlVaHandleIQMatrixBufferHEVC(vlVaContext *context, vlVaBuffer *buf)