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


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)


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)

Definition at line 38 of file vf_hwdownload.c.

static int hwdownload_config_input ( AVFilterLink inlink)

Definition at line 52 of file vf_hwdownload.c.

static int hwdownload_config_output ( AVFilterLink outlink)

Definition at line 74 of file vf_hwdownload.c.

static int hwdownload_filter_frame ( AVFilterLink link,
AVFrame input 

Definition at line 112 of file vf_hwdownload.c.

static av_cold void hwdownload_uninit ( AVFilterContext avctx)

Definition at line 162 of file vf_hwdownload.c.

Variable Documentation

const AVClass hwdownload_class
Initial value:
= {
.class_name = "hwdownload",
.item_name = av_default_item_name,
.option = NULL,
#define NULL
Definition: coverity.c:32
Definition: version.h:85
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:235

Definition at line 169 of file vf_hwdownload.c.

const AVFilterPad hwdownload_inputs[]
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:52

Definition at line 176 of file vf_hwdownload.c.

const AVFilterPad hwdownload_outputs[]
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:74

Definition at line 186 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)
The filter is aware of hardware frames, and any hardware frame context should not be automatically pr...
Definition: internal.h:339
static const AVFilterPad hwdownload_inputs[]
static const AVClass hwdownload_class
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 const AVFilterPad hwdownload_outputs[]
static int hwdownload_query_formats(AVFilterContext *avctx)
Definition: vf_hwdownload.c:38

Definition at line 195 of file vf_hwdownload.c.