tonihei
e7c5b87e02
Formatting and Javadoc updates
2023-06-05 16:06:07 +01:00
Vishnu Chilakala
b417838209
Added setMinLiveStartPositionMs to DashMediaSource.Factory
2023-06-05 16:06:07 +01:00
sheenachhabra
997f2be5e5
Ignore ByteBuffer position when writing samples in Mp4Muxer
...
PiperOrigin-RevId: 537814319
2023-06-05 09:52:27 +00:00
andrewlewis
74478f2478
Tidy color info checking tests
...
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
2023-06-05 09:51:01 +00:00
ibaker
79b721e411
Define the SubtitleParser
interface
...
We will migrate concrete implementations of `SubtitleDecoder` to implement
this instead.
PiperOrigin-RevId: 537298600
2023-06-05 09:49:26 +00:00
ibaker
7e6dae7b31
Remove exoplayer2-only javadoc machinery from media3
...
This introduces whitespace-only changes in exoplayer2 due to the way
copybara stripping works.
PiperOrigin-RevId: 537296933
2023-06-05 09:47:58 +00:00
kimvde
04d8edf19e
Read Exif orientation data in DataSourceBitmapLoader
...
PiperOrigin-RevId: 537258424
2023-06-05 09:46:26 +00:00
Cedric T
b4ff9031c7
Split AudioOffloadSupport.DEFAULT_UNSUPPORTED check into 2 if statements.
2023-06-02 15:29:12 +00:00
Cedric T
8ab1a68939
Return offload unsupported for DTSX P2 and API < 34.
2023-06-02 15:29:12 +00:00
Cedric T
19676084e6
Fix DTS:X P2 offload playback.
2023-06-02 15:29:12 +00:00
ibaker
fa990714fe
Remove exoplayer2-specific parts from media3-only files
...
PiperOrigin-RevId: 537038419
2023-06-02 09:19:32 +00:00
christosts
757247e2ae
Release MIDI decoder module in open-source
...
PiperOrigin-RevId: 537034577
2023-06-02 09:18:09 +00:00
huangdarwin
c52130a212
Test: Add special effects for forcing transcode.
...
Previously, we would apply a general effect to signal wanting to transcode.
PiperOrigin-RevId: 537034455
2023-06-02 09:16:52 +00:00
Tofunmi Adigun-Hameed
a739f6062e
Merge pull request #420 from changxiangzhong:fix/cp-missing
...
PiperOrigin-RevId: 537014587
2023-06-02 09:15:38 +00:00
claincly
f6dbe99c79
Use the designated UNSET value for aspect ratio
...
PiperOrigin-RevId: 536770380
2023-06-02 09:12:38 +00:00
huangdarwin
20f90cb1bf
ExoPlayer: set videoFrameProcessorFactory in MCVR ctor.
...
Also, move to using a Supplier<?> to load a singleton value.
PiperOrigin-RevId: 536733480
2023-05-31 18:01:35 +00:00
kimvde
108000834b
Add TransformationRequest toString method
...
PiperOrigin-RevId: 536727079
2023-05-31 18:00:12 +00:00
ibaker
0ddc024c69
Soften MediaCodecRenderer
's assumptions about using framework DRM
...
#minor-release
PiperOrigin-RevId: 536724725
2023-05-31 17:58:49 +00:00
claincly
208eefc0fd
Fix codec's MIME type is not used
...
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
2023-05-31 17:57:40 +00:00
huangdarwin
e2821f10f5
Exoplayer: Suppress check to allow video to run ahead of Audio.
...
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
2023-05-31 17:56:24 +00:00
Ian Baker
1b564c67f2
Switch from boxed Boolean
to primitive boolean
...
Also add a parameter comment and reformat with `google-java-format`.
2023-05-31 18:16:03 +01:00
Chang Xiangzhong
c331ac64e7
Save state throwsWhenUsingWrongThread when copy()
2023-05-31 18:04:27 +01:00
tofunmi
49ea280bb8
Version bump to media3:1.1.0-beta01
...
#minor-release
PiperOrigin-RevId: 536464412
2023-05-30 18:48:06 +00:00
huangdarwin
1c172e0bed
Effect: Remove extra wait on taskExecutor release()
...
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
2023-05-30 18:46:43 +00:00
huangdarwin
06908e1a86
Rollback of 438ae0ed6a
...
*** Original commit ***
ExoPlayer: Add setVideoFrameProcessorFactory().
This allows apps to use a custom VideoFrameProcessor implementation for video
playback. This may be useful, for example, when outputting to a texture.
***
PiperOrigin-RevId: 536391597
2023-05-30 14:26:39 +00:00
sheenachhabra
99d2cf6713
Add only supported MdtaMetadataEntry
...
PiperOrigin-RevId: 536351494
2023-05-30 14:24:06 +00:00
jbibik
25bf0c6738
Remove previously deprecated MediaItem.PlaybackProperties
in favour 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
2023-05-30 10:13:11 +00:00
tofunmi
16d36da88a
Remove unneeded image mimetypes
...
not needed after 94d29f35fc
is submitted
PiperOrigin-RevId: 535627522
2023-05-30 10:10:39 +00:00
tofunmi
94d29f35fc
Image transcoding: Add support for bmp image format.
...
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
2023-05-26 15:16:17 +00:00
kimvde
f4d1a6c453
Transmux video if rotation is only effect applied
...
PiperOrigin-RevId: 535554628
2023-05-26 15:14:52 +00:00
Tofunmi Adigun-Hameed
c3dd88d715
Merge pull request #335 from cedricxperi:dts-direct-passthrough-support
...
PiperOrigin-RevId: 535255453
2023-05-25 15:13:38 +00:00
tofunmi
a19e07c4d2
Move OnInputFrameProcessedListener into it's own file
...
PiperOrigin-RevId: 535183521
2023-05-25 15:09:36 +00:00
Tianyi Feng
730cfecd57
Make the API 34 check inline and refactor the comment
2023-05-25 09:58:07 +00:00
Tianyi Feng
f301214a1e
Refactor the comment
2023-05-25 09:58:07 +00:00
Tianyi Feng
fb34983bb7
Format with google-java-format
2023-05-25 09:58:07 +00:00
Tianyi Feng
48509df714
Quick return the capabilities for API29 TV case
2023-05-25 09:58:07 +00:00
Tianyi Feng
ea32f11292
Refactor the methods and reword the comments
2023-05-25 09:58:07 +00:00
Tianyi Feng
9d147f2227
Adjust the comment lines
2023-05-25 09:58:07 +00:00
Tianyi Feng
f69718e5ad
Fix the lint issues
2023-05-25 09:58:07 +00:00
Tianyi Feng
162f5e827a
Add type argument when using ImmutableSet
2023-05-25 09:58:07 +00:00
Tianyi Feng
b9a53da121
Refactor AudioCapabilities.getCapabilities
2023-05-25 09:58:07 +00:00
Tianyi Feng
c61f8d317a
Add C.ENCODING_DTS_UHD_P2 to C.Encoding
2023-05-25 09:58:07 +00:00
Tianyi Feng
d0cd2f5f21
Refactor AudioCapabilities.getCapabilities
2023-05-25 09:58:07 +00:00
Tianyi Feng
47b0726ea9
Format with google-java-format
2023-05-25 09:55:10 +00:00
Cedric T
424b5d8d0e
Add issue link for AudioCapabilities
2023-05-25 09:55:10 +00:00
Cedric T
cb29e8fb3d
Construct AudioCapabilities with HDMI reported MaxChannelCount.
2023-05-25 09:55:10 +00:00
Cedric T
905ad1ce33
Fixed bug in HDMI reporting logic.
2023-05-25 09:55:10 +00:00
Cedric T
6b4cf4d362
Swap HDMI case and non-HDMI case in AudioCapabilities.
2023-05-25 09:55:10 +00:00
Cedric T
773d3c52f1
Swap empty line in AudioCapabilities.java
2023-05-25 09:55:10 +00:00
Cedric T
53f35f46f5
Use ImmutableSet to store discovered encodings in AudioCapabilities.java
2023-05-25 09:55:10 +00:00