mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-23 21:15:14 +00:00
LibVideo: Add a video_full_range_flag_to_string() function
This commit is contained in:
parent
89b98830f6
commit
405efc5936
Notes:
sideshowbarker
2024-07-17 02:08:15 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/405efc5936 Pull-request: https://github.com/SerenityOS/serenity/pull/17379 Reviewed-by: https://github.com/Zaggy1024 ✅ Reviewed-by: https://github.com/linusg
1 changed files with 13 additions and 0 deletions
|
@ -240,4 +240,17 @@ constexpr StringView matrix_coefficients_to_string(MatrixCoefficients matrix_coe
|
|||
return "Reserved"sv;
|
||||
};
|
||||
|
||||
constexpr StringView video_full_range_flag_to_string(VideoFullRangeFlag video_full_range_flag)
|
||||
{
|
||||
switch (video_full_range_flag) {
|
||||
case VideoFullRangeFlag::Studio:
|
||||
return "Studio"sv;
|
||||
case VideoFullRangeFlag::Full:
|
||||
return "Full"sv;
|
||||
case VideoFullRangeFlag::Unspecified: // Not part of the spec, serenity-specific addition for convenience.
|
||||
return "Unspecified"sv;
|
||||
}
|
||||
return "Unknown"sv;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue