Convert tabs to spaces in the public header code examples
This commit is contained in:
@@ -77,40 +77,40 @@ typedef unsigned char bool;
|
|||||||
* //decoder declaration
|
* //decoder declaration
|
||||||
* ISVCDecoder *pSvcDecoder;
|
* ISVCDecoder *pSvcDecoder;
|
||||||
* //input: encoded bitstream start position; should include start code prefix
|
* //input: encoded bitstream start position; should include start code prefix
|
||||||
* unsigned char *pBuf =...;
|
* unsigned char *pBuf =...;
|
||||||
* //input: encoded bit stream length; should include the size of start code prefix
|
* //input: encoded bit stream length; should include the size of start code prefix
|
||||||
* int iSize =...;
|
* int iSize =...;
|
||||||
* //output: [0~2] for Y,U,V buffer for Decoding only
|
* //output: [0~2] for Y,U,V buffer for Decoding only
|
||||||
* unsigned char *pData[3] =...;
|
* unsigned char *pData[3] =...;
|
||||||
* //in-out: for Decoding only: declare and initialize the output buffer info, this should never co-exist with Parsing only
|
* //in-out: for Decoding only: declare and initialize the output buffer info, this should never co-exist with Parsing only
|
||||||
* SBufferInfo sDstBufInfo;
|
* SBufferInfo sDstBufInfo;
|
||||||
* memset(&sDstBufInfo, 0, sizeof(SBufferInfo));
|
* memset(&sDstBufInfo, 0, sizeof(SBufferInfo));
|
||||||
* //in-out: for Parsing only: declare and initialize the output bitstream buffer info for parse only, this should never co-exist with Decoding only
|
* //in-out: for Parsing only: declare and initialize the output bitstream buffer info for parse only, this should never co-exist with Decoding only
|
||||||
* SParserBsInfo sDstParseInfo;
|
* SParserBsInfo sDstParseInfo;
|
||||||
* memset(&sDstParseInfo, 0, sizeof(SParserBsInfo));
|
* memset(&sDstParseInfo, 0, sizeof(SParserBsInfo));
|
||||||
* sDstParseInfo.pDstBuff = new unsigned char[PARSE_SIZE]; //In Parsing only, allocate enough buffer to save transcoded bitstream for a frame
|
* sDstParseInfo.pDstBuff = new unsigned char[PARSE_SIZE]; //In Parsing only, allocate enough buffer to save transcoded bitstream for a frame
|
||||||
*
|
*
|
||||||
* @endcode
|
* @endcode
|
||||||
*
|
*
|
||||||
* Step 2:decoder creation
|
* Step 2:decoder creation
|
||||||
* @code
|
* @code
|
||||||
* CreateDecoder(pSvcDecoder);
|
* CreateDecoder(pSvcDecoder);
|
||||||
* @endcode
|
* @endcode
|
||||||
*
|
*
|
||||||
* Step 3:declare required parameter, used to differentiate Decoding only and Parsing only
|
* Step 3:declare required parameter, used to differentiate Decoding only and Parsing only
|
||||||
* @code
|
* @code
|
||||||
* SDecodingParam sDecParam = {0};
|
* SDecodingParam sDecParam = {0};
|
||||||
* sDecParam.sVideoProperty.eVideoBsType = VIDEO_BITSTREAM_AVC;
|
* sDecParam.sVideoProperty.eVideoBsType = VIDEO_BITSTREAM_AVC;
|
||||||
* //for Parsing only, the assignment is mandatory
|
* //for Parsing only, the assignment is mandatory
|
||||||
* sDecParam.bParseOnly = true;
|
* sDecParam.bParseOnly = true;
|
||||||
* @endcode
|
* @endcode
|
||||||
*
|
*
|
||||||
* Step 4:initialize the parameter and decoder context, allocate memory
|
* Step 4:initialize the parameter and decoder context, allocate memory
|
||||||
* @code
|
* @code
|
||||||
* Initialize(&sDecParam);
|
* Initialize(&sDecParam);
|
||||||
* @endcode
|
* @endcode
|
||||||
*
|
*
|
||||||
* Step 5:do actual decoding process in slice level;
|
* Step 5:do actual decoding process in slice level;
|
||||||
* this can be done in a loop until data ends
|
* this can be done in a loop until data ends
|
||||||
* @code
|
* @code
|
||||||
* //for Decoding only
|
* //for Decoding only
|
||||||
@@ -120,8 +120,8 @@ typedef unsigned char bool;
|
|||||||
* //for Parsing only
|
* //for Parsing only
|
||||||
* iRet = DecodeParser(pBuf, iSize, &sDstParseInfo);
|
* iRet = DecodeParser(pBuf, iSize, &sDstParseInfo);
|
||||||
* //decode failed
|
* //decode failed
|
||||||
* If (iRet != 0){
|
* If (iRet != 0){
|
||||||
* RequestIDR or something like that.
|
* RequestIDR or something like that.
|
||||||
* }
|
* }
|
||||||
* //for Decoding only, pData can be used for render.
|
* //for Decoding only, pData can be used for render.
|
||||||
* if (sDstBufInfo.iBufferStatus==1){
|
* if (sDstBufInfo.iBufferStatus==1){
|
||||||
@@ -137,12 +137,12 @@ typedef unsigned char bool;
|
|||||||
* judge iRet, sDstBufInfo.iBufferStatus ...
|
* judge iRet, sDstBufInfo.iBufferStatus ...
|
||||||
* @endcode
|
* @endcode
|
||||||
*
|
*
|
||||||
* Step 6:uninitialize the decoder and memory free
|
* Step 6:uninitialize the decoder and memory free
|
||||||
* @code
|
* @code
|
||||||
* Uninitialize();
|
* Uninitialize();
|
||||||
* @endcode
|
* @endcode
|
||||||
*
|
*
|
||||||
* Step 7:destroy the decoder
|
* Step 7:destroy the decoder
|
||||||
* @code
|
* @code
|
||||||
* DestroyDecoder();
|
* DestroyDecoder();
|
||||||
* @endcode
|
* @endcode
|
||||||
|
|||||||
Reference in New Issue
Block a user