aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRakesh Kumar <rakesh.kumar@ittiam.com>2022-02-28 07:52:09 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2022-02-28 07:52:09 +0000
commitc8fa857c3622212101b9dd0a37a414907212db97 (patch)
treedf0a7d639b6f99b3b778245536d051415ab2c8c8
parentead245b92477391a92d246510b0c3a5a773517d0 (diff)
parenta577008bc2a6688ca7fa150826ca04cadba6172d (diff)
downloadlibavc-c8fa857c3622212101b9dd0a37a414907212db97.tar.gz
Encoder: Rename INSERT_EPB am: 672f2bfab3 am: 9a308447a4 am: a577008bc2
Original change: https://android-review.googlesource.com/c/platform/external/libavc/+/1652027 Change-Id: I221a71958c82cff3489997dfac16f3343132a585
-rw-r--r--encoder/ih264e_bitstream.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/encoder/ih264e_bitstream.h b/encoder/ih264e_bitstream.h
index 5b5c700..4f592f3 100644
--- a/encoder/ih264e_bitstream.h
+++ b/encoder/ih264e_bitstream.h
@@ -82,7 +82,7 @@
* @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))
/**
@@ -129,7 +129,7 @@
*/
#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; \
off++; \
@@ -231,7 +231,7 @@ typedef struct bitstrm
*/
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)
{