|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jcodec.containers.mp4.QTTimeUtil
public class QTTimeUtil
This class is part of JCodec ( www.jcodec.org ) This software is distributed under FreeBSD License Quicktime time conversion utilities
| Constructor Summary | |
|---|---|
QTTimeUtil()
|
|
| Method Summary | |
|---|---|
static long |
editedToMedia(TrakBox trak,
long editedTv,
int movieTimescale)
Converts edited timevalue to media timevalue |
static String |
formatTimecode(TrakBox timecodeTrack,
int counter)
Formats tape timecode based on frame counter |
static long |
frameToTimevalue(TrakBox trak,
int frameNumber)
Finds timevalue of a frame number might be an expensive operation sinse it traverses compressed time to sample table |
static long |
getEditedDuration(TrakBox track)
Calculates track duration considering edits |
static long |
mediaToEdited(TrakBox trak,
long mediaTv,
int movieTimescale)
Converts media timevalue to edited timevalue |
static int |
qtPlayerFrameNo(MovieBox movie,
int mediaFrameNo)
Calculates frame number as it shows in quicktime player |
static String |
qtPlayerTime(MovieBox movie,
int mediaFrameNo)
Calculates and formats standard time as in Quicktime player |
static String |
qtPlayerTimecode(MovieBox movie,
TimecodeMP4DemuxerTrack timecodeTrack,
int mediaFrameNo)
Calculates and formats tape timecode as in Quicktime player |
static String |
qtPlayerTimecode(TimecodeMP4DemuxerTrack timecodeTrack,
RationalLarge tv,
int movieTimescale)
Calculates and formats tape timecode as in Quicktime player |
static int |
timevalueToFrame(TrakBox trak,
long tv)
Finds frame by timevalue |
static int |
timevalueToTimecodeFrame(TrakBox timecodeTrack,
RationalLarge tv,
int movieTimescale)
Converts timevalue to frame number based on timecode track |
static int |
tv2QTFrameNo(MovieBox movie,
long tv)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QTTimeUtil()
| Method Detail |
|---|
public static long getEditedDuration(TrakBox track)
track -
public static long frameToTimevalue(TrakBox trak,
int frameNumber)
frameNumber -
public static int timevalueToFrame(TrakBox trak,
long tv)
tv -
public static long mediaToEdited(TrakBox trak,
long mediaTv,
int movieTimescale)
trak - mediaTv - movieTimescale -
public static long editedToMedia(TrakBox trak,
long editedTv,
int movieTimescale)
trak - mediaTv - movieTimescale -
public static int qtPlayerFrameNo(MovieBox movie,
int mediaFrameNo)
movie - mediaFrameNo -
public static int tv2QTFrameNo(MovieBox movie,
long tv)
public static String qtPlayerTime(MovieBox movie,
int mediaFrameNo)
movie - mediaFrameNo -
public static String qtPlayerTimecode(MovieBox movie,
TimecodeMP4DemuxerTrack timecodeTrack,
int mediaFrameNo)
throws IOException
timecodeTrack - tv - startCounter -
IOException
public static String qtPlayerTimecode(TimecodeMP4DemuxerTrack timecodeTrack,
RationalLarge tv,
int movieTimescale)
throws IOException
timecodeTrack - tv - startCounter -
IOException
public static int timevalueToTimecodeFrame(TrakBox timecodeTrack,
RationalLarge tv,
int movieTimescale)
timecodeTrack - tv -
public static String formatTimecode(TrakBox timecodeTrack,
int counter)
timecodeTrack - counter -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||