mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-20 19:42:45 +00:00
Discard the alpha channel of the surface since it's not used. Always use MED_PERF for the AvcDecoder configuration because it now works well enough on Tegra 3 that the image quality improvements are worth it.
This commit is contained in:
parent
45664dac2a
commit
ab9b7b5164
@ -59,7 +59,7 @@ public class Game extends Activity implements OnGenericMotionListener, OnTouchLi
|
||||
sv.setOnTouchListener(this);
|
||||
SurfaceHolder sh = sv.getHolder();
|
||||
sh.setFixedSize(1280, 720);
|
||||
sh.setFormat(PixelFormat.RGBA_8888);
|
||||
sh.setFormat(PixelFormat.RGBX_8888);
|
||||
|
||||
// Start the connection
|
||||
conn = new NvConnection(Game.this.getIntent().getStringExtra("host"), Game.this, sv.getHolder().getSurface());
|
||||
|
@ -73,7 +73,7 @@ public class CpuDecoderRenderer implements DecoderRenderer {
|
||||
this.renderTarget = renderTarget;
|
||||
this.perfLevel = findOptimalPerformanceLevel();
|
||||
|
||||
int err = AvcDecoder.init(width, height, perfLevel);
|
||||
int err = AvcDecoder.init(width, height, MED_PERF);
|
||||
if (err != 0) {
|
||||
throw new IllegalStateException("AVC decoder initialization failure: "+err);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user