[FFmpeg-devel] [PATCH 3/3][RFC] avfilter/vf_chromakey: Add OpenCL acceleration
timo at rothenpieler.org
Wed Oct 14 08:45:26 CEST 2015
> A simple idea is that
> 1. Check whether the device support cl_khr_fp64
> 2. Set a macro in build option. you can reference the unsharp filter,
> the code is as follow:
> snprintf(build_opts, 96, "-D LU_RADIUS_X=%d -D LU_RADIUS_Y=%d -D
> CH_RADIUS_X=%d -D CH_RADIUS_Y=%d",
> 2*unsharp->luma.steps_x+1, 2*unsharp->luma.steps_y+1,
> 2*unsharp->chroma.steps_x+1, 2*unsharp->chroma.steps_y+1);
> unsharp->opencl_ctx.program = av_opencl_compile("unsharp", build_opts);
> use the macro to decide whether to use double or float at the compile stage
> Do you think it is OK?
> Best regards
Of course, i'll look into it this weekend.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 473 bytes
Desc: OpenPGP digital signature
More information about the ffmpeg-devel