| Flag | Representative Description | Distinct Packages | Repo Instances |
|---|---|---|---|
| 10bit | Add support for building 10-bit and 12-bit AV1. | 1 | 1 |
| 8bit | Add support for decoding 8-bit AV1. | 1 | 1 |
| X | Enable ximagesink and xvimagesink plugins; build GLX platform support if USE=opengl is enabled; build x11 windowing system support if USE=egl is enabled | 15 | 15 |
| aom | Enable support for the AOM codec encoding and decoding | 2 | 2 |
| apps | Build the standalone denoise, self test, and benchmark binaries. | 1 | 1 |
| apulse | Support for PulseAudio emulation for ALSA | 1 | 1 |
| atlas | Use <pkg>sci-libs/atlas</pkg> for blas, lapack and sparse blas routines | 1 | 1 |
| audiocom | Enable integrated uploading to audio.com | 1 | 1 |
| benchmark | Build a benchmark binary, install it as re2-bench | 1 | 1 |
| blksha1 | Use the new optimized SHA1 implementation | 1 | 1 |
| broadway | Enable the GDK Broadway backend. | 1 | 1 |
| bzip2 | Enable bzip2 encoder/decoder plugin | 3 | 3 |
| cairo | Enable the Cairo back-end of hwloc's lstopo command | 1 | 1 |
| cblas | Build with CBLAS <pkg>virtual/cblas</pkg> | 1 | 1 |
| cblas-external | Link gsl with external cblas provided by (<pkg>virtual/cblas</pkg>) instead of shipped internal version | 1 | 1 |
| cdr | Enable support for CorelDRAW files via <pkg>media-libs/libcdr</pkg> | 1 | 1 |
| cgi | Install gitweb too | 1 | 1 |
| cloudproviders | Enable GtkPlacesSidebar to access cloud services | 1 | 1 |
| colord | Use <pkg>x11-misc/colord</pkg> for color management in printing | 1 | 1 |
| contrib | Install user contributed scripts from opencv_contrib (Experimental!) | 1 | 1 |
| contribcvv | Enable CVV in contrib (requires Qt5) | 1 | 1 |
| contribdnn | Enable DNN module contrib (requires tinydnn) | 1 | 1 |
| contribfreetype | Enable Drawing UTF-8 strings with <pkg>media-libs/freetype</pkg>&<pkg>media-libs/harfbuzz</pkg> | 1 | 1 |
| contribhdf | Enable HDF module (requires <pkg>sci-libs/hdf5</pkg>) | 1 | 1 |
| contribovis | Enable OGRE vision module support (<pkg>dev-games/ogre</pkg>) | 1 | 1 |
| contribsfm | Enable SFM module (requires USE="eigen gflags glog") | 1 | 1 |
| contribxfeatures2d | Enable xfeatures2d in contrib | 1 | 1 |
| corefonts | Use <pkg>media-fonts/corefonts</pkg> which is required by some commands | 1 | 1 |
| cpuid | Enable the cpuid-based architecture specific support (x86 component) | 1 | 1 |
| cuda | Enable NVIDIA Cuda computations support (Experimental!) | 6 | 6 |
| cudnn | Enable support for nVidia cuDNN library | 1 | 1 |
| curl | Support fetching and pushing (requires webdav too) over http:// and https:// protocols | 1 | 1 |
| d3d9 | Enable Direct 3D9 API through Nine state tracker. Can be used together with patched wine. | 1 | 1 |
| dav1d | Enable support for the dav1d codec decoding | 1 | 1 |
| debugger | Install the CUDA debugger | 1 | 1 |
| deprecated | Enable deprecated functions | 1 | 1 |
| designer | Install the QWebEngineView plugin used to add widgets in <pkg>dev-qt/designer</pkg> forms that display web pages. | 1 | 1 |
| dia | Enable DIA flow chart import via <pkg>app-office/dia</pkg> | 1 | 1 |
| dicom | Enable DICOM medical image file support via <pkg>sci-libs/dcmtk</pkg> | 1 | 1 |
| dnnsamples | Enable dnn caffeemodel samples | 1 | 1 |
| doctool | Install g-ir-doc-tool for generating documentation from introspected data | 1 | 1 |
| double-precision | Compile in double precision mode. | 1 | 1 |
| drm | Enable DRM backend support | 1 | 1 |
| eigen | Enable usage of <pkg>dev-cpp/eigen</pkg> for computations | 1 | 1 |
| enchant | Use the <pkg>app-text/enchant</pkg> spell-checking backend instead of <pkg>app-text/hunspell</pkg> | 1 | 1 |
| examples | Install source code examples | 11 | 11 |
| extended | Enable SASS/SCSS and WebP encoding support | 1 | 1 |
| extras | Build extra apps (avifenc, avifdec) and test files | 1 | 1 |
| fcitx4 | Enable support for <pkg>app-i18n/fcitx</pkg> 4 | 1 | 1 |
| features2d | Enable features2d module | 1 | 1 |
| fits | Enable support for NASA's <pkg>sci-libs/cfitsio</pkg> library | 1 | 1 |
| fluidsynth | Enables Fluidsynth MIDI software synthesis plugin. | 1 | 1 |
| fonts | Enable fonts support for appstream-builder. | 2 | 2 |
| fpx | Enable <pkg>media-libs/libfpx</pkg> support | 1 | 1 |
| gbm | Enable Graphics Buffer Manager based EGL windowing system support (requires egl and at least one of gles or opengl) | 1 | 1 |
| gdal | Enable support for <pkg>sci-libs/gdal</pkg> library | 1 | 1 |
| gdk-pixbuf | Support image types other than PNG | 3 | 3 |
| gflags | Use Google's C++ argument parsing library (<pkg>dev-cpp/gflags</pkg>) | 1 | 1 |
| gles1 | include OpenGL ES 1.0 support | 2 | 2 |
| gles2 | Enable GLES2 support | 4 | 4 |
| glog | Use Google's C++ logging library (<pkg>dev-cpp/glog</pkg>) | 1 | 1 |
| gnutls | Use gnutls library for HTTPS support (openssl is the default library for HTTPS support). | 1 | 1 |
| go | Enable building <pkg>dev-lang/go</pkg> code/examples | 1 | 1 |
| gpg | Pull in gnupg for signing -- without gnupg, attempts at signing will fail at runtime! | 1 | 1 |
| gtk3 | Enable <pkg>x11-libs/gtk+</pkg>:3 support | 1 | 1 |
| gui | Build iv | 3 | 3 |
| gzip | Support the gzip format | 1 | 1 |
| haptic | Enable the haptic (force feedback) subsystem | 1 | 1 |
| hdri | Enable High Dynamic Range Images formats | 1 | 1 |
| highlight | GitWeb support for <pkg>app-text/highlight</pkg> | 1 | 1 |
| hip | Build OIDN with AMD HIP support. | 2 | 2 |
| ibus | Enable support for <pkg>app-i18n/ibus</pkg> | 1 | 1 |
| id3tag | Enable ID3 tagging via <pkg>media-libs/libid3tag</pkg> | 1 | 1 |
| inkjar | Enable support for OpenOffice.org SVG jar files | 1 | 1 |
| ivorbis | Enable integer based vorbis decoder | 1 | 1 |
| jasper | Use <pkg>media-libs/jasper</pkg> for jpeg2k support | 1 | 1 |
| joystick | Control joystick support (disable at your own risk) | 1 | 1 |
| jumbo-build | Combine source files to speed up build process. | 1 | 1 |
| kms | Build the KMSDRM video driver | 1 | 1 |
| l0 | Enable oneAPI Level Zero device discovery | 1 | 1 |
| large-stack | Enables code to take advantage of large stack support | 2 | 2 |
| libdispatch | Use <pkg>dev-libs/libdispatch</pkg> to speed up concurrent code execution | 1 | 1 |
| libgig | Enables GIG player plugin. | 1 | 1 |
| libretro | Build libretro port | 1 | 1 |
| libvirt | Build plugin for kvm | 1 | 1 |
| libyuv | Enable fast YUV conversion via libyuv | 1 | 1 |
| llvm | Build with LLVM backend and extensions enabled. | 2 | 2 |
| lm-sensors | Enable Gallium HUD lm-sensors support. | 1 | 1 |
| lqr | Enable experimental liquid rescale support using <pkg>media-libs/liblqr</pkg> | 1 | 1 |
| lv2 | Add support for Ladspa V2 | 1 | 1 |
| mediawiki | Support pulling and pushing from MediaWiki | 1 | 1 |
| mkl | Use <pkg>sci-libs/mkl</pkg> for blas, lapack and sparse blas routines | 2 | 2 |
| mpg123 | Use <pkg>media-sound/mpg123-base</pkg> instead of <pkg>media-libs/libmad</pkg> for MPEG decoding | 1 | 1 |
| munge | Enable authentication via munge | 1 | 1 |
| netplay | Enable playing ROMs over the network (not recommended) | 1 | 1 |
| non-free | Enable non-free components | 1 | 1 |
| notmuch | Enable support for <pkg>net-mail/notmuch</pkg> | 1 | 1 |
| nsight | Install profiling and optimizing tools (nsight-compute, nsight-systems) | 1 | 1 |
| nvml | Enable the NVML device discovery | 1 | 1 |
| opencl | Enable the Rusticl Gallium OpenCL state tracker. | 3 | 3 |
| opencv | Enable OpenCV support via <pkg>media-libs/opencv</pkg> | 1 | 1 |
| opencvapps | Enable compilation with opencvapps | 1 | 1 |
| opengl | Enable OpenGL library and plugin via desktop OpenGL API | 5 | 5 |
| openimageio | Enable OpenImageIO Support | 1 | 1 |
| openntpd | Allow ntp to be installed alongside openntpd | 1 | 1 |
| openvdb | Enable OpenVDB support via <pkg>media-gfx/openvdb</pkg> | 2 | 2 |
| orc | Disable some PaX memory protections to allow plugins that use <pkg>dev-lang/orc</pkg> for runtime optimization to be used on hardened PaX systems | 3 | 3 |
| osmesa | Build the Mesa library for off-screen rendering. | 1 | 1 |
| pango | Enable Pango support using <pkg>x11-libs/pango</pkg> | 2 | 2 |
| parse-clocks | Add support for PARSE clocks | 1 | 1 |
| pci | Enable PCI device discovery using libpci | 1 | 1 |
| pdfium | Build the QtPdf module based on chromium's PDFium library | 1 | 1 |
| perforce | Add support for Perforce version control system (requires manual installation of Perforce client) | 1 | 1 |
| pipewire | Enable support for the <pkg>media-video/pipewire</pkg> audio backend | 1 | 1 |
| plugins | Enables examples plugins. | 1 | 1 |
| pmi | Build PMI1 and PMI2 interface | 1 | 1 |
| portmixer | Enable the internal portmixer feature | 1 | 1 |
| profiler | Install the NVIDIA CUDA profiler (nvprof) and the related libraries | 1 | 1 |
| proprietary-codecs | Enable codecs for patent-encumbered audio and video formats. | 1 | 1 |
| ptex | Enable Ptex texture mapping system file support via <pkg>media-libs/ptex</pkg> | 1 | 1 |
| pulseaudio | Enable support for audio capture via PulseAudio | 7 | 7 |
| python | Enable support for Python API bindings | 6 | 6 |
| q32 | Set quantum depth value to 32 | 1 | 1 |
| q8 | Set quantum depth value to 8 | 1 | 1 |
| qml | Build QML/QtQuick bindings and imports | 1 | 1 |
| quirc | Enable qrcode decoding via <pkg>media-libs/quirc</pkg> | 1 | 1 |
| rav1e | Enable support for the rav1e codec encoding | 2 | 2 |
| rdma | Enable infiniband support via <pkg>sys-cluster/rdma-core</pkg> | 1 | 1 |
| rocm | Enable AMD RSMI device discovery | 1 | 1 |
| rrsync | Install rrsync script to setup restricted rsync users via ssh logins | 1 | 1 |
| safe-directory | Respect the safe.directory setting | 1 | 1 |
| samba | Provide support for Samba's signing daemon (needed for Active Directory domain controllers) | 1 | 1 |
| sanitizer | Install compute-sanitizer tool | 1 | 1 |
| sbsms | Enable slower, more accurate pitch and tempo changing via <pkg>media-libs/libsbsms</pkg> | 1 | 1 |
| sndio | Enable support for the <pkg>media-sound/sndio</pkg> backend | 1 | 1 |
| sound | Control audio support (disable at your own risk) | 1 | 1 |
| soundio | Enables libsoundio support. | 1 | 1 |
| sourceview | Enable syntax highlighting support via <pkg>x11-libs/gtksourceview</pkg> | 1 | 1 |
| ssl | Enable HTTPS support. | 3 | 3 |
| stk | Enables STK Mallet plugin. | 1 | 1 |
| stunnel | Provide helper scripts for using rsync via >=<pkg>net-misc/stunnel</pkg>-4 | 1 | 1 |
| subversion | Include git-svn for <pkg>dev-vcs/subversion</pkg> support | 1 | 1 |
| svg2 | Enable support for new SVG2 features | 1 | 1 |
| svt-av1 | Enable support for the SVT-AV1 encoder | 1 | 1 |
| sysprof | Enable profiling data capture support using <pkg>dev-util/sysprof-capture</pkg> | 2 | 2 |
| system-icu | Use the system-wide <pkg>dev-libs/icu</pkg> instead of bundled. | 1 | 1 |
| system-re2 | Use the system-wide <pkg>dev-libs/re2</pkg> instead of bundled. | 1 | 1 |
| system-zlib | Use system zlib instead of bundled one. This is incompatible with older rsync releases! | 1 | 1 |
| tbb | Enable multithreading with the Intel Threads Building Block (<pkg>dev-cpp/tbb</pkg>) | 2 | 2 |
| tesseract | Use Google's OCR Engine | 1 | 1 |
| test | Build the test programs (requires <pkg>sys-libs/zlib</pkg>) | 36 | 36 |
| test-full | Run additional, quite slow tests | 1 | 1 |
| testprograms | Build and install programs for testing OpenCV (performance) | 1 | 1 |
| tk | Include the 'gitk' and 'git gui' tools | 1 | 1 |
| tools | Build svg viewer tool | 3 | 3 |
| twolame | Enable twolame support (MPEG Audio Layer 2 encoder) via <pkg>media-sound/twolame</pkg> | 1 | 1 |
| unwind | Enable <pkg>sys-libs/libunwind</pkg> usage for better backtrace support in leaks tracer module | 2 | 2 |
| utils | Build the libdeflate-gzip program | 2 | 2 |
| vamp | Enable vamp plugins support (Audio analysing plugins) | 1 | 1 |
| vdpau | Enable the VDPAU acceleration interface for the Gallium3D Video Layer. | 1 | 1 |
| video | Allow access to GPU during tests run | 2 | 2 |
| video_cards_intel | Enable Video Acceleration API for hardware decoding for Intel cards | 2 | 2 |
| vis-profiler | Install the NVIDIA CUDA visual profiler (nvvp) | 1 | 1 |
| visio | Enable support for Microsoft Visio diagrams via <pkg>media-libs/libvisio</pkg> | 1 | 1 |
| vst | Enables the VeSTige plugin to run VST plugins through Wine. | 1 | 1 |
| vtk | Build new 3D visualization module viz based on <pkg>sci-libs/vtk</pkg> | 1 | 1 |
| vulkan-overlay | Build vulkan-overlay-layer which displays Frames Per Second and other statistics | 1 | 1 |
| wayland | Enable Wayland EGL windowing system support (requires egl and at least one of gles2 or opengl) | 10 | 10 |
| webdav | Adds support for push'ing to HTTP/HTTPS repositories via DAV | 1 | 1 |
| webdriver | Build tool for automated testing (ChromeDriver equivalent) | 1 | 1 |
| webrtc | Enable WebRTC audio/video network bin plugin | 1 | 1 |
| webui | Install qBittorrent Web UI (qbittorrent-nox) and systemd/OpenRC service | 1 | 1 |
| widgets | Enable QtWidgets support | 1 | 1 |
| wpg | Enable support for WordPerfect graphics via <pkg>app-text/libwpg</pkg> | 1 | 1 |
| x265 | Use <pkg> media-libs/x265</pkg> for HEIF encoding | 1 | 1 |
| xa | Enable the XA (X Acceleration) API for Gallium3D. | 1 | 1 |
| xml | use libxml2 for XML support, instead of a custom minimalistic support | 2 | 2 |
| xxhash | Enable <pkg>dev-libs/xxhash</pkg> support for hashing muxer | 2 | 2 |
| zink | Enable the Zink OpenGL-over-Vulkan Gallium driver | 1 | 1 |
| zlib | Support the zlib format | 3 | 3 |