mirror of
https://github.com/samsonjs/media.git
synced 2026-04-05 11:15:46 +00:00
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
This commit is contained in:
parent
09a15fb731
commit
3a0fa0c89b
1 changed files with 4 additions and 0 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue