Go to the source code of this file.
◆ CGROUPS
#define CGROUPS (int [3]){ 32, 32, 1 } |
◆ OFFSET
◆ FLAGS
◆ ScalerFunc
◆ init_filter()
◆ process_frames()
◆ scale_vulkan_filter_frame()
◆ scale_vulkan_config_output()
◆ scale_vulkan_uninit()
◆ AVFILTER_DEFINE_CLASS()
AVFILTER_DEFINE_CLASS |
( |
scale_vulkan |
| ) |
|
◆ scale_bilinear
const char scale_bilinear[] |
|
static |
Initial value:= {
C(1, vec2 npos = (vec2(
pos) + 0.5
f) / imageSize(output_img[idx]); )
C(1, npos *= crop_range; )
C(1,
return texture(input_img[idx], npos); )
}
Definition at line 55 of file vf_scale_vulkan.c.
Referenced by init_filter().
◆ rgb2yuv
Initial value:= {
C(1,
src *= yuv_matrix; )
C(1,
if (fullrange == 1) { )
C(2,
src += vec4(0.0, 0.5, 0.5, 0.0); )
C(2,
src *= vec4(219.0 / 255.0, 224.0 / 255.0, 224.0 / 255.0, 1.0); )
C(2,
src += vec4(16.0 / 255.0, 128.0 / 255.0, 128.0 / 255.0, 0.0); )
}
Definition at line 65 of file vf_scale_vulkan.c.
Referenced by bayer_to_yv12_wrapper(), bgr24ToUV_c(), bgr24ToUV_half_c(), bgr24ToY_c(), create_filtergraph(), ff_fill_rgb2yuv_table(), ff_rgb24toyv12_c(), gbr24pToUV_half_c(), init_filter(), planar_rgb16_to_uv(), planar_rgb16_to_y(), planar_rgb_to_uv(), planar_rgb_to_y(), planar_rgbf32_to_uv(), planar_rgbf32_to_y(), rgb16_32ToUV_c_template(), rgb16_32ToUV_half_c_template(), rgb24ToUV_c(), rgb24ToUV_half_c(), rgb24ToY_c(), rgb48funcs(), rgb48ToUV_c_template(), rgb48ToUV_half_c_template(), rgb64funcs(), rgb64ToUV_c_template(), rgb64ToUV_half_c_template(), rgb64ToY_c_template(), tonemap_opencl_init(), yv12_copy(), and yv12_interpolate().
◆ write_nv12
Initial value:= {
C(1, imageStore(output_img[0],
pos, vec4(
src.r, 0.0, 0.0, 0.0)); )
C(1, imageStore(output_img[1],
pos, vec4(
src.
g,
src.
b, 0.0, 0.0)); )
}
Definition at line 79 of file vf_scale_vulkan.c.
Referenced by init_filter().
◆ write_420
Initial value:= {
C(1, imageStore(output_img[0],
pos, vec4(
src.r, 0.0, 0.0, 0.0)); )
C(1, imageStore(output_img[1],
pos, vec4(
src.
g, 0.0, 0.0, 0.0)); )
C(1, imageStore(output_img[2],
pos, vec4(
src.
b, 0.0, 0.0, 0.0)); )
}
Definition at line 88 of file vf_scale_vulkan.c.
Referenced by init_filter().
◆ write_444
Initial value:= {
C(1, imageStore(output_img[0],
pos, vec4(
src.r, 0.0, 0.0, 0.0)); )
C(1, imageStore(output_img[1],
pos, vec4(
src.
g, 0.0, 0.0, 0.0)); )
C(1, imageStore(output_img[2],
pos, vec4(
src.
b, 0.0, 0.0, 0.0)); )
}
Definition at line 98 of file vf_scale_vulkan.c.
Referenced by init_filter().
◆ scale_vulkan_options
◆ scale_vulkan_inputs
◆ scale_vulkan_outputs
◆ ff_vf_scale_vulkan
Initial value:= {
.name = "scale_vulkan",
.priv_class = &scale_vulkan_class,
}
Definition at line 527 of file vf_scale_vulkan.c.
int ff_vk_filter_query_formats(AVFilterContext *avctx)
General lavfi IO functions.
static av_cold int init(AVCodecContext *avctx)
#define FF_FILTER_FLAG_HWFRAME_AWARE
The filter is aware of hardware frames, and any hardware frame context should not be automatically pr...
@ AVCOL_RANGE_JPEG
the normal 2^n-1 "JPEG" YUV ranges
static const AVFilterPad scale_vulkan_outputs[]
static const char rgb2yuv[]
static const char write_nv12[]
static const char write_420[]
s EdgeDetect Foobar g libavfilter vf_edgedetect c libavfilter vf_foobar c edit libavfilter and add an entry for foobar following the pattern of the other filters edit libavfilter allfilters and add an entry for foobar following the pattern of the other filters configure make j< whatever > ffmpeg ffmpeg i you should get a foobar png with Lena edge detected That s your new playground is ready Some little details about what s going which in turn will define variables for the build system and the C
int ff_vk_filter_config_input(AVFilterLink *inlink)
static int scale_vulkan_filter_frame(AVFilterLink *link, AVFrame *in)
static const AVFilterPad outputs[]
static void scale_vulkan_uninit(AVFilterContext *avctx)
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
@ AVCOL_RANGE_UNSPECIFIED
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
int ff_vk_filter_init(AVFilterContext *avctx)
static const char scale_bilinear[]
static const char write_444[]
static const AVFilterPad scale_vulkan_inputs[]
@ AVCOL_RANGE_MPEG
the normal 219*2^(n-8) "MPEG" YUV ranges
static int query_formats(AVFilterContext *ctx)
static int scale_vulkan_config_output(AVFilterLink *outlink)
static av_cold int uninit(AVCodecContext *avctx)