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

Method EncDecOneFrame

test/api/encode_decode_api_test.cpp:105–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105bool 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
124bool EncodeDecodeTestAPIBase::TestOneSimulcastAVC (SEncParamExt* pParam, ISVCDecoder** decoder, unsigned char** pBsBuf,
125 int iSpatialLayerNum,

Callers

nothing calls this directly

Calls 1

DecodeFrameNoDelayMethod · 0.45

Tested by

no test coverage detected