[decoder] Add bit_depth to iv_yuv_buf_t and ivd_video_decode_op_t

This new field is currently hard-coded to 8. This will be updated
high bit-depth support is added later.
This commit is contained in:
Harish Mahendrakar 2026-09-16 14:22:22 -07:00 • committed by Harish Mahendrakar
parent 5db9d97db5
commit fcdeaae045
3 changed files with 14 additions and 0 deletions

View file

@ -258,6 +258,11 @@ typedef struct {
* Stride/Pitch of the Chroma (Cr) Buffer
*/
UWORD32 u4_v_strd;
/**
* Bit depth of the YUV Buffers
*/
UWORD32 u4_bit_depth;
}iv_yuv_buf_t;

View file

@ -466,6 +466,11 @@ typedef struct {
*/
WORD32 i4_display_index;
/**
* bit depth
*/
UWORD32 u4_bit_depth;
}ivd_video_decode_op_t;

View file

@ -204,11 +204,13 @@ static void ihevcd_fill_outargs(codec_t *ps_codec,
{
ps_dec_op->u4_pic_wd = ps_codec->i4_disp_wd;
ps_dec_op->u4_pic_ht = ps_codec->i4_disp_ht;
ps_dec_op->u4_bit_depth = 8;
}
else
{
ps_dec_op->u4_pic_wd = 0;
ps_dec_op->u4_pic_ht = 0;
ps_dec_op->u4_bit_depth = 0;
}
ps_dec_op->e_pic_type = ps_codec->e_dec_pic_type;
@ -249,6 +251,8 @@ static void ihevcd_fill_outargs(codec_t *ps_codec,
ps_dec_op->u4_frame_decoded_flag = 0;
}
ps_dec_op->s_disp_frm_buf.u4_bit_depth = ps_dec_op->u4_bit_depth;
/* If there is a display buffer */
if(ps_codec->ps_disp_buf)
{