shithub: openh264

Download patch

ref: f5d16838617564bf30a01020fcd0fd2a12e057f6
parent: 4b5a455e1688062de7cdff5f3cd64db73223a757
author: huili2 <huili2@cisco.com>
date: Thu Apr 10 15:44:28 EDT 2014

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;