- 06 Oct, 2022 2 commits
-
-
PiperOrigin-RevId: 479268879 (cherry picked from commit 0beccb6e)
aquilescanta committed -
* Add `setOutputStreamOffsetUs(long)` method in `AudioSink`. * Add private methods `setOutputStreamOffsetUs(long)` method in `MediaCodecRenderer` and `DecoderAudioRenderer`. * Add protected method `onOutputStreamOffsetUs(long)` method in `MediaCodecRenderer`, in which: * `MediaCodecRenderer` itself will be no-op for this method. * `MediaCodecAudioRenderer` will propagate this value to its `audioSink`. * Add logics in `DecoderAudioRenderer` to calculate `outputStreamOffsetUs`. PiperOrigin-RevId: 479265429 (cherry picked from commit 5bff8623)
tianyifeng committed
-
- 05 Oct, 2022 4 commits
-
-
PiperOrigin-RevId: 479079184 (cherry picked from commit bf948db6)
christosts committed -
Currently `FrameProcessor.releaseOutputFrame()` method supports Release at a specific system time Drops the frame This API is not that convenient to use when the caller wants to release a frame, now, regardless of the release time. A use case is to release (present) a frame when no frame is shown for a while, and it's thus better to just release the frame, now. Currently if MCVR wants a frame to be rendered now, MCVR calls release frame with a set offset like 10us: `releaseOutputFrame(System.nanoTime() + 10_000)`. The 10us offset is to prevent the frame processor dropping the frame, due to thread hopping delays. To make the API better usable, consider adding a mode for releasing the frame now, like (bold marks the new mode) - Use C.TIME_UNSET to drop - **Use -1 to release the frame immediately, or** - Use an actual release time. PiperOrigin-RevId: 479044215 (cherry picked from commit 139a6e8d)
claincly committed
-
- 04 Oct, 2022 2 commits
-
-
Assert that tone mapping is applied when an HDR edit cannot be HDR, but is successfully tone mapped. Meanwhile, assert that fallback, which is applied after codec configuration (which throws the "Tone-mapping requested but not supported by the decoder" error) is not applied when that error is called. PiperOrigin-RevId: 478762951 (cherry picked from commit 253486d4)
huangdarwin committed -
When a media service currently produces multiple media sessions, the notification of the second session overwrites the notification of the first one, because all sessions use the same notification ID. When we use different notification IDs for different sessions, multiple media notifications can be up at the same time, which means that they can both be controlled at the same time. PiperOrigin-RevId: 478709069 (cherry picked from commit 7783c6e4)
Googler committed
-
- 03 Oct, 2022 1 commit
-
- 30 Sep, 2022 3 commits
-
-
PiperOrigin-RevId: 478019046 (cherry picked from commit 6e5a4c05)
huangdarwin committed -
"Final" was likely added to reference the FinalMatrixTextureProcessorWrapper, which is a package-private class. However, I think more clear to express that this is the input size, which then has all effects applied, to get the output size. PiperOrigin-RevId: 477975358 (cherry picked from commit de82a2be)
huangdarwin committed -
Per go/java-practices/imports#static No functional changes intended. PiperOrigin-RevId: 477974779 (cherry picked from commit d5c272fd)
huangdarwin committed
-
- 29 Sep, 2022 1 commit
-
-
Rename test files to avoid substrings that can be implied by the directory name, like "Transformation" and "Test" No functional changes. Renaming-only. PiperOrigin-RevId: 477724724 (cherry picked from commit 62b95a71)
huangdarwin committed
-
- 28 Sep, 2022 3 commits
-
-
PiperOrigin-RevId: 477524540 (cherry picked from commit 1cfe18cd)
samrobinson committed -
For tone mapping error messages. PiperOrigin-RevId: 477447799 (cherry picked from commit 1711d7f4)
huangdarwin committed -
Also, add checks for output file color. PiperOrigin-RevId: 477439139 (cherry picked from commit aec4fe73)
huangdarwin committed
-
- 27 Sep, 2022 2 commits
-
- 26 Sep, 2022 4 commits
-
-
PiperOrigin-RevId: 476909855 (cherry picked from commit 3e4aa050)
samrobinson committed -
One of the tests in MediaBrowserListenerTest caused the remote browser service to crash and then just timed out. As this asserts nothing useful besides checking that the timeout method is working, we can remove the test. Crashing the remote browser service had the side effect of letting subsequent tests in the same class fail because the previous session was never released and was still present in the static MediaSession SESSION_ID_TO_SESSION_MAP instance, which prevented the creation of new sessions with the same id. This is only an issue in test runs because a real process would also lose its static variables when it crashes. PiperOrigin-RevId: 476905337 (cherry picked from commit d2887d52)
tonihei committed -
`PlaybackStateCompat.toKeyCode(command)` was replaced by our own implementation of `toKeyCode()`. The legacy implementation used PLAY and PAUSE, while the new implementation uses PLAY_PAUSE. This made `pause` a pending intent that attempt to start the service in the foreground, but `service.startForeground()` won't be called in `MediaNotificationManager.updateNotificationInternal` when paused. PiperOrigin-RevId: 476895752 (cherry picked from commit acd9e581)
bachinger committed -
Comment-only change. PiperOrigin-RevId: 476873286 (cherry picked from commit 16dca182)
huangdarwin committed
-
- 23 Sep, 2022 4 commits
-
-
Calling maybeUpdateLegacyErrorState potentially creates a new legacy playback state which involves calling player methods. This change makes sure that the call sites of `maybeUpdateLegacyErrorState` are called on the app thread as enforced by the library. PiperOrigin-RevId: 476406282 (cherry picked from commit 74124f48)
bachinger committed -
* Before this CL, the texture was stored during the construction of the LUT processor. This failed since if one creates a list of GlEffects on the application thread, the texture will get stored in the application thread during the effect creation and not on the GL thread, which executes the FrameProcessors. * This is an issue since the executing thread then can't index from the texture stored on a different thread. PiperOrigin-RevId: 476388021 (cherry picked from commit 44b9aec0)
leonwind committed
-
- 30 Sep, 2022 1 commit
-
-
PiperOrigin-RevId: 476376463 (cherry picked from commit cac8c4f6)
Marc Baechinger committed
-
- 23 Sep, 2022 4 commits
-
-
If the sample type is dolby vision and the following conditions match a)There is a supported alternative codec mimetype b)Display does not support Dolby Vision Then getDecoderInfos will return the alternative types. Issue: google/ExoPlayer#9794 PiperOrigin-RevId: 476356223 (cherry picked from commit ed79f469)
michaelkatz committed -
To confirm that tone mapping did or did not happen. PiperOrigin-RevId: 476354606 (cherry picked from commit 87fd51a3)
huangdarwin committed
- 22 Sep, 2022 4 commits
-
- 21 Sep, 2022 2 commits
-
-
Tested: * Manually using both path and file descriptor. PiperOrigin-RevId: 475860978 (cherry picked from commit 9ec4e134)
samrobinson committed
-
- 20 Sep, 2022 1 commit
-
- 16 Sep, 2022 2 commits
-
-
Currently doSomeWork is never closed and so tracing is deceiving. See https://screenshot.googleplex.com/eZDzn5APpBNnhe5 PiperOrigin-RevId: 474755816 (cherry picked from commit 06230f19)
yschimke committed