| 103 | } |
| 104 | |
| 105 | bool EncodeDecodeTestAPIBase::EncDecOneFrame (const int iWidth, const int iHeight, const int iFrame, FILE* pfEnc) { |
| 106 | int iLen = 0, rv; |
| 107 | if (!InitialEncDec (iWidth, iHeight)) |
| 108 | return false; |
| 109 | EncodeOneFrame (iFrame); |
| 110 | |
| 111 | //extract target layer data |
| 112 | encToDecData (info, iLen); |
| 113 | //call decoder |
| 114 | unsigned char* pData[3] = { NULL }; |
| 115 | memset (&dstBufInfo_, 0, sizeof (SBufferInfo)); |
| 116 | rv = decoder_->DecodeFrameNoDelay (info.sLayerInfo[0].pBsBuf, iLen, pData, &dstBufInfo_); |
| 117 | EXPECT_TRUE (rv == cmResultSuccess) << " rv = " << rv << " iFrameIdx = " << iFrame; |
| 118 | if (NULL != pfEnc) { |
| 119 | fwrite (info.sLayerInfo[0].pBsBuf, iLen, 1, pfEnc); |
| 120 | } |
| 121 | return true; |
| 122 | } |
| 123 | |
| 124 | bool EncodeDecodeTestAPIBase::TestOneSimulcastAVC (SEncParamExt* pParam, ISVCDecoder** decoder, unsigned char** pBsBuf, |
| 125 | int iSpatialLayerNum, |
nothing calls this directly
no test coverage detected