History

modify dec API from void to explicit type, and some comments

huili2 committed 12 years ago

Commit 54822071 parent 032d1996 files · +19 −19Browse files

Showing the changes to codec/decoder (2 of 6 files). Show all

Unified · Split

2 files
  1. codec/decoder/plus/inc/welsDecoderExt.h +2 −2
  2. codec/decoder/plus/src/welsDecoderExt.cpp +3 −3
codec/decoder/plus/inc/welsDecoderExt.h+2−2
@@ -64,7 +64,7 @@ class CWelsDecoder : public ISVCDecoder { · 63 unmodified lines
6464
6565 /***************************************************************************
6666 * Description:
67− * Decompress one frame, and output RGB24 or YV12 decoded stream and its length.
67+ * Decompress one frame, and output I420 or RGB24(in the future) decoded stream and its length.
6868 * Input parameters:
6969 * Parameter TYPE Description
7070 * pSrc unsigned char* the h264 stream to decode
@@ -83,7 +83,7 @@ class CWelsDecoder : public ISVCDecoder { · 12 unmodified lines
8383
8484 virtual DECODING_STATE EXTAPI DecodeFrame2 (const unsigned char* kpSrc,
8585 const int kiSrcLen,
86− void** ppDst,
86+ unsigned char** ppDst,
8787 SBufferInfo* pDstInfo);
8888 virtual DECODING_STATE EXTAPI DecodeFrameEx (const unsigned char* kpSrc,
8989 const int kiSrcLen,
codec/decoder/plus/src/welsDecoderExt.cpp+3−3
@@ -320,7 +320,7 @@ long CWelsDecoder::GetOption (DECODER_OPTION eOptID, void* pOption) { · 319 unmodified lines
320320
321321 DECODING_STATE CWelsDecoder::DecodeFrame2 (const unsigned char* kpSrc,
322322 const int kiSrcLen,
323− void** ppDst,
323+ unsigned char** ppDst,
324324 SBufferInfo* pDstInfo) {
325325 if (kiSrcLen > MAX_ACCESS_UNIT_CAPACITY - MAX_MACROBLOCK_CAPACITY) {//prevent from residual reading overflow
326326 m_pDecContext->iErrorCode |= dsOutOfMemory;
@@ -361,7 +361,7 @@ DECODING_STATE CWelsDecoder::DecodeFrame2 (const unsigned char* kpSrc, · 34 unmodified lines
361361
362362 m_pDecContext->iFeedbackTidInAu = -1; //initialize
363363
364− WelsDecodeBs (m_pDecContext, kpSrc, kiSrcLen, (unsigned char**)ppDst,
364+ WelsDecodeBs (m_pDecContext, kpSrc, kiSrcLen, ppDst,
365365 pDstInfo); //iErrorCode has been modified in this function
366366
367367 if (m_pDecContext->iErrorCode) {
@@ -406,7 +406,7 @@ DECODING_STATE CWelsDecoder::DecodeFrame (const unsigned char* kpSrc, · 38 unmodified lines
406406 DstInfo.UsrData.sSystemBuffer.iWidth = iWidth;
407407 DstInfo.UsrData.sSystemBuffer.iHeight = iHeight;
408408
409− eDecState = DecodeFrame2 (kpSrc, kiSrcLen, (void**)ppDst, &DstInfo);
409+ eDecState = DecodeFrame2 (kpSrc, kiSrcLen, ppDst, &DstInfo);
410410 if (eDecState == dsErrorFree) {
411411 pStride[0] = DstInfo.UsrData.sSystemBuffer.iStride[0];
412412 pStride[1] = DstInfo.UsrData.sSystemBuffer.iStride[1];

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t