Re: [FFmpeg-devel] [PATCH] configure: autodetect OpenCL headers and ICD loader

2015-06-08 Thread Gupta, Maneesh
autodetect OpenCL headers > and ICD loader > > On Mon, Jun 8, 2015 at 5:53 AM, Gupta, Maneesh > wrote: > >> -Original Message- > >> From: ffmpeg-devel-boun...@ffmpeg.org [mailto:ffmpeg-devel- > >> boun...@ffmpeg.org] On Behalf Of James Almer &

Re: [FFmpeg-devel] [PATCH] configure: autodetect OpenCL headers and ICD loader

2015-06-07 Thread Gupta, Maneesh
autodetect OpenCL headers > and ICD loader > > On 28/05/15 12:28 AM, Gupta, Maneesh wrote: > > Attached is a patch that enables configure to autodetect the presence of > OpenCL headers and ICD loader. If the necessary headers are found, the > OpenCL infrastructure compilation is e

[FFmpeg-devel] [PATCH] configure: autodetect OpenCL headers and ICD loader

2015-05-27 Thread Gupta, Maneesh
Attached is a patch that enables configure to autodetect the presence of OpenCL headers and ICD loader. If the necessary headers are found, the OpenCL infrastructure compilation is enabled as well. Note that this does not modify the runtime behavior in any way. Execution of the OpenCL code path

Re: [FFmpeg-devel] [PATCH 2/2] OpenCL: Avoid potential buffer overflow in cmdutils_opencl.c by using strncpy instead of strcpy

2015-04-28 Thread Gupta, Maneesh
2/2] OpenCL: Avoid potential buffer > overflow in cmdutils_opencl.c by using strncpy instead of strcpy > > On Mon, Apr 27, 2015 at 07:51:36AM +, Gupta, Maneesh wrote: > > Hi, > > > > There was a potential buffer overflow during a strcpy operation in > cmduti

Re: [FFmpeg-devel] [PATCH 1/2] OpenCL: Fix ABI incompatibility issues

2015-04-28 Thread Gupta, Maneesh
2] OpenCL: Fix ABI incompatibility > issues > > On Mon, Apr 27, 2015 at 07:51:33AM +, Gupta, Maneesh wrote: > > Hi, > > > > This patch attempts to fix the ABI incompatibility issues in the OpenCL > code. Please review it and let me know if there is anything that I mi

[FFmpeg-devel] [PATCH 1/2] OpenCL: Fix ABI incompatibility issues

2015-04-27 Thread Gupta, Maneesh
Hi, This patch attempts to fix the ABI incompatibility issues in the OpenCL code. Please review it and let me know if there is anything that I missed addressing in this patch. Regards, Maneesh 0001-OpenCL-Fix-ABI-incompatibility-issues.patch Description: 0001-OpenCL-Fix-ABI-incompatibility-is

[FFmpeg-devel] [PATCH 2/2] OpenCL: Avoid potential buffer overflow in cmdutils_opencl.c by using strncpy instead of strcpy

2015-04-27 Thread Gupta, Maneesh
Hi, There was a potential buffer overflow during a strcpy operation in cmdutils_opencl.c. This patch attempts to fix the same. Regards, Maneesh 0002-OpenCL-Replace-strcpy-with-strncpy-to-avoid-buffer-o.patch Description: 0002-OpenCL-Replace-strcpy-with-strncpy-to-avoid-buffer-o.patch _

Re: [FFmpeg-devel] [PATCH] configure: autodetect opencl

2015-03-02 Thread Gupta, Maneesh
figure: autodetect opencl > > On Mon, Mar 02, 2015 at 10:59:10AM +, Carl Eugen Hoyos wrote: > > Gupta, Maneesh amd.com> writes: > > > > > > > Similar to the way SDL is being autodetected, the attached patch > > > > > proposes to autodetect OpenCL.

Re: [FFmpeg-devel] [PATCH] configure: autodetect opencl

2015-03-02 Thread Gupta, Maneesh
> -Original Message- > From: ffmpeg-devel-boun...@ffmpeg.org [mailto:ffmpeg-devel- > boun...@ffmpeg.org] On Behalf Of Carl Eugen Hoyos > Sent: Monday, March 02, 2015 4:29 PM > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH] configure: autodetect opencl &

Re: [FFmpeg-devel] [PATCH] configure: autodetect opencl

2015-03-02 Thread Gupta, Maneesh
Mon, 2 Mar 2015 07:29:11 + > "Gupta, Maneesh" wrote: > > > Hi, > > > > Similar to the way SDL is being autodetected, the attached patch proposes > to autodetect OpenCL. > > SDL shouldn't be autodetected at all, since it's not a system lib

Re: [FFmpeg-devel] [PATCH] configure: autodetect opencl

2015-03-02 Thread Gupta, Maneesh
> -Original Message- > From: ffmpeg-devel-boun...@ffmpeg.org [mailto:ffmpeg-devel- > boun...@ffmpeg.org] On Behalf Of Carl Eugen Hoyos > Sent: Monday, March 02, 2015 2:19 PM > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH] configure: autodetect opencl &

[FFmpeg-devel] [PATCH] configure: autodetect opencl

2015-03-01 Thread Gupta, Maneesh
Hi, Similar to the way SDL is being autodetected, the attached patch proposes to autodetect OpenCL. Rationale for the change: * OpenCL linking typically happens against the OpenCL ICD's import library. Hence there is no hard-linking against the OpenCL ICD's DLL/shared library. So ffmpeg should

Re: [FFmpeg-devel] [PATCH 1/3] Add clew.c & clew.h to libavutil

2015-02-10 Thread Gupta, Maneesh
1/3] Add clew.c & clew.h to libavutil > > FWIW I didn't have to pass ANY --extra-cflags and --extra-ldflags to build > FFmpeg with OpenCL on Fedora 21. I only had to install opencl-headers and > ocl-icd-devel packages. > [Gupta, Maneesh] Unfortunately I am in the Windows pa

Re: [FFmpeg-devel] [PATCH 2/3] Use clew instead of cl.h for OpenCL

2015-02-09 Thread Gupta, Maneesh
/3] Use clew instead of cl.h for OpenCL > > Hello, Maneesh. > > On Friday, 06 February 2015 at 11:09, Gupta, Maneesh wrote: > > Attached is the follow on patch that switches to using clew instead of > > cl.h > > What's the rationale to switch? cl.h is part of Kh

Re: [FFmpeg-devel] [PATCH 1/3] Add clew.c & clew.h to libavutil

2015-02-09 Thread Gupta, Maneesh
til > > On Fri, 6 Feb 2015 11:06:28 + > "Gupta, Maneesh" wrote: > > > > > > > > -Original Message- > > > From: ffmpeg-devel-boun...@ffmpeg.org [mailto:ffmpeg-devel- > > > boun...@ffmpeg.org] On Behalf Of wm4 > > >

Re: [FFmpeg-devel] [PATCH 1/3] Add clew.c & clew.h to libavutil

2015-02-06 Thread Gupta, Maneesh
til > > On Fri, 6 Feb 2015 11:14:21 +0100 > Hendrik Leppkes wrote: > > > On Fri, Feb 6, 2015 at 11:09 AM, Gupta, Maneesh > wrote: > > > Hi All, > > > > > > There are several issues with the way ffmpeg compilation works when > OpenCL is enabled us

[FFmpeg-devel] [PATCH 3/3] Update configure since OpenCL compilation does not need cl.h

2015-02-06 Thread Gupta, Maneesh
Attached is the patch that updates the configure script since we no longer depend upon cl.h. One added advantage of using clew is that we can turn on OpenCL compilation by default. This patch additionally enables OpenCL compilation on Linux, Windows and Darwin target OS. Regards, Maneesh Gupta

[FFmpeg-devel] [PATCH 2/3] Use clew instead of cl.h for OpenCL

2015-02-06 Thread Gupta, Maneesh
Attached is the follow on patch that switches to using clew instead of cl.h Regards, Maneesh Gupta 0002-Use-clew-instead-of-cl.h-for-OpenCL.patch Description: 0002-Use-clew-instead-of-cl.h-for-OpenCL.patch ___ ffmpeg-devel mailing list ffmpeg-devel@ffm

Re: [FFmpeg-devel] [PATCH] updated documentation for -opencl_bench option

2015-01-27 Thread Gupta, Maneesh
documentation for - > opencl_bench option > > On date Tuesday 2015-01-27 09:56:41 +, Gupta, Maneesh encoded: > > Attached is a patch for updated documentation for the -opencl_bench > option. > > > > Regards, > > Maneesh > > > From 5c963436f67cc

[FFmpeg-devel] [PATCH] updated documentation for -opencl_bench option

2015-01-27 Thread Gupta, Maneesh
Attached is a patch for updated documentation for the -opencl_bench option. Regards, Maneesh 0001-documentation-for-opencl_bench.patch Description: 0001-documentation-for-opencl_bench.patch ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://f

[FFmpeg-devel] OpenCL device selection documentation

2015-01-19 Thread Gupta, Maneesh
Hi, I was searching the FFMPEG documentation on enabling OpenCL & selecting/specifying an OpenCL device. Here is what I could find: 1) Enabling OpenCL while building OpenCL: https://trac.ffmpeg.org/wiki/HWAccelIntro 2) Specifying an OpenCL device to be used: /share/doc/ffmpeg/ffmpeg-utils.html