mirror of
https://github.com/ittiam-systems/libhevc.git
synced 2026-10-02 16:52:43 +07:00
[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:
parent
5db9d97db5
commit
fcdeaae045
3 changed files with 14 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -466,6 +466,11 @@ typedef struct {
|
|||
*/
|
||||
WORD32 i4_display_index;
|
||||
|
||||
/**
|
||||
* bit depth
|
||||
*/
|
||||
UWORD32 u4_bit_depth;
|
||||
|
||||
}ivd_video_decode_op_t;
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue