diff options
author | Sven Gothel <[email protected]> | 2013-08-16 21:09:21 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-08-16 21:09:21 +0200 |
commit | 3f262a9f4653a09b28a84442378428c18b64775f (patch) | |
tree | 7661bdee1fbae55415ee5f0518df7321dc2df4c6 /src/jogl/classes/jogamp/opengl/util/av | |
parent | c200045aa661cf82474c2b3c1db0ac69db40452a (diff) |
GLMediaPlayerImpl: Refine getNextTexture(..) DEBUG output, put 'last SCR delay' in regular println.
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/util/av')
-rw-r--r-- | src/jogl/classes/jogamp/opengl/util/av/GLMediaPlayerImpl.java | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/src/jogl/classes/jogamp/opengl/util/av/GLMediaPlayerImpl.java b/src/jogl/classes/jogamp/opengl/util/av/GLMediaPlayerImpl.java index 85b599c0e..8456aca6f 100644 --- a/src/jogl/classes/jogamp/opengl/util/av/GLMediaPlayerImpl.java +++ b/src/jogl/classes/jogamp/opengl/util/av/GLMediaPlayerImpl.java @@ -574,15 +574,10 @@ public abstract class GLMediaPlayerImpl implements GLMediaPlayer { newFrameAvailable(nextFrame, currentTimeMillis); } } - if( DEBUG ) { - System.err.println("> "+currentTimeMillis+", d "+(currentTimeMillis-lastTimeMillis)+", playCached "+playCached); - } if( ok ) { presentedFrameCount++; final int video_pts = nextFrame.getPTS(); if( video_pts != TextureFrame.INVALID_PTS ) { - lastTimeMillis = currentTimeMillis; - final int audio_pts = getAudioPTSImpl(); final int audio_scr = (int) ( ( currentTimeMillis - audio_scr_t0 ) * playSpeed ); final int d_apts; @@ -604,7 +599,8 @@ public abstract class GLMediaPlayerImpl implements GLMediaPlayer { if( -VIDEO_DPTS_MAX > d_vpts || d_vpts > VIDEO_DPTS_MAX ) { // if( -VIDEO_DPTS_MAX > d_avpts || d_avpts > VIDEO_DPTS_MAX ) { if( DEBUG ) { - System.err.println( "AV*: "+getPerfStringImpl( video_scr, video_pts, d_vpts, audio_scr, audio_pts, d_apts, 0 ) + ", "+nextFrame+", playCached " + playCached+ ", dropFrame "+dropFrame); + System.err.println( "AV*: dT "+(currentTimeMillis-lastTimeMillis)+", "+ + getPerfStringImpl( video_scr, video_pts, d_vpts, audio_scr, audio_pts, d_apts, 0 ) + ", "+nextFrame+", playCached " + playCached+ ", dropFrame "+dropFrame); } } else { final int dpy_den = displayedFrameCount > 0 ? displayedFrameCount : 1; @@ -625,10 +621,11 @@ public abstract class GLMediaPlayerImpl implements GLMediaPlayer { } video_pts_last = video_pts; if( DEBUG ) { - System.err.println( "AV_: "+getPerfStringImpl( video_scr, video_pts, d_vpts, - audio_scr, audio_pts, d_apts, - video_dpts_avg_diff ) + - ", avg dpy-fps "+avg_dpy_duration+" ms/f, maxD "+maxVideoDelay+" ms, "+nextFrame+", playCached " + playCached + ", dropFrame "+dropFrame); + System.err.println( "AV_: dT "+(currentTimeMillis-lastTimeMillis)+", "+ + getPerfStringImpl( video_scr, video_pts, d_vpts, + audio_scr, audio_pts, d_apts, + video_dpts_avg_diff ) + + ", avg dpy-fps "+avg_dpy_duration+" ms/f, maxD "+maxVideoDelay+" ms, "+nextFrame+", playCached " + playCached + ", dropFrame "+dropFrame); } } } else if( DEBUG ) { @@ -640,6 +637,7 @@ public abstract class GLMediaPlayerImpl implements GLMediaPlayer { videoFramesFree.putBlocking(_lastFrame); } } + lastTimeMillis = currentTimeMillis; } while( dropFrame ); } catch (InterruptedException e) { ok = false; |