lavfi/opencl: Derive global work size from plane image sizes
authorMark Thompson <sw@jkqxz.net>
Mon, 19 Mar 2018 22:52:30 +0000 (22:52 +0000)
committerMark Thompson <sw@jkqxz.net>
Thu, 22 Mar 2018 23:12:47 +0000 (23:12 +0000)
commit2a1542d105dc3161516e34eef77bcd64aa72cab4
tree2f32963bfb6d8a00b9136b8a4f169922840a905e
parentb78d55b2e63e410abe744932fda9358633743a9e
lavfi/opencl: Derive global work size from plane image sizes

Add a new function to find the global work size given the output image and
the required block alignment, then use it in the overlay, program and unsharp
filters.  Fixes the overlay and unsharp filters applying the kernel to
locations outside the frame when subsampled planes are present.
libavfilter/opencl.c
libavfilter/opencl.h
libavfilter/vf_overlay_opencl.c
libavfilter/vf_program_opencl.c
libavfilter/vf_unsharp_opencl.c