[FFmpeg-devel] [PATCH] avcodec/nvenc: Reconfigure resolution	on-the-fly
    Hendrik Leppkes 
    h.leppkes at gmail.com
       
    Wed Mar  6 17:13:01 EET 2019
    
    
  
On Wed, Mar 6, 2019 at 3:57 PM Oliver Collyer <ovcollyer at mac.com> wrote:
>
> diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
> index 0ce22ec4fa..7087f82ce1 100644
> --- a/libavcodec/avcodec.h
> +++ b/libavcodec/avcodec.h
> @@ -3357,6 +3357,12 @@ typedef struct AVCodecContext {
>       * - encoding: unused
>       */
>      int discard_damaged_percentage;
> +
> +    /*
> +     * Video encoding only. Sets the maximum picture size for encoders that
> +     * support adjusting the picture size dynamically during encoding.
> +     */
> +     int max_width, max_height;
>  } AVCodecContext;
>
I really don't like introducing public API fields for this. Maybe a
private nvenc option would be better at this point.
- Hendrik
    
    
More information about the ffmpeg-devel
mailing list