diff options
author | Dave Airlie <airlied@redhat.com> | 2022-03-07 12:37:29 +1000 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2022-04-28 22:27:27 +0000 |
commit | 7d969fe9e91e39e03041cdfac69bf33337bc2c96 (patch) | |
tree | e55ca501d3318792f21342a5946667066dca0918 /meson_options.txt | |
parent | 2c3178329b5356f4ca26497c5e118d4a427705c2 (diff) |
meson: add a video codec support option
This allows to turn on/off all hw implementations for a specific video
codec across the tree. Patent encumbered codecs can cause problems for
distributions due to the nature of at least MPEG-LA licensing.
https://jina-liu.medium.com/settle-your-questions-about-h-264-license-cost-once-and-for-all-hopefully-a058c2149256
is probably the best explaination I can find.
From a distro pov, codecs are a jigsaw puzzle, you only seem to become a problem well you fit all the pieces.
This patch will allow disabling the mesa piece of the puzzle.
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15258>
Diffstat (limited to 'meson_options.txt')
-rw-r--r-- | meson_options.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/meson_options.txt b/meson_options.txt index 9afe105241f..4332906853f 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -527,3 +527,12 @@ option( value : 'disabled', description : 'Build the intel-clc compiler (required for ray queries).' ) +option( + 'video-codecs', + type : 'array', + value : [], + choices: [ + 'vc1dec', 'h264dec', 'h264enc', 'h265dec', 'h265enc' + ], + description : 'List of patent encumbered codecs to build support for. Distros might want to consult their legal department before enabling these. This is used for all video APIs (vaapi, vdpau, vulkan). Non-patent encumbered codecs will be enabled by default.' +) |