|
|
|
@ -63,8 +63,9 @@ public class ScreenEncoder implements Device.RotationListener {
|
|
|
|
do {
|
|
|
|
do {
|
|
|
|
MediaCodec codec = createCodec();
|
|
|
|
MediaCodec codec = createCodec();
|
|
|
|
IBinder display = createDisplay();
|
|
|
|
IBinder display = createDisplay();
|
|
|
|
Rect contentRect = device.getScreenInfo().getContentRect();
|
|
|
|
ScreenInfo screenInfo = device.getScreenInfo();
|
|
|
|
Rect videoRect = device.getScreenInfo().getVideoSize().toRect();
|
|
|
|
Rect contentRect = screenInfo.getContentRect();
|
|
|
|
|
|
|
|
Rect videoRect = screenInfo.getVideoSize().toRect();
|
|
|
|
setSize(format, videoRect.width(), videoRect.height());
|
|
|
|
setSize(format, videoRect.width(), videoRect.height());
|
|
|
|
configure(codec, format);
|
|
|
|
configure(codec, format);
|
|
|
|
Surface surface = codec.createInputSurface();
|
|
|
|
Surface surface = codec.createInputSurface();
|
|
|
|
|