[FFmpeg-devel] [PATCH 1/2 v4] avcodec/encode: restructure the core encoding code

Andreas Rheinhardt andreas.rheinhardt at gmail.com
Mon May 25 20:08:38 EEST 2020


James Almer:
> This commit follows the same logic as 061a0c14bb, but for the encode API: The
> new public encoding API will no longer be a wrapper around the old deprecated
> one, and the internal API used by the encoders now consists of a single
> receive_packet() callback that pulls frames as required.
> 
> amf encoders adapted by James Almer
> librav1e encoder adapted by James Almer
> nvidia encoders adapted by James Almer
> MediaFoundation encoders adapted by James Almer
> vaapi encoders adapted by Linjie Fu
> v4l2_m2m encoders adapted by Andriy Gelman
> 
> Signed-off-by: James Almer <jamrial at gmail.com>
> ---
> @@ -328,6 +328,9 @@ typedef struct VAAPIEncodeContext {
>      // If the driver does not support ROI then warn the first time we
>      // encounter a frame with ROI side data.
>      int             roi_warned;
> +
> +    // Adapt to the new internal encode API

This comment won't age well.

> +    AVFrame         *frame;
>  } VAAPIEncodeContext;
>  

- Andreas


More information about the ffmpeg-devel mailing list