[FFmpeg-devel] [PATCH 3/3][RFC] avfilter/vf_chromakey: Add OpenCL acceleration

Timo Rothenpieler timo at rothenpieler.org
Wed Oct 14 08:45:26 CEST 2015


> Hi
>
> 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?
>
> Thanks
> Best regards
>

Of course, i'll look into it this weekend.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20151014/8a3e2559/attachment.sig>


More information about the ffmpeg-devel mailing list