#include <string.h>
#include "libavutil/avassert.h"
#include "libavutil/mem.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "avfilter.h"
#include "formats.h"
#include "internal.h"
#include "scale.h"
#include "video.h"
#include "vaapi_vpp.h"
Go to the source code of this file.
◆ STRING_OPTION
#define STRING_OPTION |
( |
|
var_name, |
|
|
|
func_name, |
|
|
|
default_value |
|
) |
| |
Value: do { \
if (
ctx->var_name ## _string) { \
int var = av_ ## func_name ## _from_name(
ctx->var_name ## _string); \
if (var < 0) { \
} \
ctx->var_name = var; \
} else { \
ctx->var_name = default_value; \
} \
} while (0)
◆ OFFSET
◆ FLAGS
◆ scale_vaapi_mode_name()
static const char* scale_vaapi_mode_name |
( |
int |
mode | ) |
|
|
static |
◆ scale_vaapi_config_output()
◆ scale_vaapi_filter_frame()
◆ scale_vaapi_init()
◆ AVFILTER_DEFINE_CLASS()
AVFILTER_DEFINE_CLASS |
( |
scale_vaapi |
| ) |
|
◆ scale_vaapi_options
◆ scale_vaapi_inputs
◆ scale_vaapi_outputs
◆ ff_vf_scale_vaapi
Initial value:= {
.name = "scale_vaapi",
.priv_class = &scale_vaapi_class,
}
Definition at line 275 of file vf_scale_vaapi.c.
static av_cold int init(AVCodecContext *avctx)
Filter the word “frame” indicates either a video frame or a group of audio as stored in an AVFrame structure Format for each input and each output the list of supported formats For video that means pixel format For audio that means channel sample they are references to shared objects When the negotiation mechanism computes the intersection of the formats supported at each end of a all references to both lists are replaced with a reference to the intersection And when a single format is eventually chosen for a link amongst the remaining all references to the list are updated That means that if a filter requires that its input and output have the same format amongst a supported all it has to do is use a reference to the same list of formats query_formats can leave some formats unset and return AVERROR(EAGAIN) to cause the negotiation mechanism toagain later. That can be used by filters with complex requirements to use the format negotiated on one link to set the formats supported on another. Frame references ownership and permissions
#define FF_FILTER_FLAG_HWFRAME_AWARE
The filter is aware of hardware frames, and any hardware frame context should not be automatically pr...
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
static const AVFilterPad outputs[]
static const AVFilterPad scale_vaapi_inputs[]
int ff_vaapi_vpp_config_input(AVFilterLink *inlink)
these buffered frames must be flushed immediately if a new input produces new the filter must not call request_frame to get more It must just process the frame or queue it The task of requesting more frames is left to the filter s request_frame method or the application If a filter has several inputs
void ff_vaapi_vpp_ctx_uninit(AVFilterContext *avctx)
int ff_vaapi_vpp_query_formats(AVFilterContext *avctx)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
static int scale_vaapi_config_output(AVFilterLink *outlink)
static int scale_vaapi_filter_frame(AVFilterLink *inlink, AVFrame *input_frame)
static av_cold int scale_vaapi_init(AVFilterContext *avctx)
static const AVFilterPad scale_vaapi_outputs[]
static int query_formats(AVFilterContext *ctx)
static av_cold int uninit(AVCodecContext *avctx)