Home
last modified time | relevance | path

Searched refs:iLeftBits (Results 1 – 10 of 10) sorted by relevance

/third_party/openh264/codec/decoder/core/inc/
Ddec_golomb.h57 #define GET_WORD(iCurBits, pBufPtr, iLeftBits, iAllowedBytes, iReadBytes) { \ argument
61 iCurBits |= ((uint32_t)((pBufPtr[0] << 8) | pBufPtr[1])) << (iLeftBits); \
62 iLeftBits -= 16; \
65 #define NEED_BITS(iCurBits, pBufPtr, iLeftBits, iAllowedBytes, iReadBytes) { \ argument
66 if (iLeftBits > 0) { \
67 GET_WORD(iCurBits, pBufPtr, iLeftBits, iAllowedBytes, iReadBytes); \
71 #define DUMP_BITS(iCurBits, pBufPtr, iLeftBits, iNumBits, iAllowedBytes, iReadBytes) { \ argument
73 iLeftBits += (iNumBits); \
74 NEED_BITS(iCurBits, pBufPtr, iLeftBits, iAllowedBytes, iReadBytes); \
81 DUMP_BITS (pBs->uiCurBits, pBs->pCurBuf, pBs->iLeftBits, iNumBits, iAllowedBytes, iReadBytes); in BsGetBits()
[all …]
/third_party/openh264/codec/common/inc/
Dgolomb_common.h73 pBs->iLeftBits = 32; in InitBits()
80 if (iLen < pBitString->iLeftBits) { in BsWriteBits()
82 pBitString->iLeftBits -= iLen; in BsWriteBits()
84 iLen -= pBitString->iLeftBits; in BsWriteBits()
85 pBitString->uiCurBits = (pBitString->uiCurBits << pBitString->iLeftBits) | (kuiValue >> iLen); in BsWriteBits()
89 pBitString->iLeftBits = 32 - iLen; in BsWriteBits()
103 WRITE_BE_32 (pBitString->pCurBuf, pBitString->uiCurBits << pBitString->iLeftBits); in BsFlush()
104 pBitString->pCurBuf += 4 - pBitString->iLeftBits / 8; in BsFlush()
105 pBitString->iLeftBits = 32; in BsFlush()
Dwels_common_defs.h240 int32_t iLeftBits; // count number of available bits left ([1, 8]), member
/third_party/openh264/codec/encoder/core/inc/
Dsvc_enc_golomb.h109 return (int32_t) (((pBs->pCurBuf - pBs->pStartBuf) << 3) + 32 - pBs->iLeftBits); in BsGetBitsPos()
114 if( pBs->iLeftBits&7 ) in BsAlign()
116 pBs->uiCurBits <<= pBs->iLeftBits&7; in BsAlign()
117 pBs->uiCurBits |= (1 << (pBs->iLeftBits&7)) - 1; in BsAlign()
118 pBs->iLeftBits &= ~7; in BsAlign()
/third_party/openh264/codec/encoder/core/src/
Dset_mb_syn_cavlc.cpp60 int32_t iLeftBits = pBs->iLeftBits;
65 pBs->iLeftBits = iLeftBits;
69 if ( (n) < iLeftBits ) {\
71 iLeftBits -= (n);\
74 (n) -= iLeftBits;\
75 uiCurBits = (uiCurBits<<iLeftBits) | ((v)>>(n));\
79 iLeftBits = 32 - (n);\
238 pDss->iBsStackLeftBits = pBs->iLeftBits; in StashMBStatusCavlc()
246 pBs->iLeftBits = pDss->iBsStackLeftBits; in StashPopMBStatusCavlc()
Dratectl.cpp690 int32_t iLeftBits = 0; in RcGomTargetBits() local
695 iLeftBits = pSOverRc->iTargetBitsSlice - pSOverRc->iFrameBitsSlice; in RcGomTargetBits()
696 if (iLeftBits <= 0) { in RcGomTargetBits()
700 iAllocateBits = iLeftBits; in RcGomTargetBits()
709 iAllocateBits = WELS_DIV_ROUND (iLeftBits, (iLastGomIndex - kiComplexityIndex)); in RcGomTargetBits()
711 …iAllocateBits = WELS_DIV_ROUND ((int64_t)iLeftBits * pWelsSvcRc_Base->pCurrentFrameGomSad[kiComple… in RcGomTargetBits()
724 int64_t iLeftBits = pSOverRc->iTargetBitsSlice - pSOverRc->iFrameBitsSlice; in RcCalculateGomQp() local
725 int64_t iTargetLeftBits = iLeftBits + pSOverRc->iGomBitsSlice - pSOverRc->iGomTargetBits; in RcCalculateGomQp()
726 if ((iLeftBits <= 0) || (iTargetLeftBits <= 0)) { in RcCalculateGomQp()
730 iBitsRatio = 10000 * iLeftBits / (iTargetLeftBits + 1); in RcCalculateGomQp()
/third_party/openh264/codec/decoder/core/src/
Dcabac_decoder.cpp72 int32_t iRemainingBits = - pBsAux->iLeftBits; //pBsAux->iLeftBits < 0 in InitCabacDecEngineFromBS()
89 pBsAux->iLeftBits = 0; in InitCabacDecEngineFromBS()
97 pBsAux->iLeftBits = 0; in RestoreCabacDecEngineToBS()
Dbit_stream.cpp57 pBitString->iLeftBits = -16; in InitReadBits()
Ddecode_slice.cpp1841 int32_t iIndex = ((-pBs->iLeftBits) >> 3) + 2; in WelsActualDecodeMbCavlcISlice()
2092 iUsedBits = ((pBs->pCurBuf - pBs->pStartBuf) << 3) - (16 - pBs->iLeftBits); in WelsDecodeMbCavlcISlice()
2182 int32_t iIndex = ((-pBs->iLeftBits) >> 3) + 2; in WelsActualDecodeMbCavlcPSlice()
2522 iUsedBits = ((pBs->pCurBuf - pBs->pStartBuf) << 3) - (16 - pBs->iLeftBits); in WelsDecodeMbCavlcPSlice()
2639 iUsedBits = ((pBs->pCurBuf - pBs->pStartBuf) << 3) - (16 - pBs->iLeftBits); in WelsDecodeMbCavlcBSlice()
2729 int32_t iIndex = ((-pBs->iLeftBits) >> 3) + 2; in WelsActualDecodeMbCavlcBSlice()
Dparse_mb_syn_cavlc.cpp670 pBs->iIndex = ((pBs->pCurBuf - pBs->pStartBuf) << 3) - (16 - pBs->iLeftBits); in BsStartCavlc()
678 pBs->iLeftBits = -16 + (pBs->iIndex & 0x07); in BsEndCavlc()