[FFmpeg-devel] [PATCH 2/3] libavcodec/libx264.c: refine code to extract function x264_encode_set_roi

Guo, Yejun yejun.guo at intel.com
Wed Feb 19 06:23:54 EET 2020



> -----Original Message-----
> From: Guo, Yejun
> Sent: Friday, February 14, 2020 11:32 AM
> To: ffmpeg-devel at ffmpeg.org
> Cc: Guo, Yejun <yejun.guo at intel.com>
> Subject: [PATCH 2/3] libavcodec/libx264.c: refine code to extract function
> x264_encode_set_roi
> 
> Signed-off-by: Guo, Yejun <yejun.guo at intel.com>
> ---
>  libavcodec/libx264.c | 148 ++++++++++++++++++++++++++++-----------------------
>  1 file changed, 80 insertions(+), 68 deletions(-)
> 
> diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c
> index ca8f6c0..bad9351 100644
> --- a/libavcodec/libx264.c
> +++ b/libavcodec/libx264.c
> @@ -289,6 +289,83 @@ static void reconfig_encoder(AVCodecContext *ctx,
> const AVFrame *frame)
>      }
>  }
> 
> +static int x264_encode_set_roi(const AVFrame *frame, AVCodecContext *ctx,
> int bit_depth)
> +{

hi, please ignore the other two patches of this patch set, while this patch to refine
the code in libv264.c is valuable and ask for review, thanks.

Yejun


More information about the ffmpeg-devel mailing list