FFmpeg  4.0
Data Structures | Functions | Variables
vf_hwupload.c File Reference
#include "libavutil/buffer.h"
#include "libavutil/hwcontext.h"
#include "libavutil/hwcontext_internal.h"
#include "libavutil/log.h"
#include "libavutil/pixdesc.h"
#include "libavutil/opt.h"
#include "avfilter.h"
#include "formats.h"
#include "internal.h"
#include "video.h"

Go to the source code of this file.

Data Structures

struct  HWUploadContext
 

Functions

static int hwupload_query_formats (AVFilterContext *avctx)
 
static int hwupload_config_output (AVFilterLink *outlink)
 
static int hwupload_filter_frame (AVFilterLink *link, AVFrame *input)
 
static av_cold void hwupload_uninit (AVFilterContext *avctx)
 

Variables

static const AVClass hwupload_class
 
static const AVFilterPad hwupload_inputs []
 
static const AVFilterPad hwupload_outputs []
 
AVFilter ff_vf_hwupload
 

Function Documentation

◆ hwupload_query_formats()

static int hwupload_query_formats ( AVFilterContext avctx)
static

Definition at line 41 of file vf_hwupload.c.

◆ hwupload_config_output()

static int hwupload_config_output ( AVFilterLink outlink)
static

Definition at line 96 of file vf_hwupload.c.

◆ hwupload_filter_frame()

static int hwupload_filter_frame ( AVFilterLink link,
AVFrame input 
)
static

Definition at line 154 of file vf_hwupload.c.

◆ hwupload_uninit()

static av_cold void hwupload_uninit ( AVFilterContext avctx)
static

Definition at line 195 of file vf_hwupload.c.

Variable Documentation

◆ hwupload_class

const AVClass hwupload_class
static
Initial value:
= {
.class_name = "hwupload",
.item_name = av_default_item_name,
.option = NULL,
}
#define NULL
Definition: coverity.c:32
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:191

Definition at line 203 of file vf_hwupload.c.

◆ hwupload_inputs

const AVFilterPad hwupload_inputs[]
static
Initial value:
= {
{
.name = "default",
.filter_frame = hwupload_filter_frame,
},
{ NULL }
}
#define NULL
Definition: coverity.c:32
static int hwupload_filter_frame(AVFilterLink *link, AVFrame *input)
Definition: vf_hwupload.c:154

Definition at line 210 of file vf_hwupload.c.

◆ hwupload_outputs

const AVFilterPad hwupload_outputs[]
static
Initial value:
= {
{
.name = "default",
.config_props = hwupload_config_output,
},
{ NULL }
}
#define NULL
Definition: coverity.c:32
static int hwupload_config_output(AVFilterLink *outlink)
Definition: vf_hwupload.c:96

Definition at line 219 of file vf_hwupload.c.

◆ ff_vf_hwupload

AVFilter ff_vf_hwupload
Initial value:
= {
.name = "hwupload",
.description = NULL_IF_CONFIG_SMALL("Upload a normal frame to a hardware frame"),
.uninit = hwupload_uninit,
.query_formats = hwupload_query_formats,
.priv_size = sizeof(HWUploadContext),
.priv_class = &hwupload_class,
.flags_internal = FF_FILTER_FLAG_HWFRAME_AWARE,
}
static int hwupload_query_formats(AVFilterContext *avctx)
Definition: vf_hwupload.c:41
#define FF_FILTER_FLAG_HWFRAME_AWARE
The filter is aware of hardware frames, and any hardware frame context should not be automatically pr...
Definition: internal.h:385
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
static const AVFilterPad inputs[]
Definition: af_acontrast.c:193
static const AVFilterPad outputs[]
Definition: af_acontrast.c:203
static av_cold void hwupload_uninit(AVFilterContext *avctx)
Definition: vf_hwupload.c:195
static const AVFilterPad hwupload_outputs[]
Definition: vf_hwupload.c:219
static const AVFilterPad hwupload_inputs[]
Definition: vf_hwupload.c:210
static const AVClass hwupload_class
Definition: vf_hwupload.c:203

Definition at line 228 of file vf_hwupload.c.