• Home
  • Raw
  • Download

Lines Matching refs:iIdx

41   int iIdx = 0;
44 for (iIdx = 0; iIdx < iSpatialLayerNum; iIdx++) {
45 …pBsBuf[iIdx] = static_cast<unsigned char*> (malloc (iWidth * iHeight * 3 * sizeof (unsigned char) …
46 EXPECT_TRUE (pBsBuf[iIdx] != NULL);
47 aLen[iIdx] = 0;
49 long rv = WelsCreateDecoder (&decoder[iIdx]);
51 EXPECT_TRUE (decoder[iIdx] != NULL);
59 rv = decoder[iIdx]->Initialize (&decParam);
81 for (iIdx = 0; iIdx < iSpatialLayerNum; iIdx++) {
82 aLen[iIdx] = 0;
97 iIdx = layerInfo.uiSpatialId;
98 EXPECT_TRUE (iIdx < iSpatialLayerNum);
99 memcpy ((pBsBuf[iIdx] + aLen[iIdx]), layerInfo.pBsBuf, iLayerLen * sizeof (unsigned char));
100 aLen[iIdx] += iLayerLen;
104 for (iIdx = 0; iIdx < param_.iSpatialLayerNum; iIdx++) {
105 … memcpy ((pBsBuf[iIdx] + aLen[iIdx]), layerInfo.pBsBuf, iLayerLen * sizeof (unsigned char));
106 aLen[iIdx] += iLayerLen;
109 iIdx = layerInfo.uiSpatialId;
110 EXPECT_TRUE (iIdx < iSpatialLayerNum);
111 … memcpy ((pBsBuf[iIdx] + aLen[iIdx]), layerInfo.pBsBuf, iLayerLen * sizeof (unsigned char));
112 aLen[iIdx] += iLayerLen;
117 for (iIdx = 0; iIdx < iSpatialLayerNum; iIdx++) {
121 if (aLen[iIdx] > 0) {
123 fwrite (pBsBuf[iIdx], aLen[iIdx], 1, fEnc[iIdx]);
125 iResult = decoder[iIdx]->DecodeFrame2 (pBsBuf[iIdx], aLen[iIdx], pData, &dstBufInfo_);
126 …ult == cmResultSuccess) << "iResult=" << iResult << " iFrame = " << iFrame << " LayerIdx=" << iIdx;
128 iResult = decoder[iIdx]->DecodeFrame2 (NULL, 0, pData, &dstBufInfo_);
129 …ult == cmResultSuccess) << "iResult=" << iResult << " iFrame = " << iFrame << " LayerIdx=" << iIdx;
130 …EXPECT_EQ (dstBufInfo_.iBufferStatus, 1) << "LayerIdx=" << iIdx << " LayerLen=" << aLen[iIdx] << "…
136 for (iIdx = 0; iIdx < iSpatialLayerNum; iIdx++) {
137 free (pBsBuf[iIdx]);
139 if (decoder[iIdx] != NULL) {
140 decoder[iIdx]->Uninitialize();
141 WelsDestroyDecoder (decoder[iIdx]);