update new sdk
This commit is contained in:
parent
f33907443a
commit
744c72c133
1643 changed files with 83006 additions and 28021 deletions
|
@ -167,10 +167,6 @@ IMPEG2D_ERROR_CODES_T impeg2d_dec_seq_hdr(dec_state_t *ps_dec)
|
|||
/* This is the first time we are reading the resolution */
|
||||
ps_dec->u2_horizontal_size = u2_width;
|
||||
ps_dec->u2_vertical_size = u2_height;
|
||||
if (0 == ps_dec->u4_frm_buf_stride)
|
||||
{
|
||||
ps_dec->u4_frm_buf_stride = (UWORD32) (u2_width);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -193,6 +189,11 @@ IMPEG2D_ERROR_CODES_T impeg2d_dec_seq_hdr(dec_state_t *ps_dec)
|
|||
|
||||
return e_error;
|
||||
}
|
||||
else if((ps_dec->u2_horizontal_size < MIN_WIDTH)
|
||||
|| (ps_dec->u2_vertical_size < MIN_HEIGHT))
|
||||
{
|
||||
return IMPEG2D_UNSUPPORTED_DIMENSIONS;
|
||||
}
|
||||
else
|
||||
{
|
||||
/* The resolution has changed */
|
||||
|
@ -210,6 +211,11 @@ IMPEG2D_ERROR_CODES_T impeg2d_dec_seq_hdr(dec_state_t *ps_dec)
|
|||
return e_error;
|
||||
}
|
||||
|
||||
if((ps_dec->u2_horizontal_size < MIN_WIDTH)
|
||||
|| (ps_dec->u2_vertical_size < MIN_HEIGHT))
|
||||
{
|
||||
return IMPEG2D_UNSUPPORTED_DIMENSIONS;
|
||||
}
|
||||
|
||||
/*------------------------------------------------------------------------*/
|
||||
/* Flush the following as they are not being used */
|
||||
|
|
|
@ -155,6 +155,12 @@ void impeg2d_dec_hdr(void *pv_dec,impeg2d_video_decode_ip_t *ps_ip,
|
|||
ps_op->s_ivd_video_decode_op_t.u4_num_bytes_consumed = ps_ip->s_ivd_video_decode_ip_t.u4_num_Bytes;
|
||||
}
|
||||
ps_op->s_ivd_video_decode_op_t.u4_frame_decoded_flag = 0;
|
||||
|
||||
/* Set the stride */
|
||||
if (0 == ps_dec->u4_frm_buf_stride)
|
||||
{
|
||||
ps_dec->u4_frm_buf_stride = ps_dec->u2_horizontal_size;
|
||||
}
|
||||
/* MOD */
|
||||
ps_dec->u2_header_done = 1;
|
||||
|
||||
|
|
|
@ -299,6 +299,11 @@ WORD32 impeg2d_dec_pnb_mb_params(dec_state_t *ps_dec)
|
|||
{
|
||||
u2_mb_addr_incr = impeg2d_get_mb_addr_incr(ps_stream);
|
||||
|
||||
if(0 == u2_mb_addr_incr)
|
||||
{
|
||||
return IV_FAIL;
|
||||
}
|
||||
|
||||
if(ps_dec->u2_first_mb)
|
||||
{
|
||||
/****************************************************************/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue