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

Method DecodeFrame

codec/decoder/plus/src/welsDecoderExt.cpp:1241–1265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1239}
1240
1241DECODING_STATE CWelsDecoder::DecodeFrame (const unsigned char* kpSrc,
1242 const int kiSrcLen,
1243 unsigned char** ppDst,
1244 int* pStride,
1245 int& iWidth,
1246 int& iHeight) {
1247 DECODING_STATE eDecState = dsErrorFree;
1248 SBufferInfo DstInfo;
1249
1250 memset (&DstInfo, 0, sizeof (SBufferInfo));
1251 DstInfo.UsrData.sSystemBuffer.iStride[0] = pStride[0];
1252 DstInfo.UsrData.sSystemBuffer.iStride[1] = pStride[1];
1253 DstInfo.UsrData.sSystemBuffer.iWidth = iWidth;
1254 DstInfo.UsrData.sSystemBuffer.iHeight = iHeight;
1255
1256 eDecState = DecodeFrame2 (kpSrc, kiSrcLen, ppDst, &DstInfo);
1257 if (eDecState == dsErrorFree) {
1258 pStride[0] = DstInfo.UsrData.sSystemBuffer.iStride[0];
1259 pStride[1] = DstInfo.UsrData.sSystemBuffer.iStride[1];
1260 iWidth = DstInfo.UsrData.sSystemBuffer.iWidth;
1261 iHeight = DstInfo.UsrData.sSystemBuffer.iHeight;
1262 }
1263
1264 return eDecState;
1265}
1266
1267DECODING_STATE CWelsDecoder::DecodeFrameEx (const unsigned char* kpSrc,
1268 const int kiSrcLen,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected