[FFmpeg-devel] [PATCH] Add coreimage filter for GPU based image filtering on OSX

Thilo Borgmann thilo.borgmann at mail.de
Sat Mar 12 15:11:35 CET 2016


addressing ticket #4143.

This adds a basic filter for GPU filtering using Apple's Core Image API.
Current restrictions are that only 1-to-1 filters and 0-to-1 generators
are supported. N-to-N filters and transition filters are further work.

Also all processing is currently done for ARGB only. Other formats are
also further work.

Parsing the filter string is done by AVDictionary, unfortunately. I
could not find an easy way to convert it to a AVTree. At least for the
small amount of key-value pairs the speed penalty is negligible.

AVDictionary has been extended to allow multiple equal keys to be able
to chain several instances of the same filter(name) in a single call of
coreimage without GPU-CPU transfer.

More testing on some more MACs would also be appreciated.

Patch 1/2: AVDitionary changes
Patch 2/2: coreimage filter


More information about the ffmpeg-devel mailing list