[FFmpeg-devel] [PATCH 1/5] avutil/frame: add new interlaced and top_field_first flags

James Almer jamrial at gmail.com
Sun Apr 30 03:19:06 EEST 2023


On 4/12/2023 4:49 PM, James Almer wrote:
> Signed-off-by: James Almer <jamrial at gmail.com>
> ---
> Missing version bump and APIChanges entry.
> 
>   libavutil/frame.h | 9 +++++++++
>   1 file changed, 9 insertions(+)
> 
> diff --git a/libavutil/frame.h b/libavutil/frame.h
> index 5b58c14ac3..87e0a51226 100644
> --- a/libavutil/frame.h
> +++ b/libavutil/frame.h
> @@ -586,6 +586,15 @@ typedef struct AVFrame {
>    * A flag to mark the frames which need to be decoded, but shouldn't be output.
>    */
>   #define AV_FRAME_FLAG_DISCARD   (1 << 2)
> +/**
> + * A flag to mark frames whose content is interlaced.
> + */
> +#define AV_FRAME_FLAG_INTERLACED (1 << 3)
> +/**
> + * A flag to mark frames where the top field is displayed first if the content
> + * is interlaced.
> + */
> +#define AV_FRAME_FLAG_TOP_FIELD_FIRST (1 << 4)
>   /**
>    * @}
>    */

If no one objects, I'll push this set and the key_frame one this week.


More information about the ffmpeg-devel mailing list