#include <string.h>
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "avfilter.h"
#include "filters.h"
#include "scale_eval.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()
static int scale_vaapi_config_output |
( |
AVFilterLink * |
outlink | ) |
|
|
static |
◆ 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:= {
.p.name = "scale_vaapi",
.p.priv_class = &scale_vaapi_class,
}
Definition at line 300 of file vf_scale_vaapi.c.
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 FILTER_INPUTS(array)
int ff_vaapi_vpp_query_formats(const AVFilterContext *avctx, AVFilterFormatsConfig **cfg_in, AVFilterFormatsConfig **cfg_out)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
#define FILTER_OUTPUTS(array)
static const AVFilterPad scale_vaapi_inputs[]
int ff_vaapi_vpp_config_input(AVFilterLink *inlink)
void ff_vaapi_vpp_ctx_uninit(AVFilterContext *avctx)
#define FF_FILTER_FLAG_HWFRAME_AWARE
The filter is aware of hardware frames, and any hardware frame context should not be automatically pr...
int(* init)(AVBSFContext *ctx)
#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 void uninit(AVBSFContext *ctx)
static av_cold int scale_vaapi_init(AVFilterContext *avctx)
#define FILTER_QUERY_FUNC2(func)
static const AVFilterPad scale_vaapi_outputs[]