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

Function InitRandomLayerRefIdxData

test/decoder/DecUT_PredMv.cpp:493–499  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

491}
492
493void InitRandomLayerRefIdxData (PDqLayer pDqLayer) {
494 for (int32_t i = 0; i < pDqLayer->iMbWidth * pDqLayer->iMbHeight; ++i) {
495 for (int32_t j = 0; j < MB_BLOCK4x4_NUM; ++j) {
496 pDqLayer->pRefIndex[0][i][j] = (rand() % 18 - 2); //-2 ~ 15
497 }
498 }
499}
500
501void InitRandomLayerData (PDqLayer pDqLayer) {
502 InitRandomLayerSliceIdc (pDqLayer);

Callers 1

InitRandomLayerDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected