FFmpeg
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

◆ hwdownload_query_formats()

static int hwdownload_query_formats ( AVFilterContext avctx)
static

Definition at line 38 of file vf_hwdownload.c.

◆ hwdownload_config_input()

static int hwdownload_config_input ( AVFilterLink inlink)
static

Definition at line 52 of file vf_hwdownload.c.

◆ hwdownload_config_output()

static int hwdownload_config_output ( AVFilterLink outlink)
static

Definition at line 74 of file vf_hwdownload.c.

◆ hwdownload_filter_frame()

static int hwdownload_filter_frame ( AVFilterLink link,
AVFrame input 
)
static

Definition at line 112 of file vf_hwdownload.c.

◆ hwdownload_uninit()

static av_cold void hwdownload_uninit ( AVFilterContext avctx)
static

Definition at line 162 of file vf_hwdownload.c.

Variable Documentation

◆ hwdownload_class

const AVClass hwdownload_class
static
Initial value:
= {
.class_name = "hwdownload",
.item_name = av_default_item_name,
.option = NULL,
}

Definition at line 169 of file vf_hwdownload.c.

◆ hwdownload_inputs

const AVFilterPad hwdownload_inputs[]
static
Initial value:
= {
{
.name = "default",
.config_props = hwdownload_config_input,
.filter_frame = hwdownload_filter_frame,
},
{ NULL }
}

Definition at line 176 of file vf_hwdownload.c.

◆ hwdownload_outputs

const AVFilterPad hwdownload_outputs[]
static
Initial value:
= {
{
.name = "default",
.config_props = hwdownload_config_output,
},
{ NULL }
}

Definition at line 186 of file vf_hwdownload.c.

◆ ff_vf_hwdownload

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,
.flags_internal = FF_FILTER_FLAG_HWFRAME_AWARE,
}

Definition at line 195 of file vf_hwdownload.c.

hwdownload_config_input
static int hwdownload_config_input(AVFilterLink *inlink)
Definition: vf_hwdownload.c:52
FF_FILTER_FLAG_HWFRAME_AWARE
#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:339
hwdownload_filter_frame
static int hwdownload_filter_frame(AVFilterLink *link, AVFrame *input)
Definition: vf_hwdownload.c:112
hwdownload_query_formats
static int hwdownload_query_formats(AVFilterContext *avctx)
Definition: vf_hwdownload.c:38
outputs
static const AVFilterPad outputs[]
Definition: af_acontrast.c:203
hwdownload_inputs
static const AVFilterPad hwdownload_inputs[]
Definition: vf_hwdownload.c:176
LIBAVUTIL_VERSION_INT
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
NULL
#define NULL
Definition: coverity.c:32
HWDownloadContext
Definition: vf_hwdownload.c:31
av_default_item_name
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:235
hwdownload_uninit
static av_cold void hwdownload_uninit(AVFilterContext *avctx)
Definition: vf_hwdownload.c:162
inputs
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
Definition: filter_design.txt:243
hwdownload_outputs
static const AVFilterPad hwdownload_outputs[]
Definition: vf_hwdownload.c:186
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:117
hwdownload_config_output
static int hwdownload_config_output(AVFilterLink *outlink)
Definition: vf_hwdownload.c:74
hwdownload_class
static const AVClass hwdownload_class
Definition: vf_hwdownload.c:169
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201