houxiao
2017-08-18 7f0053c8f0cd76ecff7f8aee060cd4fd5093b1a3
RtspFace/PL_AndroidMediaCodecDecoder.h
@@ -30,15 +30,32 @@
   // AMEDIAFORMAT_KEY_SAMPLE_RATE;
   uint32_t ak_width; // AMEDIAFORMAT_KEY_WIDTH;
   // AMEDIAFORMAT_KEY_STRIDE;
   void* windowSurface;
   void* windowSurfaceDecode;
   void* windowSurfaceRender;
   bool releaseOutputBuffIdx;
   bool releaseOutputBuffIdxInPay;
   int generateDecodedDataPerFrame; // 0: do not generate, N: generate every N frame ((G . . .)/N ... (G . . .)/N ...)
   bool ptsUseAbsoluteTime;
   bool initCodecInPay;
   PL_AndroidMediaCodecDecoder_Config() : 
      ak_height(0), 
      ak_mime(), 
      ak_width(0),
      windowSurface(nullptr)
      windowSurfaceDecode(nullptr),
      windowSurfaceRender(nullptr),
      releaseOutputBuffIdx(true),
      releaseOutputBuffIdxInPay(false),
      generateDecodedDataPerFrame(0),
      ptsUseAbsoluteTime(false),
      initCodecInPay(true)
   {}
};
@@ -56,8 +73,13 @@
   
private:
   void* internal;
   void aux_is_set();
   bool init_codec();
};
PipeLineElem* create_PL_AndroidMediaCodecDecoder();
void dbgReadTexture();
#endif