Hi A simple idea is that1. 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.
signature.asc
Description: OpenPGP digital signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel