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
◆ 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
Initial value:= {
}
#define AV_PIX_FMT_0RGB32
#define AV_PIX_FMT_YUV420P10
#define AV_PIX_FMT_YUV422P10
#define AV_PIX_FMT_YUV444P12MSB
@ 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...
@ AV_PIX_FMT_YUV420P
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
@ AV_PIX_FMT_YUV422P
planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
@ AV_PIX_FMT_NV16
interleaved chroma YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
@ AV_PIX_FMT_YUV444P
planar YUV 4:4:4, 24bpp, (1 Cr & Cb sample per 1x1 Y samples)
#define AV_PIX_FMT_YUV444P16
#define AV_PIX_FMT_YUV444P10MSB
#define AV_PIX_FMT_0BGR32
#define AV_PIX_FMT_YUV444P10
Definition at line 43 of file vf_transpose_cuda.c.
◆ cudatranspose_options
Initial value:= {
}
@ AV_OPT_TYPE_CONST
Special option type for declaring named constants.
@ AV_OPT_TYPE_INT
Underlying C type is int.
@ TRANSPOSE_PT_TYPE_PORTRAIT
@ TRANSPOSE_PT_TYPE_LANDSCAPE
Definition at line 520 of file vf_transpose_cuda.c.
◆ cudatranspose_inputs
Initial value:= {
{
.name = "default",
},
}
static AVFrame * cudatranspose_get_video_buffer(AVFilterLink *inlink, int w, int h)
static int cudatranspose_filter_frame(AVFilterLink *link, AVFrame *in)
Definition at line 540 of file vf_transpose_cuda.c.
◆ cudatranspose_outputs
Initial value:= {
{
.name = "default",
},
}
static int cudatranspose_config_props(AVFilterLink *outlink)
Definition at line 549 of file vf_transpose_cuda.c.
◆ ff_vf_transpose_cuda
Initial value:= {
.p.name = "transpose_cuda",
.p.priv_class = &cudatranspose_class,
}
#define FILTER_INPUTS(array)
#define FILTER_OUTPUTS(array)
#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 NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
@ AV_PIX_FMT_CUDA
HW acceleration through CUDA.
static av_cold void cudatranspose_uninit(AVFilterContext *ctx)
static av_cold int cudatranspose_init(AVFilterContext *ctx)
static const AVFilterPad cudatranspose_inputs[]
static const AVFilterPad cudatranspose_outputs[]
Definition at line 557 of file vf_transpose_cuda.c.