/third_party/openh264/codec/encoder/core/src/ |
D | svc_set_mb_syn_cavlc.cpp | 61 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 …]
|
D | set_mb_syn_cavlc.cpp | 57 #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 …]
|
D | svc_encode_slice.cpp | 54 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 …]
|
D | svc_set_mb_syn_cabac.cpp | 628 SBitStringAux* pBs = pSlice->pSliceBsa; in WelsInitSliceCabac() local 629 BsAlign (pBs); in WelsInitSliceCabac() 633 WelsCabacEncodeInit (&pSlice->sCabacCtx, pBs->pCurBuf, pBs->pEndBuf); in WelsInitSliceCabac()
|
D | slice_multi_threading.cpp | 447 …memmove (pCtx->pFrameBs + pCtx->iPosBsBuffer, pSliceBs->pBs, pSliceBs->uiBsPos); // confirmed_safe… in AppendSliceToFrameBs() 472 uint8_t* pDst = pSliceBs->pBs; in WriteSliceBs()
|
D | encoder_ext.cpp | 2999 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/ |
D | dec_golomb.h | 77 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 …]
|
D | parse_mb_syn_cavlc.h | 96 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);
|
D | au_parser.h | 92 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,
|
D | decoder_core.h | 124 int32_t ParseSliceHeaderSyntaxs (PWelsDecoderContext pCtx, PBitStringAux pBs, const bool kbExtensio…
|
D | decoder_context.h | 223 …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/ |
D | svc_enc_golomb.h | 100 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 …]
|
D | vlc_encoder.h | 58 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 …]
|
D | svc_encode_slice.h | 63 void WelsSliceHeaderWrite (SBitStringAux* pBs, SDqLayer* pCurLayer, SSlice* pSlice, uint32_t uiPpsI… 64 void WelsSliceHeaderExtWrite (SBitStringAux* pBs, SDqLayer* pCurLayer, SSlice* pSlice, uint32_t uiP…
|
D | svc_set_mb_syn_cavlc.h | 55 …eMbResidual (SWelsFuncPtrList* pFuncList, SMbCache* sMbCacheInfo, SMB* pCurMb, SBitStringAux* pBs);
|
D | svc_set_mb_syn.h | 56 …eMbResidual (SWelsFuncPtrList* pFuncList, SMbCache* sMbCacheInfo, SMB* pCurMb, SBitStringAux* pBs);
|
D | set_mb_syn_cavlc.h | 71 int32_t iResidualProperty, int8_t iNC, SBitStringAux* pBs);
|
D | nal_encap.h | 87 uint8_t* pBs; // output bitstream, pBitStringAux not needed for slice 0 d… member
|
D | set_mb_syn_cabac.h | 86 int32_t iResidualProperty, int8_t iNC, SBitStringAux* pBs);
|
/third_party/openh264/codec/decoder/core/src/ |
D | au_parser.cpp | 113 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 …]
|
D | parse_mb_syn_cavlc.cpp | 669 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 …]
|
D | decode_slice.cpp | 448 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 …]
|
D | decoder_core.cpp | 320 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/ |
D | golomb_common.h | 67 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()
|