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

Function InitRandomLayerMvData

test/decoder/DecUT_PredMv.cpp:483–491  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

481}
482
483void InitRandomLayerMvData (PDqLayer pDqLayer) {
484 for (int32_t i = 0; i < pDqLayer->iMbWidth * pDqLayer->iMbHeight; ++i) {
485 for (int32_t j = 0; j < MB_BLOCK4x4_NUM; ++j) {
486 for (int32_t k = 0; k < MV_A; ++k) {
487 pDqLayer->pMv[0][i][j][k] = (rand() - RAND_MAX / 2);
488 }
489 }
490 }
491}
492
493void InitRandomLayerRefIdxData (PDqLayer pDqLayer) {
494 for (int32_t i = 0; i < pDqLayer->iMbWidth * pDqLayer->iMbHeight; ++i) {

Callers 2

InitRandomLayerDataFunction · 0.85
TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected