From ff93094cd08e8486242e60e9f076ebfd66b83e9c Mon Sep 17 00:00:00 2001 From: xuxiuxi <xuxiuxi@454eff88-639b-444f-9e54-f578c98de674> Date: 星期五, 31 三月 2017 17:23:59 +0800 Subject: [PATCH] --- RtspFace/PL_H264Encoder.h | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/RtspFace/PL_H264Encoder.h b/RtspFace/PL_H264Encoder.h index 9c85662..c5c9c22 100644 --- a/RtspFace/PL_H264Encoder.h +++ b/RtspFace/PL_H264Encoder.h @@ -3,6 +3,27 @@ #include "PipeLine.h" +struct PL_H264Encoder_Config +{ + size_t inBufferSize; + bool resetPTS; + + uint16_t bytesBufferImageWidth; // only useful for PMT_BYTES / MBFT_YUV420 / MBFT_BGRA + uint16_t bytesBufferImageHeight; + + size_t avc_bit_rate; + uint16_t avc_fps; + uint16_t avc_gop; + uint16_t avc_max_b_frames; + int avc_profile; // FF_PROFILE_H264_BASELINE / FF_PROFILE_H264_MAIN / FF_PROFILE_H264_HIGH + + std::string av_opt_preset; + std::string av_opt_tune; + std::string avc_profile_str; + + PL_H264Encoder_Config(); +}; + class PL_H264Encoder : public PipeLineElem { public: -- Gitblit v1.8.0