aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/invalid/lena/scrcpy/VideoFrames.java
blob: ec930ac0baee00ec419012ba7cf9abd8afc3d98a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package invalid.lena.scrcpy;

import java.io.IOException;

// Sink for parsed video frames. VideoSink is the only production
// implementation; tests use a recording stub. Kept android-free so
// it can be referenced from JVM-only test code.
public interface VideoFrames {

    void configure(int codecFourcc, int width, int height) throws IOException;

    void reconfigure(int codecFourcc, int width, int height) throws IOException;

    void feed(byte[] data, long ptsUs, boolean isConfig, boolean isKeyframe);

    void release();
}