- 09 May, 2022 23 commits
-
-
PiperOrigin-RevId: 445219759
bachinger committed -
PiperOrigin-RevId: 445217294
ibaker committed -
This method was introduced in https://github.com/androidx/media/commit/e414f0d2ac02a0414bb3bd56743874ed014fb3fa as a replacement for Util.inferContentType(String) but it incorrectly didn't return TYPE_SS when passed "ism" or "isml". PiperOrigin-RevId: 445217167
ibaker committed -
PiperOrigin-RevId: 445196313
olly committed -
* Add a /* paramName= */ comment * Remove an unnecessary comma. * Remove extra "internal " for a b/### link PiperOrigin-RevId: 445169649
huangdarwin committed -
PiperOrigin-RevId: 445162900
ibaker committed -
The old video has a `irregular' resolution of 1080x720. Change to a 1920x1080 video. PiperOrigin-RevId: 445124065
claincly committed -
PiperOrigin-RevId: 445119411
huangdarwin committed -
This appears on the notifcation as the elapsed duration like '2:12' as we had this with the PlayerNotifcationtManager. Notifications on recent API versions show a seekbar and duration based on the media session playback state and ignore the chronometer. PiperOrigin-RevId: 445110202
bachinger committed -
Change test name prefix from `transform` to `transcode` for consistency. PiperOrigin-RevId: 445106224
claincly committed -
We add an entire class like we do for parsing other codec initialization formats; it's currently not doing any parsing though (... initialization data is really simple for AV1 though: just the entire contents of the box). For testing, we add the sample file, having been re-encoded with ffmpeg (and we also happen to have another av1 file, too). PiperOrigin-RevId: 444890282
olly committed -
The parameter was removed in a previous CL but wasn't removed from the javadoc yet. PiperOrigin-RevId: 444879675
hschlueter committed -
PiperOrigin-RevId: 444874326
bachinger committed -
PiperOrigin-RevId: 444861268
ibaker committed -
Issue: google/ExoPlayer#10049 PiperOrigin-RevId: 444833508
claincly committed -
This fixes some small niggles: 1. `inferContentType(String)` is documented to take a path, but in the tests we're passing full URIs. 2. A `String` parameter is usually a path, but also a MIME type or an extension. In the new methods, the meaning of a `String` parameter is always clear from the name of the method. 3. `inferContentType(String)` is always passed an extension in 'production' code (which has to be manually prefixed with a dot). 4. `inferContentType(Uri, @Nullable String)` always ignores the Uri if the String is non-null. IMO this logic is clearer to a reader if it's just in-lined at the call-site. These methods are used from the demo apps, so will be part of the stable API. PiperOrigin-RevId: 444826053
ibaker committed -
PiperOrigin-RevId: 444816821
Ian Baker committed -
This can allow apps to test and demonstrate support for videos with pixelWidthHeightRatio != 1. PiperOrigin-RevId: 444815182
huangdarwin committed -
This fixes an inconsistent state of the `PlayerInfo` when the index of the playing media item is changed by a playlist modification. In this inconsistent state, calling `Playerinfo.getCurrentMediaItem` can produce an `ArrayIndexOutOfBoundException` (see stack trace in GH issue). This change takes the following measurements: - always update sessionPosition and timeline of the PlayerInfo together in `MediaSessionImpl.PlayerListener` where the PlayerInfo originates from - add an assertion to avoid building a `PlayerInfo` instance in an inconsistent state - reduce the window of opportunity for concurrent access to `mediaSessionImpl.playerInfo` when dispatching player info changes in `MediaSessionImpl` Issue: androidx/media#51 PiperOrigin-RevId: 444812661
bachinger committed -
PiperOrigin-RevId: 444787307
Ian Baker committed -
PiperOrigin-RevId: 444585404
Ian Baker committed -
To ensure frame processor operations operate on square pixels, make the frame taller or wider for non-square input pixels. In addition to automated tests, this was tested by changing the inputFormat.pixelWidthHeightRatio in the TransformerVideoRenderer. PiperOrigin-RevId: 444553517
huangdarwin committed -
PiperOrigin-RevId: 444542725
bachinger committed
-
- 26 Apr, 2022 4 commits
-
-
PiperOrigin-RevId: 444530943
bachinger committed -
Remove unused saveTestBitmapToCacheDirectory throwOnFailure option. #cleanup PiperOrigin-RevId: 444516857
huangdarwin committed -
This allows the actual bitmap to be saved, even if output dimensions are different than expected. Otherwise, differing output dimensions would throw an exception, preventing the bitmap from being saved. PiperOrigin-RevId: 444512210
huangdarwin committed -
30 second clips at higher resolutions are useful for testing encoder behaviour compared to shorter clips. PiperOrigin-RevId: 444505865
samrobinson committed
-
- 25 Apr, 2022 5 commits
-
-
PiperOrigin-RevId: 444347415
samrobinson committed -
https://github.com/androidx/media/commit/8a4168271db6402964fa7e969d2adfc0be493fb3
*** Original commit *** Keep AudioTrack on flush as default *** PiperOrigin-RevId: 444327724
samrobinson committed -
PiperOrigin-RevId: 444264961
samrobinson committed -
PiperOrigin-RevId: 444253425
huangdarwin committed -
PiperOrigin-RevId: 444247251
bachinger committed
-
- 26 Apr, 2022 8 commits
-
-
PiperOrigin-RevId: 444221415
ibaker committed -
The last frame processor could use a different drawing command than a four vertex triangle strip. So we need call its drawing method again instead of assuming the shape. PiperOrigin-RevId: 444217274
hschlueter committed -
Avoid no-op FrameProcessors in VideoTranscodingSamplePipeline, to avoid creating resources for and executing GL for a no-op vertex+fragment shader. EncoderCompatibilityFrameProcessor will still always be exercised. PiperOrigin-RevId: 443675833
huangdarwin committed -
Issue: google/ExoPlayer#10165 #minor-release PiperOrigin-RevId: 443653894
claincly committed -
This test should run on all devices from API 21 (the media uses Baseline profile level 3.0 H.264) to give us coverage of the full pipeline (forcing re-encoding) and SSIM calculation on all devices. PiperOrigin-RevId: 443650002
andrewlewis committed -
Float I-frame intervals are only supported from API 25 onwards (see https://developer.android.com/reference/android/media/MediaFormat#KEY_I_FRAME_INTERVAL). Setting a null value for profile/level can cause a native crash when configuring the decoder. PiperOrigin-RevId: 443647924
andrewlewis committed -
PiperOrigin-RevId: 443620931
claincly committed -
Split rotationDegrees changes to EncoderCompatibilityFrameProcessor, a new FrameProcessor. This removes automatic rotationDegrees adjustments from Presentation, which allows Presentation to be used for changes before the end of a FrameProcessorChain pipeline. PiperOrigin-RevId: 443387226
huangdarwin committed
-