Go to the source code of this file.
|
| static av_cold int | cudatranspose_init (AVFilterContext *ctx) |
| |
| static av_cold void | cudatranspose_uninit (AVFilterContext *ctx) |
| |
| static av_cold int | init_hwframe_ctx (TransposeCUDAContext *s, AVBufferRef *device_ctx, int width, int height, enum AVPixelFormat sw_format) |
| |
| static int | format_is_supported (enum AVPixelFormat fmt) |
| |
| static int | init_processing_chain (AVFilterContext *ctx, int out_width, int out_height) |
| |
| static int | cudatranspose_config_props (AVFilterLink *outlink) |
| |
| static CUresult | call_kernel (AVFilterContext *ctx, CUfunction cu_func, CUarray_format cu_format, int channels, int is_422_uv, CUdeviceptr dst0, CUdeviceptr dst1, int dst_width, int dst_height, int dst_pitch, CUdeviceptr src0, CUdeviceptr src1, int src_width, int src_height, int src_pitch) |
| |
| static int | cudatranspose_rotate (AVFilterContext *ctx, AVFrame *out, AVFrame *in) |
| |
| static int | cudatranspose_transpose (AVFilterContext *ctx, AVFrame *out, AVFrame *in) |
| |
| static int | cudatranspose_filter_frame (AVFilterLink *link, AVFrame *in) |
| |
| static AVFrame * | cudatranspose_get_video_buffer (AVFilterLink *inlink, int w, int h) |
| |
| | AVFILTER_DEFINE_CLASS (cudatranspose) |
| |
◆ DIV_UP
| #define DIV_UP |
( |
|
a, |
|
|
|
b |
|
) |
| ( ((a) + (b) - 1) / (b) ) |
◆ BLOCK_X
◆ BLOCK_Y
◆ CHECK_CU
◆ OFFSET
◆ FLAGS
◆ cudatranspose_init()
◆ cudatranspose_uninit()
◆ init_hwframe_ctx()
◆ format_is_supported()
◆ init_processing_chain()
| static int init_processing_chain |
( |
AVFilterContext * |
ctx, |
|
|
int |
out_width, |
|
|
int |
out_height |
|
) |
| |
|
static |
◆ cudatranspose_config_props()
| static int cudatranspose_config_props |
( |
AVFilterLink * |
outlink | ) |
|
|
static |
◆ call_kernel()
| static CUresult call_kernel |
( |
AVFilterContext * |
ctx, |
|
|
CUfunction |
cu_func, |
|
|
CUarray_format |
cu_format, |
|
|
int |
channels, |
|
|
int |
is_422_uv, |
|
|
CUdeviceptr |
dst0, |
|
|
CUdeviceptr |
dst1, |
|
|
int |
dst_width, |
|
|
int |
dst_height, |
|
|
int |
dst_pitch, |
|
|
CUdeviceptr |
src0, |
|
|
CUdeviceptr |
src1, |
|
|
int |
src_width, |
|
|
int |
src_height, |
|
|
int |
src_pitch |
|
) |
| |
|
static |
◆ cudatranspose_rotate()
◆ cudatranspose_transpose()
◆ cudatranspose_filter_frame()
◆ cudatranspose_get_video_buffer()
◆ AVFILTER_DEFINE_CLASS()
| AVFILTER_DEFINE_CLASS |
( |
cudatranspose |
| ) |
|
◆ supported_formats
◆ cudatranspose_options
◆ cudatranspose_inputs
◆ cudatranspose_outputs
◆ ff_vf_transpose_cuda
Initial value:= {
.p.name = "transpose_cuda",
.p.priv_class = &cudatranspose_class,
}
Definition at line 553 of file vf_transpose_cuda.c.
@ AV_PIX_FMT_CUDA
HW acceleration through CUDA.
static int cudatranspose_filter_frame(AVFilterLink *link, AVFrame *in)
#define FF_FILTER_FLAG_HWFRAME_AWARE
The filter is aware of hardware frames, and any hardware frame context should not be automatically pr...
#define FILTER_SINGLE_PIXFMT(pix_fmt_)
#define AV_PIX_FMT_YUV420P10
static AVFrame * cudatranspose_get_video_buffer(AVFilterLink *inlink, int w, int h)
static const AVFilterPad cudatranspose_outputs[]
static const AVFilterPad cudatranspose_inputs[]
static int cudatranspose_config_props(AVFilterLink *outlink)
#define AV_PIX_FMT_YUV444P10
#define FILTER_OUTPUTS(array)
#define AV_PIX_FMT_YUV444P16
#define AV_PIX_FMT_0BGR32
@ AV_PIX_FMT_YUV420P
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
#define AV_PIX_FMT_YUV422P10
@ TRANSPOSE_PT_TYPE_PORTRAIT
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
@ AV_PIX_FMT_NV16
interleaved chroma YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
@ AV_PIX_FMT_NV12
planar YUV 4:2:0, 12bpp, 1 plane for Y and 1 plane for the UV components, which are interleaved (firs...
#define AV_PIX_FMT_0RGB32
#define FILTER_INPUTS(array)
@ AV_OPT_TYPE_INT
Underlying C type is int.
@ AV_PIX_FMT_YUV444P
planar YUV 4:4:4, 24bpp, (1 Cr & Cb sample per 1x1 Y samples)
@ TRANSPOSE_PT_TYPE_LANDSCAPE
@ AV_PIX_FMT_YUV422P
planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
static av_cold int cudatranspose_init(AVFilterContext *ctx)
static av_cold void cudatranspose_uninit(AVFilterContext *ctx)
@ AV_OPT_TYPE_CONST
Special option type for declaring named constants.