Home
last modified time | relevance | path

Searched refs:pLayerBsInfo (Results 1 – 9 of 9) sorted by relevance

/third_party/openh264/codec/encoder/core/src/
Dencoder_ext.cpp64 SLayerBSInfo* pLayerBsInfo,
2948 SLayerBSInfo* pLayerBsInfo, in AddPrefixNal() argument
3080 SLayerBSInfo* pLayerBsInfo = &pFbi->sLayerInfo[0]; in WelsEncoderEncodeParameterSets() local
3084 pLayerBsInfo->pBsBuf = pCtx->pFrameBs; in WelsEncoderEncodeParameterSets()
3085 pLayerBsInfo->pNalLengthInByte = pCtx->pOut->pNalLen; in WelsEncoderEncodeParameterSets()
3089 …int32_t iReturn = WelsWriteParameterSets (pCtx, &pLayerBsInfo->pNalLengthInByte[0], &iCountNal, &i… in WelsEncoderEncodeParameterSets()
3092 pLayerBsInfo->uiSpatialId = 0; in WelsEncoderEncodeParameterSets()
3093 pLayerBsInfo->uiTemporalId = 0; in WelsEncoderEncodeParameterSets()
3094 pLayerBsInfo->uiQualityId = 0; in WelsEncoderEncodeParameterSets()
3095 pLayerBsInfo->uiLayerType = NON_VIDEO_CODING_LAYER; in WelsEncoderEncodeParameterSets()
[all …]
Dsvc_encode_slice.cpp1546 SLayerBSInfo* pLayerBsInfo, in FrameBsRealloc() argument
1574 while (pLBI1 != pLayerBsInfo) { in FrameBsRealloc()
1585 SLayerBSInfo* pLayerBsInfo, in SliceLayerInfoUpdate() argument
1615 pLayerBsInfo->iNalCount = GetCurLayerNalCount (pCtx->pCurDqLayer, iCodedSliceNum); in SliceLayerInfoUpdate()
1619 iRet = FrameBsRealloc (pCtx, pFrameBsInfo, pLayerBsInfo, pCtx->pCurDqLayer->iMaxSliceNum); in SliceLayerInfoUpdate()
/third_party/openh264/codec/console/enc/src/
Dwelsenc.cpp961 SLayerBSInfo* pLayerBsInfo = &sFbi.sLayerInfo[iLayer]; in ProcessEncoding() local
962 if (pLayerBsInfo != NULL) { in ProcessEncoding()
964 int iNalIdx = pLayerBsInfo->iNalCount - 1; in ProcessEncoding()
966 iLayerSize += pLayerBsInfo->pNalLengthInByte[iNalIdx]; in ProcessEncoding()
977 if (pUCArry[w] != pLayerBsInfo->pBsBuf[w]) { in ProcessEncoding()
989 … fwrite (pLayerBsInfo->pBsBuf, 1, iLayerSize, pFpBs[0]); // write pure bit stream into file in ProcessEncoding()
991 if (pLayerBsInfo->uiSpatialId == 0) { in ProcessEncoding()
992 unsigned char five_bits = pLayerBsInfo->pBsBuf[4] & 0x1f; in ProcessEncoding()
995 fwrite (pLayerBsInfo->pBsBuf, 1, iLayerSize, pFpBs[i]); in ProcessEncoding()
998 fwrite (pLayerBsInfo->pBsBuf, 1, iLayerSize, pFpBs[0]); in ProcessEncoding()
[all …]
/third_party/openh264/test/encoder/
DEncUT_SliceBufferReallocate.cpp545 SLayerBSInfo* pLayerBsInfo = NULL; in TEST_F() local
553 pLayerBsInfo = &FrameBsInfo.sLayerInfo[iCurLayerIdx]; in TEST_F()
554 pLayerBsInfo->pBsBuf = pCtx->pFrameBs + pCtx->iPosBsBuffer; in TEST_F()
558 iRet = FrameBsRealloc (pCtx, &FrameBsInfo, pLayerBsInfo, iCodedNalCount); in TEST_F()
603 SLayerBSInfo* pLayerBsInfo = NULL; in TEST_F() local
653 pLayerBsInfo = &FrameBsInfo.sLayerInfo[iCurLayerIdx]; in TEST_F()
654 pLayerBsInfo->pBsBuf = pCtx->pFrameBs + pCtx->iPosBsBuffer; in TEST_F()
657 iRet = SliceLayerInfoUpdate (pCtx, &FrameBsInfo, pLayerBsInfo, eSlcMode); in TEST_F()
DEncUT_EncoderExt.cpp791 SLayerBSInfo* pLayerBsInfo; in TEST_F() local
793 pLayerBsInfo = & (sFbi.sLayerInfo[i]); in TEST_F()
794 EXPECT_EQ (pLayerBsInfo->uiLayerType , static_cast<int> (NON_VIDEO_CODING_LAYER)); in TEST_F()
796 iNalType = GET_NAL_TYPE (pLayerBsInfo->pBsBuf); in TEST_F()
798 for (int j = 0; j < (pLayerBsInfo->iNalCount - 1); j++) { in TEST_F()
799 iNalType = GET_NAL_TYPE (pLayerBsInfo->pBsBuf + pLayerBsInfo->pNalLengthInByte[j]); in TEST_F()
/third_party/openh264/codec/encoder/core/inc/
Dsvc_encode_slice.h148 SLayerBSInfo* pLayerBsInfo,
157 SLayerBSInfo* pLayerBsInfo,
Dextern.h115 int32_t DynSliceRealloc(sWelsEncCtx* pCtx,SFrameBSInfo* pFrameBsInfo,SLayerBSInfo* pLayerBsInfo);
/third_party/openh264/test/api/
Ddecode_api_test.cpp709 SLayerBSInfo* pLayerBsInfo = &info.sLayerInfo[iLayerNum]; in TEST_F() local
711 int iTotalNalCnt = pLayerBsInfo->iNalCount; in TEST_F()
713 int iPacketSize = pLayerBsInfo->pNalLengthInByte[iNalCnt]; in TEST_F()
1215 SLayerBSInfo* pLayerBsInfo = &info.sLayerInfo[iLayerNum]; in TEST_F() local
1217 int iTotalNalCnt = pLayerBsInfo->iNalCount; in TEST_F()
1219 int iPacketSize = pLayerBsInfo->pNalLengthInByte[iNalCnt]; in TEST_F()
Dencode_options_test.cpp1413 SLayerBSInfo* pLayerBsInfo = &info.sLayerInfo[iLayer]; in TEST_P() local
1414 if (pLayerBsInfo != NULL) { in TEST_P()
1415 …int iNalIdx = WELS_MAX (pLayerBsInfo->iNalCount - 2, 0); // ignore last slice under single slice m… in TEST_P()
1419 ASSERT_GE (((int)param_.uiMaxNalSize), pLayerBsInfo->pNalLengthInByte[iNalIdx]); in TEST_P()
2115 SLayerBSInfo* pLayerBsInfo = &info.sLayerInfo[iLayer]; in TEST_F() local
2116 for (int iPacketNum = 0; iPacketNum < pLayerBsInfo->iNalCount; ++iPacketNum) { in TEST_F()
2117 cTypeByte = (* (pLayerBsInfo->pBsBuf + 4)) & 0x1f; in TEST_F()
2119 …EXPECT_TRUE (cTypeByte <= 8) << "simulcastAVC, spatial_id = " << pLayerBsInfo->uiSpatialId << ", t… in TEST_F()
2122 if (pLayerBsInfo->uiSpatialId == 0) in TEST_F()
2125 …EXPECT_TRUE (cTypeByte >= 14) << "simulcastSVC, spatial_id = " << pLayerBsInfo->uiSpatialId << ", … in TEST_F()