From e09e9f8a34cbc99a33dfa9ef1792b0025575c3a8 Mon Sep 17 00:00:00 2001 From: xuxiuxi <xuxiuxi@454eff88-639b-444f-9e54-f578c98de674> Date: 星期二, 01 八月 2017 11:41:19 +0800 Subject: [PATCH] --- RtspFace/PL_AndroidMediaCodecDecoder.h | 23 +++++++++++++++++++---- 1 files changed, 19 insertions(+), 4 deletions(-) diff --git a/RtspFace/PL_AndroidMediaCodecDecoder.h b/RtspFace/PL_AndroidMediaCodecDecoder.h index 98ef7ee..77fab7a 100644 --- a/RtspFace/PL_AndroidMediaCodecDecoder.h +++ b/RtspFace/PL_AndroidMediaCodecDecoder.h @@ -30,15 +30,28 @@ // 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; + 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) {} }; @@ -60,4 +73,6 @@ PipeLineElem* create_PL_AndroidMediaCodecDecoder(); +void dbgReadTexture(); + #endif -- Gitblit v1.8.0