- 29 Jul, 2022 4 commits
-
-
Format.NO_VALUE is a placeholder value for an invalid @C.ColorTransfer, used for example when the decoder doesn't support this transfer function. When encountering this invalid value, interpret this as COLOR_TRANSFER_SDR. Confirmed locally that an exception is thrown when transcoding on p4head, and no exception is thrown when transcoding with this CL. PiperOrigin-RevId: 464135080 (cherry picked from commit 1a22bcf1)
huangdarwin committed -
PiperOrigin-RevId: 463971447 (cherry picked from commit 810f451e)
huangdarwin committed
-
- 28 Jul, 2022 1 commit
-
-
* Sets KEY_HDR_STATIC_INFO from MediaFormat in the DefaultCodec. * Adds checks in mediaparser to ensure color space, range, and transfer are valid values. PiperOrigin-RevId: 463921325 (cherry picked from commit 44c42fef)
huangdarwin committed
-
- 19 Oct, 2022 1 commit
-
-
PiperOrigin-RevId: 463852948 (cherry picked from commit 9ed04ef8)
Marc Baechinger committed
-
- 28 Jul, 2022 3 commits
-
-
Despite unregistering the callback and clearing pending Handler messages, the callback may still receive pending calls if they are already triggered by the AudioTrack. Instead of asserting that the track is correct, we should gracefully ignore stale events. PiperOrigin-RevId: 463851393 (cherry picked from commit 3650c297)
tonihei committed -
Merging https://github.com/androidx/media/pull/110/commits/c37a767fdfc2f7e0b9eb1ad7ae6f864c93950712 PiperOrigin-RevId: 463826373 (cherry picked from commit 4d5d592c)
claincly committed -
MediaCodecRenderer allows passing HDR10+ out-of-bound metadata with ApplicationVersion = 1. PiperOrigin-RevId: 463822315 (cherry picked from commit 81d1dafe)
christosts committed
-
- 19 Oct, 2022 1 commit
-
-
PiperOrigin-RevId: 463792127 (cherry picked from commit 3b5a53f1)
Marc Baechinger committed
-
- 27 Jul, 2022 3 commits
-
-
TransformationException error codes were previously tied to OpenGL but other FrameProcessor implementations are possible. So this CL renames the error codes. Also, remove GL_INIT_FAILED error code, as FrameProcessor implemenations may initialize resources on a background thread after the factory method returns, so it's not obvious how to distinguish between initialization failures and processing failures. PiperOrigin-RevId: 463704902 (cherry picked from commit bac323d3)
Googler committed
-
- 26 Jul, 2022 10 commits
-
-
Downsampled from 3840x2160 resolution videos using ffmpeg: `ffmpeg -i <inputFilename> -filter:v scale=<width>:<height> -c:a copy <outputFilename>` PiperOrigin-RevId: 463454628 (cherry picked from commit 5f1ee86e)
samrobinson committed -
PiperOrigin-RevId: 463452893 (cherry picked from commit e1b6ed32)
samrobinson committed -
This is possible because SSIM increases monotonically with bitrate. PiperOrigin-RevId: 463434373 (cherry picked from commit 63cddc90)
samrobinson committed -
Just a misc nit, since I found the name a bit confusing, and figured findEncoderWithClosestSupportedFormat might be more descriptive. PiperOrigin-RevId: 463433646 (cherry picked from commit 324fc5d7)
huangdarwin committed -
PiperOrigin-RevId: 463320634 (cherry picked from commit dc65aaef)
christosts committed
- 25 Jul, 2022 5 commits
-
-
PiperOrigin-RevId: 463146426 (cherry picked from commit 92fc065b)
Oliver Woodman committed
- 22 Jul, 2022 1 commit
-
-
This is needed for applying effects to a playlist. The effects are applied based on the presentation time of the frame in its corresponding media item and the offset is added back before encoding. Each time the offset changes, end of input stream is signalled to the texture processors. This is needed because the texture processors can expect monotonically increasing timestamp within the same input stream but when the offset changes, the timstamps jump back to 0. PiperOrigin-RevId: 462714966 (cherry picked from commit 46ab06b8)
hschlueter committed
-
- 21 Jul, 2022 3 commits
-
-
This allows us to use BT.2020 RGB linear for intermediate shaders, which also allows us to re-enable PeriodicVignetteProcessor, which should work properly in linear color-spaces. Manually tested by adding a GlEffectsWrapper, and confirming that HLG HDR editing still looks correct. PiperOrigin-RevId: 462265821 (cherry picked from commit 1ecf1eb7)
huangdarwin committed
- 20 Jul, 2022 1 commit
-
- 19 Jul, 2022 6 commits
-
-
This adds two methods that are helpful when working with Futures. One is a version of postOrRun that can indicate completion by a Future and the other is a simplified version of Guava's Futures.transformAsync (which can't be used as it's in Beta). PiperOrigin-RevId: 461896598 (cherry picked from commit 1df79419)
tonihei committed -
PiperOrigin-RevId: 461888238 (cherry picked from commit 42f2e144)
samrobinson committed -
Otherwise, invalid ColorInfo instances generated using faulty MediaFormat#getInteger values could cause exceptions. Confirmed that b/239435670 reproduces without this CL, and does not reproduce with this CL. PiperOrigin-RevId: 461862191 (cherry picked from commit 5533ad17)
huangdarwin committed -
This will help developers self-diagnose issues like Issue: google/ExoPlayer#10392 where the NPE occurs far from the original null value because a field gets assigned to null. This change aims to ensure that every stable method on Player, ExoPlayer and ExoPlayer.Builder that takes a non-null type will fail with an NPE before returning. #minor-release PiperOrigin-RevId: 461846580 (cherry picked from commit 080db2a0)
ibaker committed
- 18 Jul, 2022 1 commit
-
-
* Introduced `useHdr` for `GlEffect#toGlTextureProcessor`, so `TextureProcessor` implementations can decide how to handle HDR. * Creating FP16 color textures for HDR input. Tested via manual testing, adding a no-op GlEffectWrapper to the transformation to force use of intermediate textures, adding a linear ramp to the fragment shader, and trying to ascertain that there's a real reduction in posterization when switching from 4-bit to 8-bit unsigned bytes, and again from 8-bit unsigned bytes to 16-bit floating point. PiperOrigin-RevId: 461613117 (cherry picked from commit f67c1a73)
huangdarwin committed
-