[FFmpeg-devel] Patch: Enable OpenCL with Win32 threads

Matt Oliver protogonoi at gmail.com
Wed Apr 16 15:22:59 CEST 2014


Heres a different version that doesnt require some win32 black magic. I
used the existing init flag as an atomic flag to correctly initialise the
mutex on first use. There was already several checks on the init flag in
various functions so this doesnt add much apart from changing those to
atomics. This new patch will work with pthread/win32/os2.

There are 2 parts to the patch. The first adds an extra atomic function for
32b compare and exchange (the existing pointer version obviously wouldnt
work in 64b). The second part is the changes to opencl itself.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-atomic-add-32b-integer-compare-and-swap-function.patch
Type: application/octet-stream
Size: 4190 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140416/320d633a/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-opencl-add-support-for-non-pthread-locking.patch
Type: application/octet-stream
Size: 4395 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140416/320d633a/attachment-0001.obj>


More information about the ffmpeg-devel mailing list