FFmpeg
|
#include <float.h>
#include <stdio.h>
#include <string.h>
#include "libavutil/avstring.h"
#include "libavutil/common.h"
#include "libavutil/hwcontext.h"
#include "libavutil/hwcontext_cuda_internal.h"
#include "libavutil/cuda_check.h"
#include "libavutil/internal.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "avfilter.h"
#include "formats.h"
#include "internal.h"
#include "video.h"
#include "cuda/load_helper.h"
Go to the source code of this file.
Data Structures | |
struct | ChromakeyCUDAContext |
Macros | |
#define | DIV_UP(a, b) (((a) + (b)-1) / (b)) |
#define | BLOCKX 32 |
#define | BLOCKY 16 |
#define | CHECK_CU(x) FF_CUDA_CHECK_DL(ctx, s->hwctx->internal->cuda_dl, x) |
#define | FIXNUM(x) lrint((x) * (1 << 10)) |
#define | RGB_TO_U(rgb) (((-FIXNUM(0.16874) * rgb[0] - FIXNUM(0.33126) * rgb[1] + FIXNUM(0.50000) * rgb[2] + (1 << 9) - 1) >> 10) + 128) |
#define | RGB_TO_V(rgb) (((FIXNUM(0.50000) * rgb[0] - FIXNUM(0.41869) * rgb[1] - FIXNUM(0.08131) * rgb[2] + (1 << 9) - 1) >> 10) + 128) |
#define | OFFSET(x) offsetof(ChromakeyCUDAContext, x) |
#define | FLAGS (AV_OPT_FLAG_FILTERING_PARAM | AV_OPT_FLAG_VIDEO_PARAM) |
Variables | |
static enum AVPixelFormat | supported_formats [] |
static const AVOption | options [] |
static const AVClass | cudachromakey_class |
static const AVFilterPad | cudachromakey_inputs [] |
static const AVFilterPad | cudachromakey_outputs [] |
const AVFilter | ff_vf_chromakey_cuda |
#define BLOCKX 32 |
Definition at line 47 of file vf_chromakey_cuda.c.
#define BLOCKY 16 |
Definition at line 48 of file vf_chromakey_cuda.c.
#define CHECK_CU | ( | x | ) | FF_CUDA_CHECK_DL(ctx, s->hwctx->internal->cuda_dl, x) |
Definition at line 49 of file vf_chromakey_cuda.c.
#define FIXNUM | ( | x | ) | lrint((x) * (1 << 10)) |
Definition at line 257 of file vf_chromakey_cuda.c.
#define RGB_TO_U | ( | rgb | ) | (((-FIXNUM(0.16874) * rgb[0] - FIXNUM(0.33126) * rgb[1] + FIXNUM(0.50000) * rgb[2] + (1 << 9) - 1) >> 10) + 128) |
Definition at line 258 of file vf_chromakey_cuda.c.
#define RGB_TO_V | ( | rgb | ) | (((FIXNUM(0.50000) * rgb[0] - FIXNUM(0.41869) * rgb[1] - FIXNUM(0.08131) * rgb[2] + (1 << 9) - 1) >> 10) + 128) |
Definition at line 259 of file vf_chromakey_cuda.c.
#define OFFSET | ( | x | ) | offsetof(ChromakeyCUDAContext, x) |
Definition at line 449 of file vf_chromakey_cuda.c.
#define FLAGS (AV_OPT_FLAG_FILTERING_PARAM | AV_OPT_FLAG_VIDEO_PARAM) |
Definition at line 450 of file vf_chromakey_cuda.c.
|
static |
Definition at line 79 of file vf_chromakey_cuda.c.
|
static |
Definition at line 94 of file vf_chromakey_cuda.c.
|
static |
Definition at line 114 of file vf_chromakey_cuda.c.
Referenced by init_processing_chain().
|
static |
Definition at line 148 of file vf_chromakey_cuda.c.
Referenced by init_processing_chain().
|
static |
Definition at line 158 of file vf_chromakey_cuda.c.
Referenced by init_processing_chain().
|
static |
Definition at line 185 of file vf_chromakey_cuda.c.
Referenced by cudachromakey_config_props().
|
static |
Definition at line 218 of file vf_chromakey_cuda.c.
Referenced by cudachromakey_config_props().
|
static |
Definition at line 261 of file vf_chromakey_cuda.c.
|
static |
Definition at line 294 of file vf_chromakey_cuda.c.
Referenced by cudachromakey_process_internal().
|
static |
Definition at line 322 of file vf_chromakey_cuda.c.
Referenced by cudachromakey_process().
|
static |
Definition at line 388 of file vf_chromakey_cuda.c.
Referenced by cudachromakey_filter_frame().
|
static |
Definition at line 413 of file vf_chromakey_cuda.c.
|
static |
Definition at line 40 of file vf_chromakey_cuda.c.
Referenced by format_is_supported().
|
static |
Definition at line 451 of file vf_chromakey_cuda.c.
|
static |
Definition at line 459 of file vf_chromakey_cuda.c.
|
static |
Definition at line 466 of file vf_chromakey_cuda.c.
|
static |
Definition at line 474 of file vf_chromakey_cuda.c.
const AVFilter ff_vf_chromakey_cuda |
Definition at line 482 of file vf_chromakey_cuda.c.