public class FrameNumberVideoTimecode extends VideoTimecode
Modifier and Type | Field and Description |
---|---|
protected double |
fps
The number of frames per second
|
Constructor and Description |
---|
FrameNumberVideoTimecode(long number,
double fps)
Default constructor that takes the frame number.
|
Modifier and Type | Method and Description |
---|---|
FrameNumberVideoTimecode |
clone()
Clone this timecode.
|
int |
compareTo(VideoTimecode o) |
boolean |
equals(Object obj) |
long |
getFrameNumber()
Returns the frame number of the frame represented by the
video timecode.
|
long |
getTimecodeInMilliseconds()
All timecode instances must be able to return the time in seconds
from the beginning of the temporal media.
|
int |
hashCode() |
void |
setFrameNumber(long frame)
Set the frame number.
|
void |
setTimecodeInMilliseconds(long timeInMilliseconds)
Set the current timecode to the given time in seconds, converting
as necessary.
|
String |
toString() |
protected double fps
public FrameNumberVideoTimecode(long number, double fps)
number
- The frame numberfps
- The frame ratepublic long getFrameNumber()
getFrameNumber
in class VideoTimecode
VideoTimecode.getFrameNumber()
public void setFrameNumber(long frame)
frame
- The frame numberpublic int compareTo(VideoTimecode o)
Comparable.compareTo(java.lang.Object)
public int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public String toString()
toString
in class Object
Object.toString()
public long getTimecodeInMilliseconds()
Timecode.getTimecodeInMilliseconds()
public void setTimecodeInMilliseconds(long timeInMilliseconds)
timeInMilliseconds
- The time in seconds.Timecode.setTimecodeInMilliseconds(long)
public FrameNumberVideoTimecode clone()
clone
in interface Timecode
clone
in class VideoTimecode