aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRakesh Kumar <rakesh.kumar@ittiam.com>2021-03-24 09:26:30 +0530
committerRakesh Kumar <rakesh.kumar@ittiam.com>2022-02-28 04:57:49 +0000
commit672f2bfab334aa98965660fa33c5516ac5a4ecce (patch)
treeaffba305757d519c10b9c54f6b26d148e2095450
parenta3721a6a8cd28f9a9d6ccebde340277b59c454cb (diff)
downloadlibavc-672f2bfab334aa98965660fa33c5516ac5a4ecce.tar.gz
Encoder: Rename INSERT_EPB
INSERT_EPB doesn't insert emulation prevention byte and instead is used to check if an emulation prevention byte is to be inserted. Renaming INSERT_EPB to SHOULD_INSERT_EPB. Bug: 180962392 Test: build library Change-Id: I9ac8d8ca6b2d29d5bccab68404f02883acf5d361
-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)
{