Encoder: Rename INSERT_EPB am: 672f2bfab3

Original change: 1652027

Change-Id: Ic7ac53398242eebacdeabc2fc013ba83a9b6771b
This commit is contained in:
Rakesh Kumar 2022-02-28 07:00:58 +00:00 committed by Automerger Merge Worker
commit 9a308447a4

View file

@ -82,7 +82,7 @@
* @brief Macro to check if emulation prevention byte insertion is required * @brief Macro to check if emulation prevention byte insertion is required
****************************************************************************** ******************************************************************************
*/ */
#define INSERT_EPB(zero_run, next_byte) \ #define SHOULD_INSERT_EPB(zero_run, next_byte) \
((zero_run) == EPB_ZERO_BYTES) && (0 == ((next_byte) & 0xFC)) ((zero_run) == EPB_ZERO_BYTES) && (0 == ((next_byte) & 0xFC))
/** /**
@ -129,7 +129,7 @@
*/ */
#define PUTBYTE_EPB(ptr,off,byte,zero_run) \ #define PUTBYTE_EPB(ptr,off,byte,zero_run) \
{ \ { \
if( INSERT_EPB(zero_run, byte) ) \ if( SHOULD_INSERT_EPB(zero_run, byte) ) \
{ \ { \
ptr[off] = EPB_BYTE; \ ptr[off] = EPB_BYTE; \
off++; \ off++; \
@ -231,7 +231,7 @@ typedef struct bitstrm
*/ */
static inline IH264E_ERROR_T ih264e_put_byte_epb(bitstrm_t *ps_bitstrm, UWORD8 byte) static inline IH264E_ERROR_T ih264e_put_byte_epb(bitstrm_t *ps_bitstrm, UWORD8 byte)
{ {
if (INSERT_EPB(ps_bitstrm->i4_zero_bytes_run, byte)) if (SHOULD_INSERT_EPB(ps_bitstrm->i4_zero_bytes_run, byte))
{ {
if ((ps_bitstrm->u4_strm_buf_offset + 1) >= ps_bitstrm->u4_max_strm_size) if ((ps_bitstrm->u4_strm_buf_offset + 1) >= ps_bitstrm->u4_max_strm_size)
{ {