Commit 23311429 by kimvde Committed by Rohit Singh

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 2c7e9ca8
......@@ -138,6 +138,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);
......@@ -217,6 +219,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