/third_party/ffmpeg/libavfilter/ |
H A D | vf_scale_vulkan.c | 36 FFVulkanContext vkctx; member 116 FFVulkanContext *vkctx = &s->vkctx; in init_filter() local 122 int in_planes = av_pix_fmt_count_planes(s->vkctx.input_format); in init_filter() 124 ff_vk_qf_init(vkctx, &s->qf, VK_QUEUE_COMPUTE_BIT, 0); in init_filter() 136 sampler = ff_vk_init_sampler(vkctx, 0, sampler_mode); in init_filter() 140 s->pl = ff_vk_create_pipeline(vkctx, &s->qf); in init_filter() 158 .mem_layout = ff_vk_shader_rep_fmt(s->vkctx.output_format), in init_filter() 161 .elems = av_pix_fmt_count_planes(s->vkctx.output_format), in init_filter() 184 RET(ff_vk_add_descriptor_set(vkctx, in init_filter() 296 FFVulkanContext *vkctx = &s->vkctx; process_frames() local 437 FFVulkanContext *vkctx = &s->vkctx; scale_vulkan_config_output() local [all...] |
H A D | vf_avgblur_vulkan.c | 27 FFVulkanContext vkctx; member 76 FFVulkanContext *vkctx = &s->vkctx; in init_filter() local 77 const int planes = av_pix_fmt_count_planes(s->vkctx.output_format); in init_filter() 90 .mem_layout = ff_vk_shader_rep_fmt(s->vkctx.output_format), in init_filter() 98 ff_vk_qf_init(vkctx, &s->qf, VK_QUEUE_COMPUTE_BIT, 0); in init_filter() 100 desc_i[0].sampler = ff_vk_init_sampler(vkctx, 1, VK_FILTER_LINEAR); in init_filter() 108 s->pl_hor = ff_vk_create_pipeline(vkctx, &s->qf); in init_filter() 119 RET(ff_vk_add_descriptor_set(vkctx, s->pl_hor, shd, desc_i, FF_ARRAY_ELEMS(desc_i), 0)); in init_filter() 143 RET(ff_vk_compile_shader(vkctx, sh in init_filter() 210 FFVulkanContext *vkctx = &s->vkctx; process_frames() local [all...] |
H A D | vf_transpose_vulkan.c | 29 FFVulkanContext vkctx; member 47 FFVulkanContext *vkctx = &s->vkctx; in init_filter() local 48 const int planes = av_pix_fmt_count_planes(s->vkctx.output_format); in init_filter() 62 .mem_layout = ff_vk_shader_rep_fmt(s->vkctx.output_format), in init_filter() 71 image_descs[0].sampler = ff_vk_init_sampler(vkctx, 1, VK_FILTER_LINEAR); in init_filter() 75 ff_vk_qf_init(vkctx, &s->qf, VK_QUEUE_COMPUTE_BIT, 0); in init_filter() 78 s->pl = ff_vk_create_pipeline(vkctx, &s->qf); in init_filter() 87 RET(ff_vk_add_descriptor_set(vkctx, s->pl, shd, image_descs, FF_ARRAY_ELEMS(image_descs), 0)); in init_filter() 110 RET(ff_vk_compile_shader(vkctx, sh in init_filter() 127 FFVulkanContext *vkctx = &s->vkctx; process_frames() local 271 FFVulkanContext *vkctx = &s->vkctx; config_props_output() local [all...] |
H A D | vf_gblur_vulkan.c | 29 FFVulkanContext vkctx; member 132 const int planes = av_pix_fmt_count_planes(s->vkctx.output_format); in init_gblur_pipeline() 151 RET(ff_vk_add_descriptor_set(&s->vkctx, pl, shd, &buf_desc, 1, 0)); in init_gblur_pipeline() 172 RET(ff_vk_compile_shader(&s->vkctx, shd, "main")); in init_gblur_pipeline() 174 RET(ff_vk_init_pipeline_layout(&s->vkctx, pl)); in init_gblur_pipeline() 175 RET(ff_vk_init_compute_pipeline(&s->vkctx, pl)); in init_gblur_pipeline() 177 RET(ff_vk_create_buf(&s->vkctx, params_buf, sizeof(float) * ksize, in init_gblur_pipeline() 179 RET(ff_vk_map_buffers(&s->vkctx, params_buf, &kernel_mapped, 1, 0)); in init_gblur_pipeline() 183 RET(ff_vk_unmap_buffers(&s->vkctx, params_buf, 1, 1)); in init_gblur_pipeline() 188 ff_vk_update_descriptor_set(&s->vkctx, p in init_gblur_pipeline() [all...] |
H A D | vf_overlay_vulkan.c | 28 FFVulkanContext vkctx; member 85 FFVulkanContext *vkctx = &s->vkctx; in init_filter() local 86 const int planes = av_pix_fmt_count_planes(s->vkctx.output_format); in init_filter() 88 ff_vk_qf_init(vkctx, &s->qf, VK_QUEUE_COMPUTE_BIT, 0); in init_filter() 90 sampler = ff_vk_init_sampler(vkctx, 1, VK_FILTER_NEAREST); in init_filter() 94 s->pl = ff_vk_create_pipeline(vkctx, &s->qf); in init_filter() 99 const int ialpha = av_pix_fmt_desc_get(s->vkctx.input_format)->flags & AV_PIX_FMT_FLAG_ALPHA; in init_filter() 123 .mem_layout = ff_vk_shader_rep_fmt(s->vkctx.output_format), in init_filter() 149 RET(ff_vk_add_descriptor_set(vkctx, in init_filter() 237 FFVulkanContext *vkctx = &s->vkctx; process_frames() local [all...] |
H A D | vf_chromaber_vulkan.c | 27 FFVulkanContext vkctx; member 73 FFVulkanContext *vkctx = &s->vkctx; in init_filter() local 74 const int planes = av_pix_fmt_count_planes(s->vkctx.output_format); in init_filter() 76 ff_vk_qf_init(vkctx, &s->qf, VK_QUEUE_COMPUTE_BIT, 0); in init_filter() 79 sampler = ff_vk_init_sampler(vkctx, 0, VK_FILTER_LINEAR); in init_filter() 83 s->pl = ff_vk_create_pipeline(vkctx, &s->qf); in init_filter() 105 .mem_layout = ff_vk_shader_rep_fmt(s->vkctx.output_format), in init_filter() 129 RET(ff_vk_add_descriptor_set(vkctx, s->pl, shd, desc_i, FF_ARRAY_ELEMS(desc_i), 0)); /* set 0 */ in init_filter() 156 RET(ff_vk_compile_shader(vkctx, sh in init_filter() 178 FFVulkanContext *vkctx = &s->vkctx; process_frames() local [all...] |
H A D | vf_flip_vulkan.c | 34 FFVulkanContext vkctx; member 50 FFVulkanContext *vkctx = &s->vkctx; in init_filter() local 51 const int planes = av_pix_fmt_count_planes(s->vkctx.output_format); in init_filter() 65 .mem_layout = ff_vk_shader_rep_fmt(s->vkctx.output_format), in init_filter() 74 image_descs[0].sampler = ff_vk_init_sampler(vkctx, 1, VK_FILTER_LINEAR); in init_filter() 78 ff_vk_qf_init(vkctx, &s->qf, VK_QUEUE_COMPUTE_BIT, 0); in init_filter() 81 s->pl = ff_vk_create_pipeline(vkctx, &s->qf); in init_filter() 90 RET(ff_vk_add_descriptor_set(vkctx, s->pl, shd, image_descs, FF_ARRAY_ELEMS(image_descs), 0)); in init_filter() 120 RET(ff_vk_compile_shader(vkctx, sh in init_filter() 145 FFVulkanContext *vkctx = &s->vkctx; process_frames() local [all...] |
H A D | vf_blend_vulkan.c | 42 FFVulkanContext vkctx; member 131 FFVulkanContext *vkctx = &s->vkctx; in init_filter() local 132 const int planes = av_pix_fmt_count_planes(s->vkctx.output_format); in init_filter() 134 ff_vk_qf_init(vkctx, &s->qf, VK_QUEUE_COMPUTE_BIT, 0); in init_filter() 136 sampler = ff_vk_init_sampler(vkctx, 1, VK_FILTER_LINEAR); in init_filter() 140 s->pl = ff_vk_create_pipeline(vkctx, &s->qf); in init_filter() 167 .mem_layout = ff_vk_shader_rep_fmt(s->vkctx.output_format), in init_filter() 181 RET(ff_vk_add_descriptor_set(vkctx, s->pl, shd, image_descs, FF_ARRAY_ELEMS(image_descs), 0)); in init_filter() 211 RET(ff_vk_compile_shader(vkctx, sh in init_filter() 229 FFVulkanContext *vkctx = &s->vkctx; process_frames() local [all...] |
H A D | vf_libplacebo.c | 58 FFVulkanContext vkctx; member 240 const AVVulkanDeviceContext *hwctx = s->vkctx.hwctx; in init_vulkan() 305 ff_vk_uninit(&s->vkctx); in libplacebo_uninit() 517 int *out_w = &s->vkctx.output_width; in libplacebo_config_output() 518 int *out_h = &s->vkctx.output_height; in libplacebo_config_output() 543 s->vkctx.output_format = av_get_pix_fmt(s->out_format_string); in libplacebo_config_output() 544 if (s->vkctx.output_format == AV_PIX_FMT_NONE) { in libplacebo_config_output() 550 s->vkctx.output_format = s->vkctx.input_format; in libplacebo_config_output()
|
/third_party/ffmpeg/libavutil/ |
H A D | hwcontext_cuda.c | 457 AVVulkanDeviceContext *vkctx = src_ctx->hwctx; in cuda_device_derive() local 458 TYPE prop_fn = (TYPE)vkctx->get_proc_addr(vkctx->inst, "vkGetPhysicalDeviceProperties2"); in cuda_device_derive() 463 prop_fn(vkctx->phys_dev, &vk_dev_props); in cuda_device_derive()
|