mirror of
https://github.com/ittiam-systems/libhevc.git
synced 2026-10-02 16:52:43 +07:00
[decoder]: Add few entries in codec_t and initialize them for default paths
Added few members in codec_t and initialized them for 420P, 8bit path.
When HBD support is added these will be updated based on the parsed headers.
(cherry picked from commit f35c5b1971)
This commit is contained in:
parent
1fbe122b62
commit
60a5701bfa
2 changed files with 11 additions and 0 deletions
|
|
@ -272,6 +272,13 @@ enum
|
|||
#define BIT_DEPTH 8
|
||||
#define BIT_DEPTH_LUMA BIT_DEPTH
|
||||
#define BIT_DEPTH_CHROMA BIT_DEPTH
|
||||
|
||||
#define BIT_DEPTH_8BITS 8
|
||||
#define BIT_DEPTH_10BITS 10
|
||||
|
||||
#define PIXEL_SIZE_1BYTE sizeof(UWORD8)
|
||||
#define PIXEL_SIZE_2BYTES sizeof(UWORD16)
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Profile tier level defs */
|
||||
/*****************************************************************************/
|
||||
|
|
|
|||
|
|
@ -1168,6 +1168,10 @@ WORD32 ihevcd_init(codec_t *ps_codec)
|
|||
ps_codec->s_parse.i4_abs_pic_order_cnt = -1;
|
||||
|
||||
ps_codec->i4_chroma_format_idc = CHROMA_FMT_IDC_YUV420;
|
||||
ps_codec->i4_pixel_size_y = PIXEL_SIZE_1BYTE;
|
||||
ps_codec->i4_pixel_size_uv = PIXEL_SIZE_1BYTE;
|
||||
ps_codec->i4_bit_depth_luma = BIT_DEPTH_8BITS;
|
||||
ps_codec->i4_bit_depth_chroma = BIT_DEPTH_8BITS;
|
||||
|
||||
/* Set ref chroma format by default to 420SP UV interleaved */
|
||||
ps_codec->e_ref_chroma_fmt = IV_YUV_420SP_UV;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue