Update VideoDecoderRenderer interface with redrawRate and additional configuration flags

This commit is contained in:
Cameron Gutman 2013-12-26 17:28:37 -05:00
parent ed92f9d28e
commit 12658f4fb0
2 changed files with 7 additions and 4 deletions

View File

@ -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 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, Object renderTarget, int drFlags);
public void setup(int width, int height, int redrawRate, Object renderTarget, int drFlags);
public void start();

View File

@ -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);
}
}