Data Structures | Macros | 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


#define OFFSET(x)   offsetof(HWUploadContext, x)


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)


static const AVOption hwupload_options []
static const AVFilterPad hwupload_inputs []
static const AVFilterPad hwupload_outputs []
AVFilter ff_vf_hwupload

Macro Definition Documentation

#define OFFSET (   x)    offsetof(HWUploadContext, x)

Definition at line 220 of file vf_hwupload.c.

Definition at line 221 of file vf_hwupload.c.

Function Documentation

static int hwupload_query_formats ( AVFilterContext avctx)

Definition at line 42 of file vf_hwupload.c.

static int hwupload_config_output ( AVFilterLink outlink)

Definition at line 107 of file vf_hwupload.c.

static int hwupload_filter_frame ( AVFilterLink link,
AVFrame input 

Definition at line 171 of file vf_hwupload.c.

static av_cold void hwupload_uninit ( AVFilterContext avctx)

Definition at line 212 of file vf_hwupload.c.


Variable Documentation

const AVOption hwupload_options[]
Initial value:
= {
"derive_device", "Derive a new device of this type",
{ .str = NULL }, 0, 0, FLAGS
#define NULL
Definition: coverity.c:32
#define FLAGS
Definition: vf_hwupload.c:221
enum AVHWDeviceType device_type
Definition: hwcontext_qsv.c:90
#define OFFSET(x)
Definition: vf_hwupload.c:220

Definition at line 222 of file vf_hwupload.c.

const AVFilterPad hwupload_inputs[]
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:171

Definition at line 235 of file vf_hwupload.c.

const AVFilterPad hwupload_outputs[]
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:107

Definition at line 244 of file vf_hwupload.c.

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,
static int hwupload_query_formats(AVFilterContext *avctx)
Definition: vf_hwupload.c:42
The filter is aware of hardware frames, and any hardware frame context should not be automatically pr...
Definition: internal.h:339
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:153
static const AVFilterPad outputs[]
Definition: af_acontrast.c:203
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
static av_cold void hwupload_uninit(AVFilterContext *avctx)
Definition: vf_hwupload.c:212
static const AVFilterPad hwupload_outputs[]
Definition: vf_hwupload.c:244
static const AVFilterPad hwupload_inputs[]
Definition: vf_hwupload.c:235

Definition at line 253 of file vf_hwupload.c.