obs-studio/libobs/media-io
jp9000 8d125dc01d libobs: Add better default source color range handling
Fixes handling of the `obs_source_frame::full_range` member variable,
which is often set to false by default by many plugins even when using
RGB, which would cause RGB to be marked as "partial range".  This change
is crucial for when partial range RBG support is implemented.

Adds `obs_source_frame2` structure that replaces the `full_range` member
variable with a `range` variable, which uses the `video_range_type` enum
to allow handling default range values.  This member variable treats
VIDEO_RANGE_DEFAULT as full range if the format is RGB, and partial
range if the format is YUV.

Also adds `obs_source_output_video2` and `obs_source_preload_video2`
functions which use the `obs_source_frame2` structure instead of the
`obs_source_frame` structure.

When using the original `obs_source_frame`, `obs_source_output_video`,
and `obs_source_preload_video` functions, RGB will always be full range
by default for backward compatibility purposes.
2019-04-25 15:12:08 -07:00
..
audio-io.c libobs/media-io: Reset audio array for each input 2016-01-26 11:49:36 -08:00
audio-io.h Merge pull request #1139 from takev/pulseaudio-surround-selection 2018-01-19 16:14:04 -08:00
audio-math.h libobs/media-io: Add common audio math functions 2015-06-26 03:40:27 -07:00
audio-resampler-ffmpeg.c libobs/media-io: Fix mono upmix 2019-02-24 14:00:57 +01:00
audio-resampler.h (API Change) Remove pointers from all typedefs 2014-09-25 21:48:11 -07:00
format-conversion.c libobs/media-io: Fix decompress_420 function 2017-10-02 07:36:02 -07:00
format-conversion.h libobs: Add packed yuv to planar 4:4:4 conversion 2015-04-16 22:51:31 -07:00
frame-rate.h libobs/media-io: Add frame rate helpers 2015-11-14 15:37:47 +01:00
media-io-defs.h libobs: Move macro to internal C file 2017-10-02 07:36:02 -07:00
media-remux.c libobs/media-io: Prevent overwriting of remux input 2018-08-12 17:06:39 +02:00
media-remux.h Add media remuxer to media-io 2014-10-12 06:27:33 +02:00
video-fourcc.c libobs: Add Y800 color format support 2016-03-24 03:33:35 -07:00
video-frame.c libobs: Add Y800 color format support 2016-03-24 03:33:35 -07:00
video-frame.h libobs/media-io: Add frame copying function 2014-12-31 04:03:45 -08:00
video-io.c libobs: Fix output type specifiers 2019-03-19 18:29:09 +03:00
video-io.h libobs: Add better default source color range handling 2019-04-25 15:12:08 -07:00
video-matrices.c libobs: Fix full range min/max output 2015-04-10 07:27:26 -07:00
video-scaler-ffmpeg.c libobs: Add Y800 color format support 2016-03-24 03:33:35 -07:00
video-scaler.h (API Change) Remove pointers from all typedefs 2014-09-25 21:48:11 -07:00