mirror of
https://github.com/Genymobile/scrcpy.git
synced 2026-04-21 01:33:36 +00:00
Avoid additional buffer copy in userspace
Directly send the data from MediaCodec buffers to the LocalSocket, without an intermediate copy in userspace.
This commit is contained in:
parent
a60aef5aaf
commit
66def38b73
4 changed files with 44 additions and 22 deletions
|
|
@ -21,7 +21,7 @@ public final class Server {
|
|||
|
||||
try {
|
||||
// synchronous
|
||||
screenEncoder.streamScreen(device, connection.getOutputStream());
|
||||
screenEncoder.streamScreen(device, connection.getFd());
|
||||
} catch (IOException e) {
|
||||
// this is expected on close
|
||||
Ln.d("Screen streaming stopped");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue