aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/invalid/lena/scrcpy/VideoFrames.java
diff options
context:
space:
mode:
authorLena <lena@omega>2026-01-01 00:00:00 +0000
committerLena <lena@omega>2026-06-24 22:14:50 +0300
commiteb0c8951196c637e44daf3c0617b131b997d5d2c (patch)
tree2f83b6a41cee745467e53fc401942b82cea286ea /app/src/main/java/invalid/lena/scrcpy/VideoFrames.java
downloadscrcpy-android-eb0c8951196c637e44daf3c0617b131b997d5d2c.tar.gz
scrcpy-android: mirror an Android device over wireless ADB0.1
Native Java app for Android 12+ that mirrors another Android device over wireless ADB, forwarding video, audio, touch input, and clipboard. Bundles a pinned scrcpy-server.jar and the vendored libadb-android stack. Supports h264/h265/av1 video and raw/opus audio with in-app codec selection. No NDK, no Kotlin. Includes JVM unit tests and a Docker-based emulator e2e rig.
Diffstat (limited to 'app/src/main/java/invalid/lena/scrcpy/VideoFrames.java')
-rw-r--r--app/src/main/java/invalid/lena/scrcpy/VideoFrames.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/app/src/main/java/invalid/lena/scrcpy/VideoFrames.java b/app/src/main/java/invalid/lena/scrcpy/VideoFrames.java
new file mode 100644
index 0000000..cfffe90
--- /dev/null
+++ b/app/src/main/java/invalid/lena/scrcpy/VideoFrames.java
@@ -0,0 +1,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);
+
+ void release();
+}