diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-11-08 22:34:18 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-11-16 01:40:36 +0100 |
| commit | e64a1a9aae0200d14feed49a4c6cf537bf5708a4 (patch) | |
| tree | b1b01bb8e6f1872309eb246434120de3b769e9e5 /src/lib/types.h | |
| parent | f5608308b17c72b3ee459c805663e0103de1d2a4 (diff) | |
Obey requests to change the video range of RGB content.
Video that comes in with RGB pixels will not have its video level
ranges changed by libswscale (it only does this for YUV and greyscale).
Here we add code to do it ourselves for RGB content coming in
via image files (e.g. PNG/DPX etc). Part of #1851.
Diffstat (limited to 'src/lib/types.h')
| -rw-r--r-- | src/lib/types.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/types.h b/src/lib/types.h index 2ba0408ad..a10b26a63 100644 --- a/src/lib/types.h +++ b/src/lib/types.h @@ -139,12 +139,17 @@ enum ChangeType CHANGE_TYPE_CANCELLED }; + enum VideoRange { VIDEO_RANGE_FULL, ///< full, or "JPEG" (0-255 for 8-bit) VIDEO_RANGE_VIDEO ///< video, or "MPEG" (16-235 for 8-bit) }; +extern std::string video_range_to_string (VideoRange r); +extern VideoRange string_to_video_range (std::string s); + + /** Type of captions. * * The generally accepted definitions seem to be: |
