Compositor: Move input source javadoc to class-level.

As discussed offline, this is important for users of the class, and not all users may choose to read method javadoc, so best to make sure it's visible by leaving it at the class-level.

PiperOrigin-RevId: 565057677
This commit is contained in:
huangdarwin 2023-09-13 08:27:37 -07:00 committed by Copybara-Service
parent fdfec60f6e
commit e0de405e68

View file

@ -57,7 +57,13 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
* and combines them into one output stream.
*
* <p>The first {@linkplain #registerInputSource registered source} will be the primary stream,
* which is used to determine the output frames' timestamps and dimensions.
* which is used to determine the output textures' timestamps and dimensions.
*
* <p>The input source must be able to have at least two {@linkplain
* VideoCompositor#queueInputTexture queued textures} in its output buffer.
*
* <p>When composited, textures are drawn in the reverse order of their registration order, so that
* the first registered source is on the very top.
*
* <p>Only SDR input with the same {@link ColorInfo} are supported.
*/
@ -153,16 +159,6 @@ public final class DefaultVideoCompositor implements VideoCompositor {
videoFrameProcessingTaskExecutor.submit(this::setupGlObjects);
}
/**
* {@inheritDoc}
*
* <p>The input source must be able to have at least two {@linkplain
* VideoCompositor#queueInputTexture queued textures} before one texture is {@linkplain
* DefaultVideoFrameProcessor.ReleaseOutputTextureCallback released}.
*
* <p>When composited, textures are drawn in the reverse order of their registration order, so
* that the first registered source is on the very top.
*/
@Override
public synchronized int registerInputSource() {
inputSources.add(new InputSource());