MCPcopy Create free account
hub / github.com/cisco/openh264 / InitRandomLayerSliceIdc

Function InitRandomLayerSliceIdc

test/decoder/DecUT_PredMv.cpp:465–475  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

463}
464
465void InitRandomLayerSliceIdc (PDqLayer pDqLayer) {
466 int32_t i = 0;
467 int32_t iTotalMbNum = pDqLayer->iMbWidth * pDqLayer->iMbHeight;
468 int32_t iMbFirstSliceEnd = rand() % (iTotalMbNum - 1); //assure 2 slices
469 for (i = 0; i <= iMbFirstSliceEnd; ++i) {
470 pDqLayer->pSliceIdc[i] = 0; //to keep simple value here
471 }
472 for (; i < iTotalMbNum; ++i) {
473 pDqLayer->pSliceIdc[i] = 1; //to keep simple value here
474 }
475}
476
477void InitRandomLayerMbType (PDqLayer pDqLayer) {
478 for (int32_t i = 0; i < pDqLayer->iMbWidth * pDqLayer->iMbHeight; ++i) {

Callers 1

InitRandomLayerDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected