Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v2 r2.19.0 #11241

Merged
merged 3,735 commits into from
Jul 5, 2023
Merged

Release v2 r2.19.0 #11241

merged 3,735 commits into from
Jul 5, 2023

Conversation

tof-tof
Copy link
Member

@tof-tof tof-tof commented Jul 5, 2023

No description provided.

dway123 and others added 30 commits April 24, 2023 11:39
`prepare()` now logs a warning if it's called before `setPlayer()`
because it's not possible to tell if it's being called on the wrong
thread (since androidx/media@3480a27).

This change finds all the places one is called immediately after the
other and flips the order to be more correct.

Issue: androidx/media#350

#minor-release

PiperOrigin-RevId: 526582294
PiperOrigin-RevId: 525693833
Creates a way for apps to provide their EGLContext to DefaultVideoFrameProcessor, so that we can attach their context to the one we create. See [the EGL docs for more information about how contexts are shared in GL](https://registry.khronos.org/EGL/sdk/docs/man/html/eglCreateContext.xhtml)

PiperOrigin-RevId: 525708652
PiperOrigin-RevId: 525734520
PiperOrigin-RevId: 525756451
PiperOrigin-RevId: 525761936
Whenever a frame is queued to the shader, it's guaranteed that there will be a
subsequent `onInputFrameProcessed` callback, so we can pass on the
end-of-stream signal there.

PiperOrigin-RevId: 525850141
If the limited number of input buffers causes reading of all samples except the last one conveying end of stream, then the last frame will not be rendered.

PiperOrigin-RevId: 525974445
This simplifies the addition of new fields in the future.

Also do some misc clean up for the volume limit values:
 - Add some documentation to mention assumed defaults
 - Add the IntRange annotations to match the ones we have in Player
   already
 - Mention the limits in the relevant Player methods
 - Avoid bundling default values
 - Improve range checks for masking in MediaController

PiperOrigin-RevId: 526029619
*** Original commit ***

Bump Guava version to 31.1

***

PiperOrigin-RevId: 526046600
And forward the id to the VolumeProviderCompat and read it from the platform
MediaController for compatibility.

PiperOrigin-RevId: 526046892
The constructor is removed in 6dcb018.

PiperOrigin-RevId: 526068585
#minor-release

PiperOrigin-RevId: 526082823
`prepare()` now logs a warning if it's called before `setPlayer()`
because it's not possible to tell if it's being called on the wrong
thread (since 9d028b3).

This change finds all the places one is called immediately after the
other and flips the order to be more correct.

Issue: androidx/media#350

#minor-release

PiperOrigin-RevId: 526582294
This more closely matches the equations in equations 7-61 and 7-62 in
See H.265/HEVC (2014) section 7.4.8.
This implicitly fixes a bug by removing the buggy implementation in H265Reader in favour of a working one. This change also adds tests to confirm the parsing bug is fixed.
To consistent with the other callsites of NalUnitUtil for parsing H265 SPS
Also clean-up a comment about skipping the NAL start code
PiperOrigin-RevId: 526595567
*** Original commit ***

Rollback of f92a9a6

*** Original commit ***

Bump Guava version to 31.1

***

***

PiperOrigin-RevId: 526601244
kim-vde and others added 25 commits June 12, 2023 08:16
PiperOrigin-RevId: 535554628
(cherry picked from commit 8ba6b12)
With this change we will now support loading bitmaps from all the formats documented [here](https://developer.android.com/guide/topics/media/media-formats#image-formats) except for gifs (because they are animated). Java doc is added to express this.

PiperOrigin-RevId: 535610152
(cherry picked from commit 7740ccc)
… of `LocalConfiguration`.

Deprecated field `MediaItem.playbackProperties` remains for backwards compatibility, but its type is changed from `MediaItem.PlaybackProperties` to `MediaItem.LocalConfiguration`. The private `MediaItem` constructor will now also take in a `LocalConfiguration` argument instead.

PiperOrigin-RevId: 535648420
(cherry picked from commit b89cc65)
PiperOrigin-RevId: 536351494
(cherry picked from commit ba8b9d1)
This future.get() duplicates the wait done in
singleThreadExecutorService.awaitTermination(). If awaitTermination times out, this future.get() would also result in unnecessary blocking.

PiperOrigin-RevId: 536442153
(cherry picked from commit d7f4fea)
Otherwise, texture output errors out if video decoding decodes faster than audio,
hitting the end of the file, while audio is still in the middle of the file.

PiperOrigin-RevId: 536679568
(cherry picked from commit 2ff8b44)
In some cases the codec selected for decoding has a different MIME type than
the media. In thoses cases Transformer continued to use the media's MIME type
and that caused codec configuration failures.

Removed `EncoderUtil.findCodecForFormat()` as we stopped using the method it
uses for finding a codec. Plus, the method is only used in the test.

See also `MediaCodecUtil.getALternativeCodecMimeType()`.

PiperOrigin-RevId: 536683663
(cherry picked from commit fedd99b)
#minor-release

PiperOrigin-RevId: 536724725
(cherry picked from commit 792aa72)
PiperOrigin-RevId: 536727079
(cherry picked from commit a8baf21)
PiperOrigin-RevId: 536770380
(cherry picked from commit 11c52d2)
PiperOrigin-RevId: 537014587
(cherry picked from commit 8166b35)
Previously, we would apply a general effect to signal wanting to transcode.

PiperOrigin-RevId: 537034455
(cherry picked from commit fb032f0)
ExoPlayer extractors (backing `MetadataRetriever`) now parse the color format
from the bitstream so using `MetadataRetriever` should be an equivalent but
more lightweight way to verify the color info.

Also remove try/catch blocks in test code calling into these methods, and add
skipping based on decoder capabilities in the cases where it was missing.

PiperOrigin-RevId: 537789483
(cherry picked from commit 88db011)
PiperOrigin-RevId: 537814319
(cherry picked from commit 6893939)
fedd99b introduced using `DefaultDecoderFactory.getDecoderInfo(format) != null` caused certain tests not to be skipped when they were expected to be, creating more mh failures.

PiperOrigin-RevId: 537820370
(cherry picked from commit c78151b)
More info, including a script to help with the migration:
https://developer.android.com/guide/topics/media/media3/getting-started/migration-guide

PiperOrigin-RevId: 540345728
(cherry picked from commit af1b9f6)
#minor-release
Issue: androidx/media#452
PiperOrigin-RevId: 539915277
(cherry picked from commit 73fda2f)
#minor-release

PiperOrigin-RevId: 540517113
(cherry picked from commit 350ced2)
These were missed in 1034250

#minor-release

PiperOrigin-RevId: 541860649
(cherry picked from commit 273953e)
#minor-release

PiperOrigin-RevId: 542565180
(cherry picked from commit 7aa13a4)
#minor-release

PiperOrigin-RevId: 542881427
(cherry picked from commit b9d289f)
#minor-release

PiperOrigin-RevId: 543369900
(cherry picked from commit fb6a496)
#minor-release

PiperOrigin-RevId: 543393737
(cherry picked from commit 7676709)
PiperOrigin-RevId: 541640959
(cherry picked from commit 3f991f6)
@tof-tof tof-tof requested a review from icbaker July 5, 2023 08:53
@tof-tof tof-tof self-assigned this Jul 5, 2023
@tof-tof tof-tof merged commit f425665 into release-v2 Jul 5, 2023
1 check failed
@tof-tof tof-tof deleted the release-v2-r2.19.0 branch July 5, 2023 08:58
@google google locked and limited conversation to collaborators Sep 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet