Commit 3a0fa0c8 by kimvde Committed by christosts

Indicate that some FrameProcessor methods can be called on any thread

The FrameProcessor is created on the GL thread, but:
- setInputFrameInfo() is currently called from the playback thread.
- release() is currently called from the transformer internal thread.

PiperOrigin-RevId: 501035719
parent 09a15fb7
......@@ -137,6 +137,8 @@ public interface FrameProcessor {
*
* <p>The caller should update {@link FrameInfo#streamOffsetUs} when switching input streams to
* ensure that frame timestamps are always monotonically increasing.
*
* <p>Can be called on any thread.
*/
void setInputFrameInfo(FrameInfo inputFrameInfo);
......@@ -216,6 +218,8 @@ public interface FrameProcessor {
* ignored.
*
* <p>This method blocks until all resources are released or releasing times out.
*
* <p>Can be called on any thread.
*/
void release();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment