media/libraries
tofunmi db6144e7dd Maintain a consistent luminance range across HDR content in effects
PQ and HLG have different luminance ranges (max 10k nits and max 1k nits resp). In GL, colors work in a normalised 0 to 1 scale, so for PQ content, 1=10k nits and and for HLG content, 1=1k nits.

This cl scales and normalises PQ content appropriately so that all HDR content works in the HLG luminance range. This fixes two things

1. Conversions between HLG and PQ are "fixed" (before the output colors looked too bright or too dark depending on which way you are converting)
2. color-altering effects will be able to work consistently across HLG and PQ content

1 is tested in this cl. 2 will be tested when ultra HDR overlays are implemented, both cases have been manually tested to ensure the output looks correct on a screen.

PiperOrigin-RevId: 636851701
2024-05-24 03:05:34 -07:00
..
cast Forward presumed no-op seeks to handler methods in (Simple)BasePlayer 2024-04-15 02:38:29 -07:00
common Add new line between printing glsl source code in error 2024-05-21 08:21:56 -07:00
container Add Mp4OrientationData class 2024-03-11 06:45:15 -07:00
database Do not trim audio samples by changing their timestamp 2023-06-29 22:50:04 +00:00
datasource Remove deprecated setContentTypePredicate() methods 2024-05-23 08:32:26 -07:00
datasource_cronet Remove deprecated setContentTypePredicate() methods 2024-05-23 08:32:26 -07:00
datasource_okhttp Remove OkHttpDataSource constructors & OkHttDataSourceFactory 2024-05-23 10:03:12 -07:00
datasource_rtmp Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
decoder Don't enforce SimpleDecoder skipping for samples before start time 2024-05-01 06:42:36 -07:00
decoder_av1 Replace or suppress deprecated usages 2024-01-26 10:06:18 -08:00
decoder_ffmpeg Replace or suppress deprecated usages 2024-01-26 10:06:18 -08:00
decoder_flac Rollback of 8e2869278c 2024-02-15 02:35:12 -08:00
decoder_midi Add missing module registrations 2024-05-23 04:50:01 -07:00
decoder_opus Rollback of 8e2869278c 2024-02-15 02:35:12 -08:00
decoder_vp9 Rollback of 8e2869278c 2024-02-15 02:35:12 -08:00
effect Maintain a consistent luminance range across HDR content in effects 2024-05-24 03:05:34 -07:00
exoplayer Remove PlayerMessage.setHandler(Handler) 2024-05-24 02:13:43 -07:00
exoplayer_dash Add test and formatting changes 2024-05-22 15:08:52 +01:00
exoplayer_hls Default to parse subtitles while extracting, instead of while rendering 2024-05-16 01:42:56 -07:00
exoplayer_ima Bump IMA dependency to 3.33.0 to fix NPE with data:// URIs 2024-05-09 06:59:53 -07:00
exoplayer_rtsp Remove /* package */ comment from public classes 2024-05-15 05:23:30 -07:00
exoplayer_smoothstreaming Default to parse subtitles while extracting, instead of while rendering 2024-05-16 01:42:56 -07:00
exoplayer_workmanager Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
extractor Rename and reshuffle tests 2024-05-23 15:27:19 +01:00
muxer Add missing module registrations 2024-05-23 04:50:01 -07:00
session Update session module registration 2024-05-23 03:11:51 -07:00
test_data Maintain a consistent luminance range across HDR content in effects 2024-05-24 03:05:34 -07:00
test_exoplayer_playback Rollback of 8e2869278c 2024-02-15 02:35:12 -08:00
test_session_common Add MediaSession.sendError to send non-fatal error data to controllers 2024-05-14 09:30:18 -07:00
test_session_current Reset platform playback state immediately after sending custom error 2024-05-14 10:18:59 -07:00
test_utils Assert file size in E2E android tests that claim to complete. 2024-05-23 04:17:19 -07:00
test_utils_robolectric Add Dumper.addIfNonDefault methods 2024-04-26 09:00:44 -07:00
transformer Maintain a consistent luminance range across HDR content in effects 2024-05-24 03:05:34 -07:00
ui Remove references to LegacyPlayerView 2024-04-09 04:12:42 -07:00
ui_leanback Bump effect and leanback minSdk to 19 2024-01-10 07:22:00 -08:00
lint.xml Update recommended way to suppress @UnstableApi errors in lint.xml 2023-11-15 02:34:40 -08:00