mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:37:44 +00:00
LibVideo: Add a video_full_range_flag_to_string() function
This commit is contained in:
parent
89b98830f6
commit
405efc5936
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
Add a link
Reference in a new issue