From 190fd7abc6eb730e3254f4ded7c851f714a95509 Mon Sep 17 00:00:00 2001 From: huangdarwin Date: Thu, 21 Sep 2023 08:55:24 -0700 Subject: [PATCH] Compositor: Clarify javadoc, to mention VideoCompositorSettings. Clarify that we use OverlaySettings to place frames over one another, as passed in via VideoCompositorSettings PiperOrigin-RevId: 567321828 --- .../java/androidx/media3/effect/DefaultVideoCompositor.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libraries/effect/src/main/java/androidx/media3/effect/DefaultVideoCompositor.java b/libraries/effect/src/main/java/androidx/media3/effect/DefaultVideoCompositor.java index 80c8bfd125..591e7d8e2a 100644 --- a/libraries/effect/src/main/java/androidx/media3/effect/DefaultVideoCompositor.java +++ b/libraries/effect/src/main/java/androidx/media3/effect/DefaultVideoCompositor.java @@ -62,8 +62,10 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull; *

The input source must be able to have at least two {@linkplain * VideoCompositor#queueInputTexture queued textures} in its output buffer. * - *

When composited, textures are drawn in the reverse order of their registration order, so that - * the first registered source is on the very top. + *

When composited, textures are overlaid over one another in the reverse order of their + * registration order, so that the first registered source is on the very top. The way the textures + * are overlaid can be customized using the {@link OverlaySettings} output by {@link + * VideoCompositorSettings}. * *

Only SDR input with the same {@link ColorInfo} are supported. */