2012-05-19 11:37:56 +03:00
|
|
|
/*
|
2012-05-23 22:41:13 +03:00
|
|
|
* Copyright (c) 2007 Bobby Bingham
|
2012-05-19 11:37:56 +03:00
|
|
|
*
|
2012-05-23 22:41:13 +03:00
|
|
|
* This file is part of FFmpeg.
|
|
|
|
*
|
|
|
|
* FFmpeg is free software; you can redistribute it and/or
|
2012-05-19 11:37:56 +03:00
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
2012-05-23 22:41:13 +03:00
|
|
|
* FFmpeg is distributed in the hope that it will be useful,
|
2012-05-19 11:37:56 +03:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2012-05-23 22:41:13 +03:00
|
|
|
* License along with FFmpeg; if not, write to the Free Software
|
2012-05-19 11:37:56 +03:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef AVFILTER_VIDEO_H
|
|
|
|
#define AVFILTER_VIDEO_H
|
|
|
|
|
2012-05-25 00:46:15 +03:00
|
|
|
#include "avfilter.h"
|
2024-08-12 15:29:00 +02:00
|
|
|
#include "filters.h"
|
2023-08-03 14:37:51 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* An AVFilterPad array whose only entry has name "default"
|
|
|
|
* and is of type AVMEDIA_TYPE_VIDEO.
|
|
|
|
*/
|
|
|
|
extern const AVFilterPad ff_video_default_filterpad[1];
|
2012-05-25 00:46:15 +03:00
|
|
|
|
2012-11-28 10:41:07 +03:00
|
|
|
AVFrame *ff_default_get_video_buffer(AVFilterLink *link, int w, int h);
|
2022-04-11 22:40:59 +02:00
|
|
|
AVFrame *ff_default_get_video_buffer2(AVFilterLink *link, int w, int h, int align);
|
2012-11-28 10:41:07 +03:00
|
|
|
AVFrame *ff_null_get_video_buffer(AVFilterLink *link, int w, int h);
|
2012-05-19 11:37:56 +03:00
|
|
|
|
2012-05-30 11:31:48 +03:00
|
|
|
/**
|
|
|
|
* Request a picture buffer with a specific set of permissions.
|
|
|
|
*
|
|
|
|
* @param link the output link to the filter from which the buffer will
|
|
|
|
* be requested
|
|
|
|
* @param w the minimum width of the buffer to allocate
|
|
|
|
* @param h the minimum height of the buffer to allocate
|
2021-09-22 07:03:55 +02:00
|
|
|
* @return on success, an AVFrame owned by the caller, NULL on error
|
2012-05-30 11:31:48 +03:00
|
|
|
*/
|
2012-11-28 10:41:07 +03:00
|
|
|
AVFrame *ff_get_video_buffer(AVFilterLink *link, int w, int h);
|
2012-05-23 22:41:13 +03:00
|
|
|
|
2024-08-16 10:03:29 +02:00
|
|
|
/**
|
|
|
|
* Returns true if a pixel format is "regular YUV", which includes all pixel
|
|
|
|
* formats that are affected by YUV colorspace negotiation.
|
|
|
|
*/
|
|
|
|
int ff_fmt_is_regular_yuv(enum AVPixelFormat fmt);
|
|
|
|
|
2024-03-25 15:37:15 +02:00
|
|
|
/**
|
|
|
|
* Returns true if a YUV pixel format is forced full range (i.e. YUVJ).
|
|
|
|
*/
|
|
|
|
int ff_fmt_is_forced_full_range(enum AVPixelFormat fmt);
|
|
|
|
|
2012-05-19 11:37:56 +03:00
|
|
|
#endif /* AVFILTER_VIDEO_H */
|