media/libraries
tonihei 3a7d31a599 Don't set codec color info for default SDR
Some media can read color info values from the bitstream
and may partially set some of the SDR default values in
Format.ColorInfo. Setting these default values for SDR can
confuse some codecs and may also prevent adaptive ABR
switches if not all ColorInfo values are set in exactly the
same way.

We can avoid any influence of HDR color info handling by
disabling setting the color info MediaFormat keys for SDR
video and also avoid codec reset at format changes if both
formats are SDR with slightly different ColorInfo settings.

To identify "SDR" ColorInfo instances, we need to do some
fuzzy matching as many of the default values are assumed to
match the SDR profile even if not set.

Issue: androidx/media#1158
PiperOrigin-RevId: 617473937
2024-03-20 04:58:13 -07:00
..
cast Return empty timeline when media info is null 2023-11-20 09:55:36 -08:00
common Don't set codec color info for default SDR 2024-03-20 04:58:13 -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 Add checkNotNull(uri) to DataSpec constructor 2024-03-08 05:59:10 -08:00
datasource_cronet Remove deprecated CronetDataSourceFactory 2024-02-29 04:59:35 -08:00
datasource_okhttp Use Guava's toByteArray & fromByteArray methods where possible 2024-03-08 03:27:29 -08:00
datasource_rtmp Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
decoder Satisfy nullness checker correctness by using local variable 2023-10-31 12:56:32 +00: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 MidiExtractor: mark only the first sample as key-frame 2023-11-21 07:39:46 -08: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 Test: Remove EnsuresNonNull from media3 editing tests. 2024-03-18 11:13:10 -07:00
exoplayer Don't set codec color info for default SDR 2024-03-20 04:58:13 -07:00
exoplayer_dash Rollback of 406c0a15be 2024-02-07 09:56:59 -08:00
exoplayer_hls Rollback of 406c0a15be 2024-02-07 09:56:59 -08:00
exoplayer_ima Rollback of 8e2869278c 2024-02-15 02:35:12 -08:00
exoplayer_rtsp Allow empty information attributes in RTSP Session Description 2024-02-20 02:47:40 -08:00
exoplayer_smoothstreaming Rollback of 406c0a15be 2024-02-07 09:56:59 -08:00
exoplayer_workmanager Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
extractor Don't emit a CuesWithTiming for zero-duration Subtitle events 2024-03-15 05:26:21 -07:00
muxer Skip AnnexB to Avcc conversion for AV1 video format 2024-03-19 09:18:44 -07:00
session Add some clarifications around CommandButton.iconUri to Javadoc 2024-03-18 03:43:36 -07:00
test_data Add GlEffect that asynchronously adjusts input presentation times 2024-03-15 06:56:25 -07:00
test_exoplayer_playback Rollback of 8e2869278c 2024-02-15 02:35:12 -08:00
test_session_common Remove unnecessary SDK_INT checks 2024-02-13 10:26:19 +00:00
test_session_current Automatically add icon drawables for icon constants 2024-03-11 05:06:21 -07:00
test_utils Composition preview: move audio and video components 2024-03-11 08:29:38 -07:00
test_utils_robolectric Fix some invalid javadoc references caught by a new JDK version 2024-03-05 05:48:34 -08:00
transformer Rename test classes having duplicate names 2024-03-18 11:16:48 -07:00
ui Small clean-ups and added @InlineMe annotation 2024-02-13 14:48:15 +00: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