meson: Add all, all_free (default) options for video-codecs option.

- Adds new 'all' value to the video-codecs option
- Adds 'all_free' value to video-codecs and sets
   it as default value for non patent-encumbered
   codecs, restoring the behavior for these codecs
   before existing as options in commit 7b22dd8bfd

Fixes: 7b22dd8bfd ("meson: add vp9 and av1 codec support options")
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26320>
This commit is contained in:
Sil Vilerino
2023-11-21 11:08:15 -05:00
committed by Marge Bot
parent e126e82c79
commit d0c3556011
4 changed files with 22 additions and 7 deletions

View File

@@ -629,15 +629,15 @@ option(
option(
'video-codecs',
type : 'array',
value : [],
value : ['all_free'],
choices: [
'vc1dec', 'h264dec', 'h264enc', 'h265dec', 'h265enc', 'av1dec', 'av1enc', 'vp9dec'
'all', 'all_free', 'vc1dec', 'h264dec', 'h264enc', 'h265dec', 'h265enc', 'av1dec', 'av1enc', 'vp9dec'
],
description : 'List of patent encumbered codecs to build support for. ' +
description : 'List of 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.'
'enabled by default with the all_free default value.'
)
option(