|
GlueGen v2.6.0-rc-20250712
GlueGen, Native Binding Generator for Java (public API).
|
Integer time frame in milliseconds, maybe specialized for texture/video, audio, . More...
Public Member Functions | |
| TimeFrameI () | |
Ctor w/ zero duration and INVALID_PTS. More... | |
| TimeFrameI (final int pts, final int duration) | |
| Create a new instance. More... | |
| final int | getPTS () |
| Returns this frame's presentation timestamp (PTS) in milliseconds. More... | |
| final void | setPTS (final int pts) |
| Set this frame's presentation timestamp (PTS) in milliseconds. More... | |
| final int | getDuration () |
| Get this frame's duration in milliseconds. More... | |
| final void | setDuration (final int duration) |
| Set this frame's duration in milliseconds. More... | |
| String | toString () |
Static Public Attributes | |
| static final int | INVALID_PTS = 0x80000000 |
| Constant marking an invalid PTS, i.e. More... | |
| static final int | END_OF_STREAM_PTS = 0x7FFFFFFF |
| Constant marking the end of the stream PTS, i.e. More... | |
Protected Attributes | |
| int | pts |
| int | duration |
Integer time frame in milliseconds, maybe specialized for texture/video, audio, .
. animated content.
Type and value range has been chosen to suit embedded CPUs and characteristics of audio / video streaming and animations. Milliseconds of type integer with a maximum value of Integer#MAX_VALUE will allow tracking time up 2,147,483.647 seconds or 24 days 20 hours 31 minutes and 23 seconds, see getPTS() and getDuration().
Milliseconds granularity is also more than enough to deal with A-V synchronization, where the threshold usually lies within 22ms.
Milliseconds granularity for displaying video frames might seem inaccurate for each single frame, i.e. 60Hz != 16ms, however, accumulated values diminish this error and vertical sync is achieved by build-in V-Sync of the video drivers.
Definition at line 49 of file TimeFrameI.java.
| com.jogamp.common.av.TimeFrameI.TimeFrameI | ( | ) |
Ctor w/ zero duration and INVALID_PTS.
Definition at line 62 of file TimeFrameI.java.
| com.jogamp.common.av.TimeFrameI.TimeFrameI | ( | final int | pts, |
| final int | duration | ||
| ) |
Create a new instance.
| pts | frame pts in milliseconds, see getPTS() |
| duration | frame duration in milliseconds, see getDuration() |
Definition at line 73 of file TimeFrameI.java.
| final int com.jogamp.common.av.TimeFrameI.getDuration | ( | ) |
Get this frame's duration in milliseconds.
The duration stored in integer covers 2'147'483'647 ms (see Integer#MAX_VALUE or 2'147'483 seconds or 24.855 days.
Definition at line 99 of file TimeFrameI.java.
| final int com.jogamp.common.av.TimeFrameI.getPTS | ( | ) |
Returns this frame's presentation timestamp (PTS) in milliseconds.
The relative millisecond PTS since start of the presentation stored in integer covers a time span of 2'147'483'647 ms (see Integer#MAX_VALUE or 2'147'483 seconds or 24.855 days.
Definition at line 86 of file TimeFrameI.java.
| final void com.jogamp.common.av.TimeFrameI.setDuration | ( | final int | duration | ) |
Set this frame's duration in milliseconds.
Definition at line 104 of file TimeFrameI.java.
| final void com.jogamp.common.av.TimeFrameI.setPTS | ( | final int | pts | ) |
Set this frame's presentation timestamp (PTS) in milliseconds.
Definition at line 91 of file TimeFrameI.java.
| String com.jogamp.common.av.TimeFrameI.toString | ( | ) |
Reimplemented in com.jogamp.common.av.AudioSink.AudioFrame, and com.jogamp.common.av.AudioSink.AudioDataFrame.
Definition at line 107 of file TimeFrameI.java.
|
protected |
Definition at line 57 of file TimeFrameI.java.
|
static |
Constant marking the end of the stream PTS, i.e.
Integer.MIN_VALUE - 1 == 0x7FFFFFFF == {@value}. Sync w/ native code.
Definition at line 54 of file TimeFrameI.java.
|
static |
Constant marking an invalid PTS, i.e.
Integer.MIN_VALUE == 0x80000000 == {@value}. Sync w/ native code.
Definition at line 51 of file TimeFrameI.java.
|
protected |
Definition at line 56 of file TimeFrameI.java.