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

Function InitRandomLayerMbType

test/decoder/DecUT_PredMv.cpp:477–481  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

475}
476
477void InitRandomLayerMbType (PDqLayer pDqLayer) {
478 for (int32_t i = 0; i < pDqLayer->iMbWidth * pDqLayer->iMbHeight; ++i) {
479 pDqLayer->pMbType[i] = 1 << (rand() % 11); //2^(1 ~ 10)
480 }
481}
482
483void InitRandomLayerMvData (PDqLayer pDqLayer) {
484 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