media/libraries
tonihei 57187aa899 Map VORBIS channel layout to Android layout
Both the extension OPUS decoder and the OMX/C2 MediaCodec
implementations for OPUS and VORBIS decode into the channel
layout defined by VORBIS. See
https://www.xiph.org/vorbis/doc/Vorbis_I_spec.html#x1-140001.2.3

While this is technically correct for a stand-alone OPUS or VORBIS
decoder, it doesn't match the channel layout expected by Android.
See https://developer.android.com/reference/android/media/AudioFormat#channelMask

The fix is to apply the channel mapping after decoding if needed.
Also add e2e tests with audio dumps for the extension renderer,
including a new 5.1 channel test file.

Issue: google/ExoPlayer#8396

PiperOrigin-RevId: 588004832
(cherry picked from commit b1541b096f)
2024-01-09 10:48:31 +00:00
..
cast Return empty timeline when media info is null 2024-01-08 15:18:39 +00:00
common Don't include null text or bitmaps in Cue.toBundle() 2024-01-08 16:16:21 +00:00
container Merge pull request #491 from v-novaltd:dsparano-exo128 2023-10-23 13:15:17 +01:00
database Do not trim audio samples by changing their timestamp 2023-06-29 22:50:04 +00:00
datasource Add formatting to scheme list in DefaultDataSource javadoc 2023-10-23 13:15:17 +01:00
datasource_cronet Do not trim audio samples by changing their timestamp 2023-06-29 22:50:04 +00:00
datasource_okhttp Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
datasource_rtmp Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
decoder Deprecate decode-only flag. 2023-10-06 15:57:25 +01:00
decoder_av1 Add Decoder.setOutputStartTimeUs and use it in extension decoders 2023-10-06 15:57:25 +01:00
decoder_ffmpeg Merge pull request #707 from equeim:ffmpeg-6.0 2024-01-08 15:31:27 +00:00
decoder_flac Add more data to e2etest dumps 2023-07-13 15:33:33 +01:00
decoder_midi MidiExtractor: mark only the first sample as key-frame 2024-01-08 15:26:03 +00:00
decoder_opus Map VORBIS channel layout to Android layout 2024-01-09 10:48:31 +00:00
decoder_vp9 Add Decoder.setOutputStartTimeUs and use it in extension decoders 2023-10-06 15:57:25 +01:00
effect Update emulator device names 2024-01-08 15:55:36 +00:00
exoplayer Map VORBIS channel layout to Android layout 2024-01-09 10:48:31 +00:00
exoplayer_dash Fix typo in DashManifestParser 2024-01-08 15:31:29 +00:00
exoplayer_hls Calculate HLS live playlist refresh interval accurately 2023-10-23 13:15:16 +01:00
exoplayer_ima Bump IMA SDK version to 3.31.0 2023-09-21 05:54:13 -07:00
exoplayer_rtsp Merge pull request #491 from v-novaltd:dsparano-exo128 2023-10-23 13:15:17 +01:00
exoplayer_smoothstreaming Add functionality to transmit CMCD data using query parameters 2023-08-31 02:11:12 -07:00
exoplayer_workmanager Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
extractor Map VORBIS channel layout to Android layout 2024-01-09 10:48:31 +00:00
muxer Make sure the mdat box is not extended by more than 1 GB at a time. 2023-09-08 04:07:13 -07:00
session Remove redundant ) in Javadoc 2024-01-08 15:31:29 +00:00
test_data Map VORBIS channel layout to Android layout 2024-01-09 10:48:31 +00:00
test_exoplayer_playback Add android.namespace to all build.gradle files 2023-05-19 17:19:15 +01:00
test_session_common Add session extras to the state of the controller 2024-01-08 15:26:08 +00:00
test_session_current Add session extras to the state of the controller 2024-01-08 15:26:08 +00:00
test_utils Map VORBIS channel layout to Android layout 2024-01-09 10:48:31 +00:00
test_utils_robolectric Enable offload scheduling by default for audio-only offload playback 2023-09-13 06:46:50 -07:00
transformer Update emulator device names 2024-01-08 15:55:36 +00:00
ui Workaround layout problems with Material Design 2024-01-08 15:18:38 +00:00
ui_leanback Prevent forwarding of zero video size to Leanback 2023-08-30 12:20:51 -07:00
lint.xml Update recommended way to suppress @UnstableApi errors in lint.xml 2024-01-08 15:18:38 +00:00