• Home
  • Raw
  • Download

Lines Matching refs:iIdx

972   int iIdx = 0;  in TEST_F()  local
973 for (iIdx = 0; iIdx < iSpatialLayerNum; iIdx++) { in TEST_F()
974 …pBsBuf[iIdx] = static_cast<unsigned char*> (malloc (iWidth * iHeight * 3 * sizeof (unsigned char) … in TEST_F()
975 ASSERT_TRUE (pBsBuf[iIdx] != NULL); in TEST_F()
976 aLen[iIdx] = 0; in TEST_F()
978 long rv = WelsCreateDecoder (&decoder[iIdx]); in TEST_F()
980 ASSERT_TRUE (decoder[iIdx] != NULL); in TEST_F()
988 rv = decoder[iIdx]->Initialize (&decParam); in TEST_F()
1001 for (iIdx = 0; iIdx < iSpatialLayerNum; iIdx++) { in TEST_F()
1002 aLen[iIdx] = 0; in TEST_F()
1013 for (iIdx = 0; iIdx < iSpatialLayerNum; iIdx++) { in TEST_F()
1014 … memcpy ((pBsBuf[iIdx] + aLen[iIdx]), layerInfo.pBsBuf, iLayerLen * sizeof (unsigned char)); in TEST_F()
1015 aLen[iIdx] += iLayerLen; in TEST_F()
1018 iIdx = layerInfo.uiSpatialId; in TEST_F()
1019 EXPECT_TRUE (iIdx < iSpatialLayerNum); in TEST_F()
1020 memcpy ((pBsBuf[iIdx] + aLen[iIdx]), layerInfo.pBsBuf, iLayerLen * sizeof (unsigned char)); in TEST_F()
1021 aLen[iIdx] += iLayerLen; in TEST_F()
1025 for (iIdx = 0; iIdx < iSpatialLayerNum; iIdx++) { in TEST_F()
1030 fwrite (pBsBuf[iIdx], aLen[iIdx], 1, fEnc[iIdx]); in TEST_F()
1032 iResult = decoder[iIdx]->DecodeFrame2 (pBsBuf[iIdx], aLen[iIdx], pData, &dstBufInfo_); in TEST_F()
1033 EXPECT_TRUE (iResult == cmResultSuccess) << "iResult=" << iResult << "LayerIdx=" << iIdx; in TEST_F()
1034 iResult = decoder[iIdx]->DecodeFrame2 (NULL, 0, pData, &dstBufInfo_); in TEST_F()
1035 EXPECT_TRUE (iResult == cmResultSuccess) << "iResult=" << iResult << "LayerIdx=" << iIdx; in TEST_F()
1038 …decoder[iIdx]->GetOption (DECODER_OPTION_NUM_OF_FRAMES_REMAINING_IN_BUFFER, &num_of_frames_in_buff… in TEST_F()
1040 decoder[iIdx]->FlushFrame (pData, &dstBufInfo_); in TEST_F()
1043 EXPECT_EQ (dstBufInfo_.iBufferStatus, 1) << "LayerIdx=" << iIdx; in TEST_F()
1048 for (iIdx = 0; iIdx < iSpatialLayerNum; iIdx++) { in TEST_F()
1049 if (pBsBuf[iIdx]) { in TEST_F()
1050 free (pBsBuf[iIdx]); in TEST_F()
1053 if (decoder[iIdx] != NULL) { in TEST_F()
1054 decoder[iIdx]->Uninitialize(); in TEST_F()
1055 WelsDestroyDecoder (decoder[iIdx]); in TEST_F()
1059 fclose (fEnc[iIdx]); in TEST_F()
1094 int iIdx = 0; in TEST_F() local
1097 for (iIdx = 0; iIdx < iSpatialLayerNum; iIdx++) { in TEST_F()
1098 …pBsBuf[iIdx] = static_cast<unsigned char*> (malloc (iWidth * iHeight * 3 * sizeof (unsigned char) … in TEST_F()
1099 ASSERT_TRUE (pBsBuf[iIdx] != NULL); in TEST_F()
1100 aLen[iIdx] = 0; in TEST_F()
1102 long rv = WelsCreateDecoder (&decoder[iIdx]); in TEST_F()
1104 ASSERT_TRUE (decoder[iIdx] != NULL); in TEST_F()
1112 rv = decoder[iIdx]->Initialize (&decParam); in TEST_F()
1126 for (iIdx = 0; iIdx < iSpatialLayerNum; iIdx++) { in TEST_F()
1127 aLen[iIdx] = 0; in TEST_F()
1139 iIdx = layerInfo.uiSpatialId; in TEST_F()
1140 EXPECT_TRUE (iIdx < iSpatialLayerNum); in TEST_F()
1141 memcpy ((pBsBuf[iIdx] + aLen[iIdx]), layerInfo.pBsBuf, iLayerLen * sizeof (unsigned char)); in TEST_F()
1142 aLen[iIdx] += iLayerLen; in TEST_F()
1145 for (iIdx = 0; iIdx < iSpatialLayerNum; iIdx++) { in TEST_F()
1150 fwrite (pBsBuf[iIdx], aLen[iIdx], 1, fEnc[iIdx]); in TEST_F()
1152 iResult = decoder[iIdx]->DecodeFrame2 (pBsBuf[iIdx], aLen[iIdx], pData, &dstBufInfo_); in TEST_F()
1153 EXPECT_TRUE (iResult == cmResultSuccess) << "iResult=" << iResult << "LayerIdx=" << iIdx; in TEST_F()
1155 iResult = decoder[iIdx]->DecodeFrame2 (NULL, 0, pData, &dstBufInfo_); in TEST_F()
1156 EXPECT_TRUE (iResult == cmResultSuccess) << "iResult=" << iResult << "LayerIdx=" << iIdx; in TEST_F()
1157 EXPECT_EQ (dstBufInfo_.iBufferStatus, 1) << "LayerIdx=" << iIdx; in TEST_F()
1161 for (iIdx = 0; iIdx < iSpatialLayerNum; iIdx++) { in TEST_F()
1162 free (pBsBuf[iIdx]); in TEST_F()
1164 if (decoder[iIdx] != NULL) { in TEST_F()
1165 decoder[iIdx]->Uninitialize(); in TEST_F()
1166 WelsDestroyDecoder (decoder[iIdx]); in TEST_F()
1208 int iIdx = 0; in TEST_F() local
1211 for (iIdx = 0; iIdx < iSpatialLayerNum; iIdx++) { in TEST_F()
1212 …pBsBuf[iIdx] = static_cast<unsigned char*> (malloc (iWidth * iHeight * 3 * sizeof (unsigned char) … in TEST_F()
1213 ASSERT_TRUE (pBsBuf[iIdx] != NULL); in TEST_F()
1215 long rv = WelsCreateDecoder (&decoder[iIdx]); in TEST_F()
1217 ASSERT_TRUE (decoder[iIdx] != NULL); in TEST_F()
1225 rv = decoder[iIdx]->Initialize (&decParam); in TEST_F()
1232 for (iIdx = 0; iIdx < iSpatialLayerNum; iIdx++) { in TEST_F()
1233 free (pBsBuf[iIdx]); in TEST_F()
1235 if (decoder[iIdx] != NULL) { in TEST_F()
1236 decoder[iIdx]->Uninitialize(); in TEST_F()
1237 WelsDestroyDecoder (decoder[iIdx]); in TEST_F()
1389 int iIdx = 0; in TEST_P() local
1398 while (iIdx <= p.iNumframes) { in TEST_P()
1426 iIdx++; in TEST_P()
1466 int iIdx = 0; in TEST_F() local
1469 for (iIdx = 0; iIdx < iSpatialLayerNum; iIdx++) { in TEST_F()
1470 …pBsBuf[iIdx] = static_cast<unsigned char*> (malloc (iWidth * iHeight * 3 * sizeof (unsigned char) … in TEST_F()
1471 ASSERT_TRUE (pBsBuf[iIdx] != NULL); in TEST_F()
1472 aLen[iIdx] = 0; in TEST_F()
1474 long rv = WelsCreateDecoder (&decoder[iIdx]); in TEST_F()
1476 ASSERT_TRUE (decoder[iIdx] != NULL); in TEST_F()
1484 rv = decoder[iIdx]->Initialize (&decParam); in TEST_F()
1517 for (iIdx = 0; iIdx < iSpatialLayerNum; iIdx++) { in TEST_F()
1518 aLen[iIdx] = 0; in TEST_F()
1530 iIdx = layerInfo.uiSpatialId; in TEST_F()
1531 EXPECT_TRUE (iIdx < iSpatialLayerNum); in TEST_F()
1532 memcpy ((pBsBuf[iIdx] + aLen[iIdx]), layerInfo.pBsBuf, iLayerLen * sizeof (unsigned char)); in TEST_F()
1533 aLen[iIdx] += iLayerLen; in TEST_F()
1536 for (iIdx = 0; iIdx < iSpatialLayerNum; iIdx++) { in TEST_F()
1540 if (aLen[iIdx] > 0) { in TEST_F()
1542 fwrite (pBsBuf[iIdx], aLen[iIdx], 1, fEnc[iIdx]); in TEST_F()
1544 iResult = decoder[iIdx]->DecodeFrame2 (pBsBuf[iIdx], aLen[iIdx], pData, &dstBufInfo_); in TEST_F()
1545 EXPECT_TRUE (iResult == cmResultSuccess) << "iResult=" << iResult << "LayerIdx=" << iIdx; in TEST_F()
1547 iResult = decoder[iIdx]->DecodeFrame2 (NULL, 0, pData, &dstBufInfo_); in TEST_F()
1548 …EXPECT_TRUE (iResult == cmResultSuccess) << "iResult=" << iResult << "LayerIdx=" << iIdx << iPatte… in TEST_F()
1549 EXPECT_EQ (dstBufInfo_.iBufferStatus, 1) << "LayerIdx=" << iIdx; in TEST_F()
1555 for (iIdx = 0; iIdx < iSpatialLayerNum; iIdx++) { in TEST_F()
1556 free (pBsBuf[iIdx]); in TEST_F()
1558 if (decoder[iIdx] != NULL) { in TEST_F()
1559 decoder[iIdx]->Uninitialize(); in TEST_F()
1560 WelsDestroyDecoder (decoder[iIdx]); in TEST_F()
1607 int iIdx = 0; in TEST_F() local
1610 for (iIdx = 0; iIdx < iSpatialLayerNum; iIdx++) { in TEST_F()
1611 …pBsBuf[iIdx] = static_cast<unsigned char*> (malloc (iWidth * iHeight * 3 * sizeof (unsigned char) … in TEST_F()
1612 ASSERT_TRUE (pBsBuf[iIdx] != NULL); in TEST_F()
1614 long rv = WelsCreateDecoder (&decoder[iIdx]); in TEST_F()
1616 ASSERT_TRUE (decoder[iIdx] != NULL); in TEST_F()
1624 rv = decoder[iIdx]->Initialize (&decParam); in TEST_F()
1630 for (iIdx = 0; iIdx < iSpatialLayerNum; iIdx++) { in TEST_F()
1631 if (pBsBuf[iIdx]) { in TEST_F()
1632 free (pBsBuf[iIdx]); in TEST_F()
1633 pBsBuf[iIdx] = NULL; in TEST_F()
1636 if (decoder[iIdx] != NULL) { in TEST_F()
1637 decoder[iIdx]->Uninitialize(); in TEST_F()
1638 WelsDestroyDecoder (decoder[iIdx]); in TEST_F()
1678 int iIdx = 0; in TEST_F() local
1681 for (iIdx = 0; iIdx < iSpatialLayerNum; iIdx++) { in TEST_F()
1682 …pBsBuf[iIdx] = static_cast<unsigned char*> (malloc (iWidth * iHeight * 3 * sizeof (unsigned char) … in TEST_F()
1683 ASSERT_TRUE (pBsBuf[iIdx] != NULL); in TEST_F()
1685 long rv = WelsCreateDecoder (&decoder[iIdx]); in TEST_F()
1687 ASSERT_TRUE (decoder[iIdx] != NULL); in TEST_F()
1695 rv = decoder[iIdx]->Initialize (&decParam); in TEST_F()
1701 for (iIdx = 0; iIdx < iSpatialLayerNum; iIdx++) { in TEST_F()
1702 if (pBsBuf[iIdx]) in TEST_F()
1703 free (pBsBuf[iIdx]); in TEST_F()
1705 if (decoder[iIdx] != NULL) { in TEST_F()
1706 decoder[iIdx]->Uninitialize(); in TEST_F()
1707 WelsDestroyDecoder (decoder[iIdx]); in TEST_F()
1739 int iIdx = 0; in TEST_F() local
1742 for (iIdx = 0; iIdx < iSpatialLayerNum; iIdx++) { in TEST_F()
1743 …pBsBuf[iIdx] = static_cast<unsigned char*> (malloc (iWidth * iHeight * 3 * sizeof (unsigned char) … in TEST_F()
1744 ASSERT_TRUE (pBsBuf[iIdx] != NULL); in TEST_F()
1746 long rv = WelsCreateDecoder (&decoder[iIdx]); in TEST_F()
1748 ASSERT_TRUE (decoder[iIdx] != NULL); in TEST_F()
1756 rv = decoder[iIdx]->Initialize (&decParam); in TEST_F()
1762 for (iIdx = 0; iIdx < iSpatialLayerNum; iIdx++) { in TEST_F()
1763 free (pBsBuf[iIdx]); in TEST_F()
1765 if (decoder[iIdx] != NULL) { in TEST_F()
1766 decoder[iIdx]->Uninitialize(); in TEST_F()
1767 WelsDestroyDecoder (decoder[iIdx]); in TEST_F()
1803 int iIdx = 0; in TEST_F() local
1807 for (iIdx = 0; iIdx < iSpatialLayerNum; iIdx++) { in TEST_F()
1808 …pBsBuf[iIdx] = static_cast<unsigned char*> (malloc (iWidth * iHeight * 3 * sizeof (unsigned char) … in TEST_F()
1809 ASSERT_TRUE (pBsBuf[iIdx] != NULL); in TEST_F()
1811 long rv = WelsCreateDecoder (&decoder[iIdx]); in TEST_F()
1813 ASSERT_TRUE (decoder[iIdx] != NULL); in TEST_F()
1821 rv = decoder[iIdx]->Initialize (&decParam); in TEST_F()
1852 for (iIdx = 0; iIdx < iSpatialLayerNum; iIdx++) { in TEST_F()
1853 aLen[iIdx] = 0; in TEST_F()
1862 iIdx = layerInfo.uiSpatialId; in TEST_F()
1863 …EXPECT_TRUE (iIdx < iSpatialLayerNum) << "iIdx = " << iIdx << ", iSpatialLayerNum = " << iSpatialL… in TEST_F()
1864 memcpy ((pBsBuf[iIdx] + aLen[iIdx]), layerInfo.pBsBuf, iLayerLen * sizeof (unsigned char)); in TEST_F()
1865 aLen[iIdx] += iLayerLen; in TEST_F()
1868 for (iIdx = 0; iIdx < iSpatialLayerNum; iIdx++) { in TEST_F()
1873 fwrite (pBsBuf[iIdx], aLen[iIdx], 1, fEnc[iIdx]); in TEST_F()
1875 iResult = decoder[iIdx]->DecodeFrame2 (pBsBuf[iIdx], aLen[iIdx], pData, &dstBufInfo_); in TEST_F()
1876 EXPECT_TRUE (iResult == cmResultSuccess) << "iResult=" << iResult << ", LayerIdx=" << iIdx; in TEST_F()
1878 iResult = decoder[iIdx]->DecodeFrame2 (NULL, 0, pData, &dstBufInfo_); in TEST_F()
1879 EXPECT_TRUE (iResult == cmResultSuccess) << "iResult=" << iResult << ", LayerIdx=" << iIdx; in TEST_F()
1880 EXPECT_EQ (dstBufInfo_.iBufferStatus, 1) << "LayerIdx=" << iIdx; in TEST_F()
1884 for (iIdx = 0; iIdx < iSpatialLayerNum; iIdx++) { in TEST_F()
1885 free (pBsBuf[iIdx]); in TEST_F()
1887 if (decoder[iIdx] != NULL) { in TEST_F()
1888 decoder[iIdx]->Uninitialize(); in TEST_F()
1889 WelsDestroyDecoder (decoder[iIdx]); in TEST_F()