#include <cuda.h>
#include "libavutil/avassert.h"
#include "libavutil/hwcontext_cuda.h"
#include "internal.h"
#include "yadif.h"
Go to the source code of this file.
|
static int | check_cu (AVFilterContext *avctx, CUresult err, const char *func) |
|
static CUresult | call_kernel (AVFilterContext *ctx, CUfunction func, CUdeviceptr prev, CUdeviceptr cur, CUdeviceptr next, CUarray_format format, int channels, int src_width, int src_height, int src_pitch, CUdeviceptr dst, int dst_width, int dst_height, int dst_pitch, int parity, int tff) |
|
static void | filter (AVFilterContext *ctx, AVFrame *dst, int parity, int tff) |
|
static av_cold void | deint_cuda_uninit (AVFilterContext *ctx) |
|
static int | deint_cuda_query_formats (AVFilterContext *ctx) |
|
static int | config_input (AVFilterLink *inlink) |
|
static int | config_output (AVFilterLink *link) |
|
#define DIV_UP |
( |
|
a, |
|
|
|
b |
|
) |
| ( ((a) + (b) - 1) / (b) ) |
#define ALIGN_UP |
( |
|
a, |
|
|
|
b |
|
) |
| (((a) + (b) - 1) & ~((b) - 1)) |
static CUresult call_kernel |
( |
AVFilterContext * |
ctx, |
|
|
CUfunction |
func, |
|
|
CUdeviceptr |
prev, |
|
|
CUdeviceptr |
cur, |
|
|
CUdeviceptr |
next, |
|
|
CUarray_format |
format, |
|
|
int |
channels, |
|
|
int |
src_width, |
|
|
int |
src_height, |
|
|
int |
src_pitch, |
|
|
CUdeviceptr |
dst, |
|
|
int |
dst_width, |
|
|
int |
dst_height, |
|
|
int |
dst_pitch, |
|
|
int |
parity, |
|
|
int |
tff |
|
) |
| |
|
static |
Initial value:= {
.class_name = "yadif_cuda",
}
#define LIBAVUTIL_VERSION_INT
const char * av_default_item_name(void *ptr)
Return the context name.
const AVOption ff_yadif_options[]
Definition at line 387 of file vf_yadif_cuda.c.
Initial value:= {
{
.name = "default",
},
}
static int config_input(AVFilterLink *inlink)
int ff_yadif_filter_frame(AVFilterLink *link, AVFrame *frame)
Definition at line 395 of file vf_yadif_cuda.c.
Initial value:= {
{
.name = "default",
},
}
int ff_yadif_request_frame(AVFilterLink *link)
static int config_output(AVFilterLink *link)
Definition at line 405 of file vf_yadif_cuda.c.
Initial value:= {
.name = "yadif_cuda",
}
#define FF_FILTER_FLAG_HWFRAME_AWARE
The filter is aware of hardware frames, and any hardware frame context should not be automatically pr...
static av_cold void deint_cuda_uninit(AVFilterContext *ctx)
static av_cold int uninit(AVCodecContext *avctx)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static const AVClass yadif_cuda_class
static const AVFilterPad inputs[]
static const AVFilterPad outputs[]
static const AVFilterPad deint_cuda_outputs[]
#define AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL
Same as AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC, except that the filter will have its filter_frame() c...
#define flags(name, subs,...)
static const AVFilterPad deint_cuda_inputs[]
static int query_formats(AVFilterContext *ctx)
static int deint_cuda_query_formats(AVFilterContext *ctx)
Definition at line 415 of file vf_yadif_cuda.c.