astyle all files
This commit is contained in:
@@ -56,57 +56,57 @@ namespace WelsDec {
|
||||
|
||||
class CWelsDecoder : public ISVCDecoder {
|
||||
public:
|
||||
CWelsDecoder (void);
|
||||
virtual ~CWelsDecoder();
|
||||
CWelsDecoder (void);
|
||||
virtual ~CWelsDecoder();
|
||||
|
||||
virtual long EXTAPI Initialize (const SDecodingParam* pParam);
|
||||
virtual long EXTAPI Uninitialize();
|
||||
virtual long EXTAPI Initialize (const SDecodingParam* pParam);
|
||||
virtual long EXTAPI Uninitialize();
|
||||
|
||||
/***************************************************************************
|
||||
* Description:
|
||||
* Decompress one frame, and output RGB24 or YV12 decoded stream and its length.
|
||||
* Input parameters:
|
||||
* Parameter TYPE Description
|
||||
* pSrc unsigned char* the h264 stream to decode
|
||||
* srcLength int the length of h264 steam
|
||||
* pDst unsigned char* buffer pointer of decoded data
|
||||
* pDstInfo SBufferInfo& information provided to API including width, height, SW/HW option, etc
|
||||
*
|
||||
* return: if decode frame success return 0, otherwise corresponding error returned.
|
||||
***************************************************************************/
|
||||
virtual DECODING_STATE EXTAPI DecodeFrame (const unsigned char* kpSrc,
|
||||
const int kiSrcLen,
|
||||
unsigned char** ppDst,
|
||||
int* pStride,
|
||||
int& iWidth,
|
||||
int& iHeight);
|
||||
/***************************************************************************
|
||||
* Description:
|
||||
* Decompress one frame, and output RGB24 or YV12 decoded stream and its length.
|
||||
* Input parameters:
|
||||
* Parameter TYPE Description
|
||||
* pSrc unsigned char* the h264 stream to decode
|
||||
* srcLength int the length of h264 steam
|
||||
* pDst unsigned char* buffer pointer of decoded data
|
||||
* pDstInfo SBufferInfo& information provided to API including width, height, SW/HW option, etc
|
||||
*
|
||||
* return: if decode frame success return 0, otherwise corresponding error returned.
|
||||
***************************************************************************/
|
||||
virtual DECODING_STATE EXTAPI DecodeFrame (const unsigned char* kpSrc,
|
||||
const int kiSrcLen,
|
||||
unsigned char** ppDst,
|
||||
int* pStride,
|
||||
int& iWidth,
|
||||
int& iHeight);
|
||||
|
||||
virtual DECODING_STATE EXTAPI DecodeFrame2 (const unsigned char* kpSrc,
|
||||
const int kiSrcLen,
|
||||
void** ppDst,
|
||||
SBufferInfo* pDstInfo);
|
||||
virtual DECODING_STATE EXTAPI DecodeFrameEx (const unsigned char* kpSrc,
|
||||
const int kiSrcLen,
|
||||
unsigned char* pDst,
|
||||
int iDstStride,
|
||||
int& iDstLen,
|
||||
int& iWidth,
|
||||
int& iHeight,
|
||||
int& color_format);
|
||||
virtual DECODING_STATE EXTAPI DecodeFrame2 (const unsigned char* kpSrc,
|
||||
const int kiSrcLen,
|
||||
void** ppDst,
|
||||
SBufferInfo* pDstInfo);
|
||||
virtual DECODING_STATE EXTAPI DecodeFrameEx (const unsigned char* kpSrc,
|
||||
const int kiSrcLen,
|
||||
unsigned char* pDst,
|
||||
int iDstStride,
|
||||
int& iDstLen,
|
||||
int& iWidth,
|
||||
int& iHeight,
|
||||
int& color_format);
|
||||
|
||||
virtual long EXTAPI SetOption (DECODER_OPTION eOptID, void* pOption);
|
||||
virtual long EXTAPI GetOption (DECODER_OPTION eOptID, void* pOption);
|
||||
virtual long EXTAPI SetOption (DECODER_OPTION eOptID, void* pOption);
|
||||
virtual long EXTAPI GetOption (DECODER_OPTION eOptID, void* pOption);
|
||||
|
||||
private:
|
||||
PWelsDecoderContext m_pDecContext;
|
||||
IWelsTrace* m_pTrace;
|
||||
PWelsDecoderContext m_pDecContext;
|
||||
IWelsTrace* m_pTrace;
|
||||
|
||||
void InitDecoder (void);
|
||||
void UninitDecoder (void);
|
||||
void InitDecoder (void);
|
||||
void UninitDecoder (void);
|
||||
|
||||
#ifdef OUTPUT_BIT_STREAM
|
||||
WelsFileHandle* m_pFBS;
|
||||
WelsFileHandle* m_pFBSSize;
|
||||
WelsFileHandle* m_pFBS;
|
||||
WelsFileHandle* m_pFBSSize;
|
||||
#endif//OUTPUT_BIT_STREAM
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user