shithub: openh264

Download patch

ref: 471816d3fcb009dcad6e1e3e34bdbecfd0aef733
parent: 42485df431c52744a528d2acf13d2dff2315c311
parent: f5d16838617564bf30a01020fcd0fd2a12e057f6
author: Licai Guo <licaguo@cisco.com>
date: Fri Apr 11 08:56:31 EDT 2014

Merge pull request #664 from huili2/modify_api_comments

modify decoder API to up-to-date

--- a/codec/api/svc/codec_api.h
+++ b/codec/api/svc/codec_api.h
@@ -103,9 +103,8 @@
                                              int* pStride,
                                              int& iWidth,
                                              int& iHeight) = 0;
-
   /*
-   *  src must be 4 byte aligned,   recommend 16 byte aligned.    the available src size must be multiple of 4.
+   * return: 0 - success; otherwise -failed;
    */
   virtual DECODING_STATE EXTAPI DecodeFrame2 (const unsigned char* pSrc,
                                               const int iSrcLen,
@@ -113,7 +112,6 @@
                                               SBufferInfo* pDstInfo) = 0;
 
   /*
-   *  src must be 4 byte aligned,   recommend 16 byte aligned.    the available src size must be multiple of 4.
    *  this API does not work for now!! This is for future use to support non-I420 color format output.
    */
   virtual DECODING_STATE EXTAPI DecodeFrameEx (const unsigned char* pSrc,
@@ -126,7 +124,7 @@
                                                int& iColorFormat) = 0;
 
   /*************************************************************************
-   * OutDataFormat
+   * OutDataFormat, Eos Flag, EC method, ...
    *************************************************************************/
   virtual long EXTAPI SetOption (DECODER_OPTION eOptionId, void* pOption) = 0;
   virtual long EXTAPI GetOption (DECODER_OPTION eOptionId, void* pOption) = 0;