Home
last modified time | relevance | path

Searched refs:pBs (Results 1 – 24 of 24) sorted by relevance

/third_party/openh264/codec/encoder/core/src/
Dsvc_set_mb_syn_cavlc.cpp61 SBitStringAux* pBs = pSlice->pSliceBsa; in WelsSpatialWriteMbPred() local
90 BsWriteUE (pBs, iMbOffset + 0); in WelsSpatialWriteMbPred()
96 BsWriteOneBit (pBs, *pPredFlag); /* b_prev_intra4x4_pred_mode */ in WelsSpatialWriteMbPred()
99 BsWriteBits (pBs, 3, *pRemMode); in WelsSpatialWriteMbPred()
108 BsWriteUE (pBs, g_kiMapModeIntraChroma[pMbCache->uiChmaI8x8Mode]); in WelsSpatialWriteMbPred()
114 …BsWriteUE (pBs, 1 + iMbOffset + g_kiMapModeI16x16[pMbCache->uiLumaI16x16Mode] + (iCbpChroma << 2) + in WelsSpatialWriteMbPred()
118 BsWriteUE (pBs, g_kiMapModeIntraChroma[pMbCache->uiChmaI8x8Mode]); in WelsSpatialWriteMbPred()
123 BsWriteUE (pBs, 0); //uiMbType in WelsSpatialWriteMbPred()
127 BsWriteTE (pBs, iNumRefIdxl0ActiveMinus1, pCurMb->pRefIndex[0]); in WelsSpatialWriteMbPred()
130 BsWriteSE (pBs, sMvd[0].iMvX); in WelsSpatialWriteMbPred()
[all …]
Dset_mb_syn_cavlc.cpp57 #define CAVLC_BS_INIT( pBs ) \ argument
58 uint8_t * pBufPtr = pBs->pCurBuf; \
59 uint32_t uiCurBits = pBs->uiCurBits; \
60 int32_t iLeftBits = pBs->iLeftBits;
62 #define CAVLC_BS_UNINIT( pBs ) \ argument
63 pBs->pCurBuf = pBufPtr; \
64 pBs->uiCurBits = uiCurBits; \
65 pBs->iLeftBits = iLeftBits;
110 int32_t iResidualProperty, int8_t iNC, SBitStringAux* pBs) { in WriteBlockResidualCavlc() argument
124 CAVLC_BS_INIT (pBs); in WriteBlockResidualCavlc()
[all …]
Dsvc_encode_slice.cpp54 typedef void (*PWelsSliceHeaderWriteFunc) (sWelsEncCtx* pCtx, SBitStringAux* pBs, SDqLayer* pCurLay…
215 void WriteReferenceReorder (SBitStringAux* pBs, SSliceHeader* sSliceHeader) { in WriteReferenceReorder() argument
221 BsWriteOneBit (pBs, true); in WriteReferenceReorder()
226 BsWriteUE (pBs, uiReorderingOfPicNumsIdc); in WriteReferenceReorder()
228 BsWriteUE (pBs, pRefOrdering->SReorderingSyntax[n].uiAbsDiffPicNumMinus1); in WriteReferenceReorder()
230 BsWriteUE (pBs, pRefOrdering->SReorderingSyntax[n].iLongTermPicNum); in WriteReferenceReorder()
241 void WriteRefPicMarking (SBitStringAux* pBs, SSliceHeader* pSliceHeader, SNalUnitHeaderExt* pNalHdr… in WriteRefPicMarking() argument
246 BsWriteOneBit (pBs, sRefMarking->bNoOutputOfPriorPicsFlag); in WriteRefPicMarking()
247 BsWriteOneBit (pBs, sRefMarking->bLongTermRefFlag); in WriteRefPicMarking()
249 BsWriteOneBit (pBs, sRefMarking->bAdaptiveRefPicMarkingModeFlag); in WriteRefPicMarking()
[all …]
Dsvc_set_mb_syn_cabac.cpp628 SBitStringAux* pBs = pSlice->pSliceBsa; in WelsInitSliceCabac() local
629 BsAlign (pBs); in WelsInitSliceCabac()
633 WelsCabacEncodeInit (&pSlice->sCabacCtx, pBs->pCurBuf, pBs->pEndBuf); in WelsInitSliceCabac()
Dslice_multi_threading.cpp447 …memmove (pCtx->pFrameBs + pCtx->iPosBsBuffer, pSliceBs->pBs, pSliceBs->uiBsPos); // confirmed_safe… in AppendSliceToFrameBs()
472 uint8_t* pDst = pSliceBs->pBs; in WriteSliceBs()
Dencoder_ext.cpp2999 SBitStringAux* pBs = NULL; in WritePadding() local
3004 pBs = &pCtx->pOut->sBsWrite; // SBitStringAux instance for non VCL NALs decoding in WritePadding()
3006 if ((pBs->pEndBuf - pBs->pCurBuf) < iLen || iNal >= pCtx->pOut->iCountNals) { in WritePadding()
3010 … static_cast<long long int> (pBs->pEndBuf - pBs->pCurBuf), iLen, iNal, pCtx->pOut->iCountNals); in WritePadding()
3018 BsWriteBits (pBs, 8, 0xff); in WritePadding()
3021 BsRbspTrailingBits (pBs); in WritePadding()
/third_party/openh264/codec/decoder/core/inc/
Ddec_golomb.h77 static inline int32_t BsGetBits (PBitStringAux pBs, int32_t iNumBits, uint32_t* pCode) { in BsGetBits() argument
78 intX_t iRc = UBITS (pBs->uiCurBits, iNumBits); in BsGetBits()
79 intX_t iAllowedBytes = pBs->pEndBuf - pBs->pStartBuf; //actual stream bytes in BsGetBits()
80 intX_t iReadBytes = pBs->pCurBuf - pBs->pStartBuf; in BsGetBits()
81 DUMP_BITS (pBs->uiCurBits, pBs->pCurBuf, pBs->iLeftBits, iNumBits, iAllowedBytes, iReadBytes); in BsGetBits()
127 static inline uint32_t BsGetOneBit (PBitStringAux pBs, uint32_t* pCode) { in BsGetOneBit() argument
128 return (BsGetBits (pBs, 1, pCode)); in BsGetOneBit()
157 static inline uint32_t BsGetUe (PBitStringAux pBs, uint32_t* pCode) { in BsGetUe() argument
159 int32_t iLeadingZeroBits = GetLeadingZeroBits (pBs->uiCurBits); in BsGetUe()
161 iAllowedBytes = pBs->pEndBuf - pBs->pStartBuf; //actual stream bytes in BsGetUe()
[all …]
Dparse_mb_syn_cavlc.h96 void BsStartCavlc (PBitStringAux pBs);
97 void BsEndCavlc (PBitStringAux pBs);
101 PBitStringAux pBs,
115 PBitStringAux pBs,
133 PBitStringAux pBs);
135 int8_t iRefIdxArray[LIST_A][30], PBitStringAux pBs);
Dau_parser.h92 int32_t ParseRefBasePicMarking (PBitStringAux pBs, PRefBasePicMarking pRefBasePicMarking);
94 int32_t ParsePrefixNalUnit (PWelsDecoderContext pCtx, PBitStringAux pBs);
168 int32_t ParseScalingList (PSps pSps, PBitStringAux pBs, bool bPPS, const bool kbTrans8x8ModeFlag,
Ddecoder_core.h124 int32_t ParseSliceHeaderSyntaxs (PWelsDecoderContext pCtx, PBitStringAux pBs, const bool kbExtensio…
Ddecoder_context.h223 …WelsParseIntra4x4ModeFunc) (PWelsNeighAvail pNeighAvail, int8_t* pIntraPredMode, PBitStringAux pBs,
225 typedef int32_t (*PWelsParseIntra16x16ModeFunc) (PWelsNeighAvail pNeighAvail, PBitStringAux pBs, PD…
/third_party/openh264/codec/encoder/core/inc/
Dsvc_enc_golomb.h100 static inline void BsWriteTE (SBitStringAux* pBs, const int32_t kiX, const uint32_t kuiValue) { in BsWriteTE() argument
102 BsWriteOneBit (pBs, !kuiValue); in BsWriteTE()
104 BsWriteUE (pBs, kuiValue); in BsWriteTE()
108 static inline int32_t BsGetBitsPos (SBitStringAux* pBs) { in BsGetBitsPos() argument
109 return (int32_t) (((pBs->pCurBuf - pBs->pStartBuf) << 3) + 32 - pBs->iLeftBits); in BsGetBitsPos()
112 static inline void BsAlign( SBitStringAux* pBs ) in BsAlign() argument
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()
[all …]
Dvlc_encoder.h58 static inline int32_t WriteTotalCoeffTrailingones (SBitStringAux* pBs, uint8_t uiNc, uint8_t uiTota… in WriteTotalCoeffTrailingones() argument
62 return BsWriteBits (pBs, kpCoeffToken[1], kpCoeffToken[0]); in WriteTotalCoeffTrailingones()
65 static inline int32_t WriteTotalcoeffTrailingonesChroma (SBitStringAux* pBs, uint8_t uiTotalCoeff, in WriteTotalcoeffTrailingonesChroma() argument
68 return BsWriteBits (pBs, kpCoeffToken[1], kpCoeffToken[0]); in WriteTotalcoeffTrailingonesChroma()
72 static inline int32_t WriteLevelPrefix (SBitStringAux* pBs, const uint32_t kuiZeroCount) { in WriteLevelPrefix() argument
73 BsWriteBits (pBs, kuiZeroCount + 1, 1); in WriteLevelPrefix()
77 static inline int32_t WriteTotalZeros (SBitStringAux* pBs, uint32_t uiTotalCoeff, uint32_t uiTotalZ… in WriteTotalZeros() argument
79 return BsWriteBits (pBs, kpTotalZeros[1], kpTotalZeros[0]); in WriteTotalZeros()
82 static inline int32_t WriteTotalZerosChromaDc (SBitStringAux* pBs, uint32_t uiTotalCoeff, uint32_t … in WriteTotalZerosChromaDc() argument
84 return BsWriteBits (pBs, kpTotalZerosChromaDc[1], kpTotalZerosChromaDc[0]); in WriteTotalZerosChromaDc()
[all …]
Dsvc_encode_slice.h63 void WelsSliceHeaderWrite (SBitStringAux* pBs, SDqLayer* pCurLayer, SSlice* pSlice, uint32_t uiPpsI…
64 void WelsSliceHeaderExtWrite (SBitStringAux* pBs, SDqLayer* pCurLayer, SSlice* pSlice, uint32_t uiP…
Dsvc_set_mb_syn_cavlc.h55 …eMbResidual (SWelsFuncPtrList* pFuncList, SMbCache* sMbCacheInfo, SMB* pCurMb, SBitStringAux* pBs);
Dsvc_set_mb_syn.h56 …eMbResidual (SWelsFuncPtrList* pFuncList, SMbCache* sMbCacheInfo, SMB* pCurMb, SBitStringAux* pBs);
Dset_mb_syn_cavlc.h71 int32_t iResidualProperty, int8_t iNC, SBitStringAux* pBs);
Dnal_encap.h87 uint8_t* pBs; // output bitstream, pBitStringAux not needed for slice 0 d… member
Dset_mb_syn_cabac.h86 int32_t iResidualProperty, int8_t iNC, SBitStringAux* pBs);
/third_party/openh264/codec/decoder/core/src/
Dau_parser.cpp113 PBitStringAux pBs = NULL; in ParseNalHeader() local
251 pBs = &pCtx->sBs; in ParseNalHeader()
254 iErr = DecInitBits (pBs, pNal, iBitSize); in ParseNalHeader()
260 ParsePrefixNalUnit (pCtx, pBs); in ParseNalHeader()
381 pBs = &pCurAu->pNalUnitsList[uiAvailNalNum - 1]->sNalData.sVclNal.sSliceBitsRead; in ParseNalHeader()
383 iErr = DecInitBits (pBs, pNal, iBitSize); in ParseNalHeader()
396 iErr = ParseSliceHeaderSyntaxs (pCtx, pBs, bExtensionFlag); in ParseNalHeader()
577 PBitStringAux pBs = NULL; in ParseNonVclNal() local
586 pBs = &pCtx->sBs; // SBitStringAux instance for non VCL NALs decoding in ParseNonVclNal()
594 iErr = DecInitBits (pBs, pRbsp, iBitSize); in ParseNonVclNal()
[all …]
Dparse_mb_syn_cavlc.cpp669 void BsStartCavlc (PBitStringAux pBs) { in BsStartCavlc() argument
670 pBs->iIndex = ((pBs->pCurBuf - pBs->pStartBuf) << 3) - (16 - pBs->iLeftBits); in BsStartCavlc()
672 void BsEndCavlc (PBitStringAux pBs) { in BsEndCavlc() argument
673 pBs->pCurBuf = pBs->pStartBuf + (pBs->iIndex >> 3); in BsEndCavlc()
674 uint32_t uiCache32Bit = (uint32_t) ((((pBs->pCurBuf[0] << 8) | pBs->pCurBuf[1]) << 16) | in BsEndCavlc()
675 (pBs->pCurBuf[2] << 8) | pBs->pCurBuf[3]); in BsEndCavlc()
676 pBs->uiCurBits = uiCache32Bit << (pBs->iIndex & 0x07); in BsEndCavlc()
677 pBs->pCurBuf += 4; in BsEndCavlc()
678 pBs->iLeftBits = -16 + (pBs->iIndex & 0x07); in BsEndCavlc()
860 …alBlockCavlc (SVlcTable* pVlcTable, uint8_t* pNonZeroCountCache, PBitStringAux pBs, int32_t iIndex, in WelsResidualBlockCavlc() argument
[all …]
Ddecode_slice.cpp448 PBitStringAux pBs, in ParseIntra4x4Mode() argument
465 WELS_READ_VERIFY (BsGetOneBit (pBs, &uiCode)); in ParseIntra4x4Mode()
480 WELS_READ_VERIFY (BsGetBits (pBs, 3, &uiCode)); in ParseIntra4x4Mode()
511 WELS_READ_VERIFY (BsGetUe (pBs, &uiCode)); //intra_chroma_pred_mode in ParseIntra4x4Mode()
526 PBitStringAux pBs, in ParseIntra8x8Mode() argument
548 WELS_READ_VERIFY (BsGetOneBit (pBs, &uiCode)); in ParseIntra8x8Mode()
563 WELS_READ_VERIFY (BsGetBits (pBs, 3, &uiCode)); in ParseIntra8x8Mode()
595 WELS_READ_VERIFY (BsGetUe (pBs, &uiCode)); //intra_chroma_pred_mode in ParseIntra8x8Mode()
610 …32_t ParseIntra16x16Mode (PWelsDecoderContext pCtx, PWelsNeighAvail pNeighAvail, PBitStringAux pBs, in ParseIntra16x16Mode() argument
632 WELS_READ_VERIFY (BsGetUe (pBs, &uiCode)); //intra_chroma_pred_mode in ParseIntra16x16Mode()
[all …]
Ddecoder_core.cpp320 int32_t ParsePredWeightedTable (PBitStringAux pBs, PSliceHeader pSh) { in ParsePredWeightedTable() argument
325 WELS_READ_VERIFY (BsGetUe (pBs, &uiCode)); in ParsePredWeightedTable()
330 WELS_READ_VERIFY (BsGetUe (pBs, &uiCode)); in ParsePredWeightedTable()
343 WELS_READ_VERIFY (BsGetOneBit (pBs, &uiCode)); in ParsePredWeightedTable()
346 WELS_READ_VERIFY (BsGetSe (pBs, &iCode)); in ParsePredWeightedTable()
351 WELS_READ_VERIFY (BsGetSe (pBs, &iCode)); in ParsePredWeightedTable()
364 WELS_READ_VERIFY (BsGetOneBit (pBs, &uiCode)); in ParsePredWeightedTable()
369 WELS_READ_VERIFY (BsGetSe (pBs, &iCode)); in ParsePredWeightedTable()
374 WELS_READ_VERIFY (BsGetSe (pBs, &iCode)); in ParsePredWeightedTable()
447 int32_t ParseRefPicListReordering (PBitStringAux pBs, PSliceHeader pSh) { in ParseRefPicListReordering() argument
[all …]
/third_party/openh264/codec/common/inc/
Dgolomb_common.h67 static inline int32_t InitBits (SBitStringAux* pBs, const uint8_t* kpBuf, const int32_t kiSize) { in InitBits() argument
70 pBs->pStartBuf = ptr; in InitBits()
71 pBs->pCurBuf = ptr; in InitBits()
72 pBs->pEndBuf = ptr + kiSize; in InitBits()
73 pBs->iLeftBits = 32; in InitBits()
74 pBs->uiCurBits = 0; in InitBits()