FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
vf_hwdownload.c File Reference
#include "libavutil/buffer.h"
#include "libavutil/hwcontext.h"
#include "libavutil/log.h"
#include "libavutil/mem.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "avfilter.h"
#include "formats.h"
#include "internal.h"
#include "video.h"

Go to the source code of this file.

Data Structures

struct  HWDownloadContext
 

Functions

static int hwdownload_query_formats (AVFilterContext *avctx)
 
static int hwdownload_config_input (AVFilterLink *inlink)
 
static int hwdownload_config_output (AVFilterLink *outlink)
 
static int hwdownload_filter_frame (AVFilterLink *link, AVFrame *input)
 
static av_cold void hwdownload_uninit (AVFilterContext *avctx)
 

Variables

static const AVClass hwdownload_class
 
static const AVFilterPad hwdownload_inputs []
 
static const AVFilterPad hwdownload_outputs []
 
AVFilter ff_vf_hwdownload
 

Function Documentation

static int hwdownload_query_formats ( AVFilterContext avctx)
static

Definition at line 38 of file vf_hwdownload.c.

static int hwdownload_config_input ( AVFilterLink inlink)
static

Definition at line 65 of file vf_hwdownload.c.

static int hwdownload_config_output ( AVFilterLink outlink)
static

Definition at line 87 of file vf_hwdownload.c.

static int hwdownload_filter_frame ( AVFilterLink link,
AVFrame input 
)
static

Definition at line 125 of file vf_hwdownload.c.

static av_cold void hwdownload_uninit ( AVFilterContext avctx)
static

Definition at line 171 of file vf_hwdownload.c.

Variable Documentation

const AVClass hwdownload_class
static
Initial value:
= {
.class_name = "hwdownload",
.item_name = av_default_item_name,
.option = NULL,
}
#define NULL
Definition: coverity.c:32
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
av_default_item_name

Definition at line 178 of file vf_hwdownload.c.

const AVFilterPad hwdownload_inputs[]
static
Initial value:
= {
{
.name = "default",
.config_props = hwdownload_config_input,
.filter_frame = hwdownload_filter_frame,
},
{ NULL }
}
#define NULL
Definition: coverity.c:32
static int hwdownload_filter_frame(AVFilterLink *link, AVFrame *input)
static int hwdownload_config_input(AVFilterLink *inlink)
Definition: vf_hwdownload.c:65

Definition at line 185 of file vf_hwdownload.c.

const AVFilterPad hwdownload_outputs[]
static
Initial value:
= {
{
.name = "default",
.config_props = hwdownload_config_output,
},
{ NULL }
}
#define NULL
Definition: coverity.c:32
static int hwdownload_config_output(AVFilterLink *outlink)
Definition: vf_hwdownload.c:87

Definition at line 195 of file vf_hwdownload.c.

AVFilter ff_vf_hwdownload
Initial value:
= {
.name = "hwdownload",
.description = NULL_IF_CONFIG_SMALL("Download a hardware frame to a normal frame"),
.uninit = hwdownload_uninit,
.query_formats = hwdownload_query_formats,
.priv_size = sizeof(HWDownloadContext),
.priv_class = &hwdownload_class,
}
static av_cold void hwdownload_uninit(AVFilterContext *avctx)
static const AVFilterPad hwdownload_inputs[]
static const AVClass hwdownload_class
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:176
static const AVFilterPad outputs[]
Definition: af_afftfilt.c:386
static const AVFilterPad inputs[]
Definition: af_afftfilt.c:376
static const AVFilterPad hwdownload_outputs[]
static int hwdownload_query_formats(AVFilterContext *avctx)
Definition: vf_hwdownload.c:38

Definition at line 204 of file vf_hwdownload.c.