Skip to content

--enable-opencl for ffmpeg - #1800

Open
barrypitman wants to merge 15 commits into
bytedeco:masterfrom
barrypitman:ffmpeg-opencl
Open

--enable-opencl for ffmpeg#1800
barrypitman wants to merge 15 commits into
bytedeco:masterfrom
barrypitman:ffmpeg-opencl

Conversation

@barrypitman

Copy link
Copy Markdown
Contributor

This PR sets the --enable-opencl flag for the ffmpeg build, for these platforms:

  • linux-arm64
  • linux-x86_64
  • macosx-arm64
  • macosx-x86_64
  • windows-x86_64

The default --disable-opencl remains for others. I found that I needed this flag when using an Intel GPU for h264/5 stream decoding (D3D11 decoder) and subsequent UMat processing with OpenCV.

Comment thread ffmpeg/cppbuild.sh Outdated
download https://github.com/KhronosGroup/OpenCL-Headers/archive/v$OPENCL_VERSION.tar.gz OpenCL-Headers-$OPENCL_VERSION.tar.gz
download https://github.com/KhronosGroup/OpenCL-ICD-Loader/archive/v$OPENCL_VERSION.tar.gz OpenCL-ICD-Loader-$OPENCL_VERSION.tar.gz
;;
esac

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a build dependency on the presets for OpenCL instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants