| 463 | } |
| 464 | |
| 465 | void 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 | |
| 477 | void InitRandomLayerMbType (PDqLayer pDqLayer) { |
| 478 | for (int32_t i = 0; i < pDqLayer->iMbWidth * pDqLayer->iMbHeight; ++i) { |
no outgoing calls
no test coverage detected