mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-19 19:13:03 +00:00
Update VideoDecoderRenderer interface with redrawRate and additional configuration flags
This commit is contained in:
parent
ed92f9d28e
commit
12658f4fb0
@ -3,9 +3,11 @@ package com.limelight.nvstream.av.video;
|
||||
import com.limelight.nvstream.av.DecodeUnit;
|
||||
|
||||
public interface VideoDecoderRenderer {
|
||||
public static int FLAG_PREFER_QUALITY = 0x1;
|
||||
|
||||
public void setup(int width, int height, Object renderTarget, int drFlags);
|
||||
public static final int FLAG_PREFER_QUALITY = 0x1;
|
||||
public static final int FLAG_FORCE_HARDWARE_DECODING = 0x2;
|
||||
public static final int FLAG_FORCE_SOFTWARE_DECODING = 0x4;
|
||||
|
||||
public void setup(int width, int height, int redrawRate, Object renderTarget, int drFlags);
|
||||
|
||||
public void start();
|
||||
|
||||
|
@ -132,7 +132,8 @@ public class VideoStream {
|
||||
public void setupDecoderRenderer(VideoDecoderRenderer decRend, Object renderTarget, int drFlags) {
|
||||
this.decRend = decRend;
|
||||
if (decRend != null) {
|
||||
decRend.setup(streamConfig.getWidth(), streamConfig.getHeight(), renderTarget, drFlags);
|
||||
decRend.setup(streamConfig.getWidth(), streamConfig.getHeight(),
|
||||
streamConfig.getRefreshRate(), renderTarget, drFlags);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user