Skip to content

Commit c9f0693

Browse files
checkpoint: Adding support for a cuda powered lut3d,colorspace_cuda,tonemap_cuda filters (#4)
1 parent 0529b46 commit c9f0693

14 files changed

Lines changed: 4218 additions & 100 deletions

configure

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3310,6 +3310,11 @@ scale_npp_filter_deps="ffnvcodec libnpp"
33103310
scale2ref_npp_filter_deps="ffnvcodec libnpp"
33113311
scale_cuda_filter_deps="ffnvcodec"
33123312
scale_cuda_filter_deps_any="cuda_nvcc cuda_llvm"
3313+
showinfo_cuda_filter_deps="ffnvcodec"
3314+
lut3d_cuda_filter_deps="ffnvcodec"
3315+
lut3d_cuda_filter_deps_any="cuda_nvcc cuda_llvm"
3316+
tonemap_cuda_filter_deps="ffnvcodec"
3317+
tonemap_cuda_filter_deps_any="cuda_nvcc cuda_llvm"
33133318
thumbnail_cuda_filter_deps="ffnvcodec"
33143319
thumbnail_cuda_filter_deps_any="cuda_nvcc cuda_llvm"
33153320
transpose_npp_filter_deps="ffnvcodec libnpp"

libavfilter/Makefile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ OBJS-$(CONFIG_SCENE_SAD) += scene_sad.o
3333
OBJS-$(CONFIG_DNN) += dnn_filter_common.o
3434
include $(SRC_PATH)/libavfilter/dnn/Makefile
3535

36+
3637
# audio filters
3738
OBJS-$(CONFIG_AAP_FILTER) += af_aap.o
3839
OBJS-$(CONFIG_ABENCH_FILTER) += f_bench.o
@@ -245,7 +246,8 @@ OBJS-$(CONFIG_COLORMATRIX_FILTER) += vf_colormatrix.o
245246
OBJS-$(CONFIG_COLORSPACE_FILTER) += vf_colorspace.o colorspacedsp.o
246247
OBJS-$(CONFIG_COLORSPACE_CUDA_FILTER) += vf_colorspace_cuda.o \
247248
vf_colorspace_cuda.ptx.o \
248-
cuda/load_helper.o
249+
cuda/load_helper.o \
250+
cuda/cuda_async_queue.o
249251
OBJS-$(CONFIG_COLORTEMPERATURE_FILTER) += vf_colortemperature.o
250252
OBJS-$(CONFIG_CONVOLUTION_FILTER) += vf_convolution.o
251253
OBJS-$(CONFIG_CONVOLUTION_OPENCL_FILTER) += vf_convolution_opencl.o opencl.o \
@@ -375,6 +377,8 @@ OBJS-$(CONFIG_LUT1D_FILTER) += vf_lut3d.o
375377
OBJS-$(CONFIG_LUT_FILTER) += vf_lut.o
376378
OBJS-$(CONFIG_LUT2_FILTER) += vf_lut2.o framesync.o
377379
OBJS-$(CONFIG_LUT3D_FILTER) += vf_lut3d.o framesync.o
380+
OBJS-$(CONFIG_LUT3D_CUDA_FILTER) += vf_lut3d_cuda.o \
381+
vf_lut3d_cuda.ptx.o cuda/load_helper.o
378382
OBJS-$(CONFIG_LUTRGB_FILTER) += vf_lut.o
379383
OBJS-$(CONFIG_LUTYUV_FILTER) += vf_lut.o
380384
OBJS-$(CONFIG_MASKEDCLAMP_FILTER) += vf_maskedclamp.o framesync.o
@@ -486,6 +490,7 @@ OBJS-$(CONFIG_SHARPEN_NPP_FILTER) += vf_sharpen_npp.o
486490
OBJS-$(CONFIG_SHARPNESS_VAAPI_FILTER) += vf_misc_vaapi.o vaapi_vpp.o
487491
OBJS-$(CONFIG_SHEAR_FILTER) += vf_shear.o
488492
OBJS-$(CONFIG_SHOWINFO_FILTER) += vf_showinfo.o
493+
OBJS-$(CONFIG_SHOWINFO_CUDA_FILTER) += vf_showinfo_cuda.o
489494
OBJS-$(CONFIG_SHOWPALETTE_FILTER) += vf_showpalette.o
490495
OBJS-$(CONFIG_SHUFFLEFRAMES_FILTER) += vf_shuffleframes.o
491496
OBJS-$(CONFIG_SHUFFLEPIXELS_FILTER) += vf_shufflepixels.o
@@ -524,6 +529,9 @@ OBJS-$(CONFIG_TMEDIAN_FILTER) += vf_xmedian.o framesync.o
524529
OBJS-$(CONFIG_TMIDEQUALIZER_FILTER) += vf_tmidequalizer.o
525530
OBJS-$(CONFIG_TMIX_FILTER) += vf_mix.o framesync.o
526531
OBJS-$(CONFIG_TONEMAP_FILTER) += vf_tonemap.o
532+
OBJS-$(CONFIG_TONEMAP_CUDA_FILTER) += vf_tonemap_cuda.o \
533+
vf_tonemap_cuda.ptx.o cuda/load_helper.o \
534+
cuda/cuda_async_queue.o
527535
OBJS-$(CONFIG_TONEMAP_OPENCL_FILTER) += vf_tonemap_opencl.o opencl.o \
528536
opencl/tonemap.o opencl/colorspace_common.o
529537
OBJS-$(CONFIG_TONEMAP_VAAPI_FILTER) += vf_tonemap_vaapi.o vaapi_vpp.o

libavfilter/allfilters.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,7 @@ extern const AVFilter ff_vf_lut;
351351
extern const AVFilter ff_vf_lut1d;
352352
extern const AVFilter ff_vf_lut2;
353353
extern const AVFilter ff_vf_lut3d;
354+
extern const AVFilter ff_vf_lut3d_cuda;
354355
extern const AVFilter ff_vf_lutrgb;
355356
extern const AVFilter ff_vf_lutyuv;
356357
extern const AVFilter ff_vf_maskedclamp;
@@ -458,6 +459,7 @@ extern const AVFilter ff_vf_sharpen_npp;
458459
extern const AVFilter ff_vf_sharpness_vaapi;
459460
extern const AVFilter ff_vf_shear;
460461
extern const AVFilter ff_vf_showinfo;
462+
extern const AVFilter ff_vf_showinfo_cuda;
461463
extern const AVFilter ff_vf_showpalette;
462464
extern const AVFilter ff_vf_shuffleframes;
463465
extern const AVFilter ff_vf_shufflepixels;
@@ -494,6 +496,7 @@ extern const AVFilter ff_vf_tmedian;
494496
extern const AVFilter ff_vf_tmidequalizer;
495497
extern const AVFilter ff_vf_tmix;
496498
extern const AVFilter ff_vf_tonemap;
499+
extern const AVFilter ff_vf_tonemap_cuda;
497500
extern const AVFilter ff_vf_tonemap_opencl;
498501
extern const AVFilter ff_vf_tonemap_vaapi;
499502
extern const AVFilter ff_vf_tpad;

0 commit comments

Comments
 (0)