|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdrastic.mCmdIF.TCXlat
Title: TCXlat
Description: Convert between time code strings and frames
Copyright: Copyright © 1998-2007
Company: Drastic Technologies Ltd.
523 The Queensway, Suite 102
Toronto, ON, M8Y 1J7
CANADA
416 255 5636
fax 255 8780
http://www.drastictech.com
engineering@drastictech.com
Field Summary | |
java.lang.String |
szTc
This string is a global string to solve the problem with older Java MS VM's. |
static char |
TC2_CHAR_100
|
static char |
TC2_CHAR_2398
|
static char |
TC2_CHAR_50
|
static char |
TC2_CHAR_5994
|
static char |
TC2_CHAR_60
|
static char |
TC2_CHAR_DF
|
static char |
TC2_CHAR_FILM
|
static char |
TC2_CHAR_NDF
|
static char |
TC2_CHAR_NTSCFILM
|
static char |
TC2_CHAR_PAL
|
(package private) static int |
TC2_FIVEMIN_5994
frames per five minutes in 720p DF |
static int |
TC2_FTYPE_FIELD
Frame conversion to/from time code is in fields |
(package private) static int |
TC2_HOUR_100
hundreds of second per hour |
(package private) static int |
TC2_HOUR_50
frames per hour for 720p PAL |
(package private) static int |
TC2_HOUR_5994
frames per hour for 720p NTSC DF |
(package private) static int |
TC2_HOUR_60
frames per hour for 720p NTSC |
(package private) static int |
TC2_HOUR_DROP
frames per hour in drop frame mode |
(package private) static int |
TC2_HOUR_FILM
frames per hour in film |
(package private) static int |
TC2_HOUR_NDF
frames per hour in non-drop mode |
(package private) static int |
TC2_HOUR_PAL
frames per hour in pal mode |
(package private) static int |
TC2_ILLEGAL
|
static char |
TC2_MARK_100
|
static char |
TC2_MARK_2398
|
static char |
TC2_MARK_50
|
static char |
TC2_MARK_5994
|
static char |
TC2_MARK_60
|
static char |
TC2_MARK_DF
|
static char |
TC2_MARK_FILM
|
static char |
TC2_MARK_NDF
|
static char |
TC2_MARK_NTSCFILM
|
static char |
TC2_MARK_PAL
|
static int |
TC2_MIN_STRING_SIZE
Required size of a timecode string |
(package private) static int |
TC2_MINUTE_100
hundreds of second per hour |
(package private) static int |
TC2_MINUTE_50
frames per minute in 720p PAL |
(package private) static int |
TC2_MINUTE_5994
frames per minute in 720p DF |
(package private) static int |
TC2_MINUTE_60
frames per minute in 720p NDF |
(package private) static int |
TC2_MINUTE_DROP
frames per minute in drop frame mode |
(package private) static int |
TC2_MINUTE_FILM
frames per minute in film |
(package private) static int |
TC2_MINUTE_NDF
frames per minute in non-drop mode |
(package private) static int |
TC2_MINUTE_PAL
frames per minute in pal mode |
(package private) static int |
TC2_NTSCFILM_50SECDROP
50 second drop |
(package private) static int |
TC2_POS_FRAMES
|
(package private) static int |
TC2_POS_HOURS
|
(package private) static int |
TC2_POS_MINUTES
|
(package private) static int |
TC2_POS_SECONDS
|
(package private) static int |
TC2_SECOND_100
hundreds of seconds per second |
(package private) static int |
TC2_SECOND_50
frames per second for 720p PAL |
(package private) static int |
TC2_SECOND_5994
frames per second for 720p NTSC DF |
(package private) static int |
TC2_SECOND_60
frames per second for 720p NTSC |
(package private) static int |
TC2_SECOND_DROP
frames per second for drop frame ntsc |
(package private) static int |
TC2_SECOND_FILM
frames per second for film |
(package private) static int |
TC2_SECOND_NDF
frames per second for non drop frame ntsc |
(package private) static int |
TC2_SECOND_PAL
frames per second for pal |
static int |
TC2_STREXT_ALLCOLON
No ";" just ":" in the output string |
static int |
TC2_STREXT_CF
Add CF Flag in BCD |
static int |
TC2_STREXT_FLAG
Add DF Flag in BCD |
static int |
TC2_STREXT_ISBSTR
Strings are BSTR (vb mostly) |
static int |
TC2_STREXT_LEADING
Include leading 0s |
static int |
TC2_STREXT_MARKS
Add : marks in string |
static int |
TC2_STREXT_MASK
|
static int |
TC2_STREXT_MAX30
Max 29 frames for output (24 in PAL) |
static int |
TC2_STREXT_SAVEBITS
GOP Save unused bits |
static int |
TC2_STREXT_SHIFT7
GOP Tc is shifted in DWORD |
static int |
TC2_STREXT_TYPE
Add ' N', ' D', ' P' or ' F' at end; |
static int |
TC2_STRTYPE_ASCII
Std ascii string |
static int |
TC2_STRTYPE_BCD
RS-422 BCD or Packed int |
static int |
TC2_STRTYPE_GOP
MPEG Gop TC |
static int |
TC2_STRTYPE_HEX
Hex packed int |
static int |
TC2_STRTYPE_INVERT
Frames first |
static int |
TC2_STRTYPE_MASK
|
static int |
TC2_STRTYPE_OVER_24_HOUR
Allow time codes larger then 24 hours - 1 frame |
(package private) static int |
TC2_TCFLAG_CF
|
(package private) static int |
TC2_TCFLAG_DF
|
static int |
TC2_TCTYPE_100
Hundredths of a second HH:MM:SS:/100 100 FPS effective |
static int |
TC2_TCTYPE_2398
23.98 TRUE (actual 23.98 drop per Avid) |
static int |
TC2_TCTYPE_50
Double PAL 50 FPS |
static int |
TC2_TCTYPE_5994
720p DROP 59.94 FPS |
static int |
TC2_TCTYPE_60
720p 60 FPS |
static int |
TC2_TCTYPE_DF
Drop Frame 29.97 FPS time code |
static int |
TC2_TCTYPE_FILM
Film 24 FPS time code |
static int |
TC2_TCTYPE_MASK
|
static int |
TC2_TCTYPE_NDF
Non Drop Frame 30 FPS time code |
static int |
TC2_TCTYPE_NTSCFILM
23.98 FILM for NTSC 23.98 FPS (This is actually 24) |
static int |
TC2_TCTYPE_PAL
PAL 25 FPS time code |
(package private) static int |
TC2_TENMIN_DROP
frames per ten minutes in drop frame |
Constructor Summary | |
TCXlat()
|
Method Summary | |
java.lang.String |
getTCType(long dwTcType)
Return a short string representation of a time code type |
long |
tc2Frame(char[] pszTcIn,
int dwFlags,
long dwTcOut)
Convert the character array pszTcIn (like "10:02:22:12") to a frame count as specified by dwFlags |
long |
tc2Frame(java.lang.String strTcIn,
int dwFlags,
long dwTcOut)
Convert a time code string (like "10:02:22:12") to a frame count |
int |
tc2Maximum(int dwFlags)
Returns the maximum number of frames possible in a given time code type as frames or fields. |
char[] |
tc2String(long dwTcIn,
int dwFlags,
char[] pszTcOut)
Convert the frame count dwTcIn to the string pszTcOut as specified by dwFlags |
int |
ub2String(int dwUbIn,
int dwFlags,
byte[] pszUbOut)
Convert the numeric userbits in dwUbIn to the byte array pszUbOut as specified by dwFlags |
int |
ub2Value(byte[] pszUbIn,
int dwFlags,
int dwUbOut)
Convert the user bit hex string in pszUbIn to the numberic value in dwUbOut |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public java.lang.String szTc
public static final int TC2_MIN_STRING_SIZE
public static final int TC2_TCTYPE_MASK
public static final int TC2_TCTYPE_FILM
public static final char TC2_MARK_FILM
public static final char TC2_CHAR_FILM
public static final int TC2_TCTYPE_NDF
public static final char TC2_MARK_NDF
public static final char TC2_CHAR_NDF
public static final int TC2_TCTYPE_DF
public static final char TC2_MARK_DF
public static final char TC2_CHAR_DF
public static final int TC2_TCTYPE_PAL
public static final char TC2_MARK_PAL
public static final char TC2_CHAR_PAL
public static final int TC2_TCTYPE_50
public static final char TC2_MARK_50
public static final char TC2_CHAR_50
public static final int TC2_TCTYPE_5994
public static final char TC2_MARK_5994
public static final char TC2_CHAR_5994
public static final int TC2_TCTYPE_60
public static final char TC2_MARK_60
public static final char TC2_CHAR_60
public static final int TC2_TCTYPE_NTSCFILM
public static final char TC2_MARK_NTSCFILM
public static final char TC2_CHAR_NTSCFILM
public static final int TC2_TCTYPE_2398
public static final char TC2_MARK_2398
public static final char TC2_CHAR_2398
public static final int TC2_TCTYPE_100
public static final char TC2_MARK_100
public static final char TC2_CHAR_100
public static final int TC2_FTYPE_FIELD
public static final int TC2_STRTYPE_MASK
public static final int TC2_STRTYPE_ASCII
public static final int TC2_STRTYPE_BCD
public static final int TC2_STRTYPE_HEX
public static final int TC2_STRTYPE_GOP
public static final int TC2_STRTYPE_INVERT
public static final int TC2_STRTYPE_OVER_24_HOUR
public static final int TC2_STREXT_MASK
public static final int TC2_STREXT_MARKS
public static final int TC2_STREXT_LEADING
public static final int TC2_STREXT_TYPE
public static final int TC2_STREXT_ALLCOLON
public static final int TC2_STREXT_FLAG
public static final int TC2_STREXT_CF
public static final int TC2_STREXT_MAX30
public static final int TC2_STREXT_ISBSTR
public static final int TC2_STREXT_SHIFT7
public static final int TC2_STREXT_SAVEBITS
static final int TC2_ILLEGAL
static final int TC2_POS_HOURS
static final int TC2_POS_MINUTES
static final int TC2_POS_SECONDS
static final int TC2_POS_FRAMES
static final int TC2_TCFLAG_DF
static final int TC2_TCFLAG_CF
static final int TC2_HOUR_NDF
static final int TC2_HOUR_DROP
static final int TC2_HOUR_PAL
static final int TC2_HOUR_FILM
static final int TC2_HOUR_50
static final int TC2_HOUR_5994
static final int TC2_HOUR_60
static final int TC2_HOUR_100
static final int TC2_MINUTE_NDF
static final int TC2_TENMIN_DROP
static final int TC2_MINUTE_DROP
static final int TC2_MINUTE_PAL
static final int TC2_MINUTE_FILM
static final int TC2_MINUTE_50
static final int TC2_FIVEMIN_5994
static final int TC2_MINUTE_5994
static final int TC2_MINUTE_60
static final int TC2_MINUTE_100
static final int TC2_SECOND_NDF
static final int TC2_SECOND_DROP
static final int TC2_SECOND_PAL
static final int TC2_SECOND_FILM
static final int TC2_SECOND_50
static final int TC2_SECOND_5994
static final int TC2_SECOND_60
static final int TC2_SECOND_100
static final int TC2_NTSCFILM_50SECDROP
Constructor Detail |
public TCXlat()
Method Detail |
public int tc2Maximum(int dwFlags)
dwFlags
- int Time code type flags (TC2_TCTYPE_xxx) and optional
TC2_FTYPE_FIELD flag.
public char[] tc2String(long dwTcIn, int dwFlags, char[] pszTcOut)
dwTcIn
- long number of frames, zero baseddwFlags
- int TC2_TCTYPE, TC2_STREXT and other TC2 formatring flagspszTcOut
- char[] String legacy representation of the frame time code
public long tc2Frame(java.lang.String strTcIn, int dwFlags, long dwTcOut)
strTcIn
- String the time code stringdwFlags
- int TC2_TCTYPE_xxx time code type (DF, NDF, PAL, etc)dwTcOut
- long legacy frame count out
public long tc2Frame(char[] pszTcIn, int dwFlags, long dwTcOut)
pszTcIn
- char[] String the time code stringdwFlags
- int TC2_TCTYPE_xxx time code type (DF, NDF, PAL, etc)dwTcOut
- long legacy frame count out
public int ub2String(int dwUbIn, int dwFlags, byte[] pszUbOut)
dwUbIn
- int user bits numberic valuedwFlags
- int TC2_flags, not currently usedpszUbOut
- byte[] string character output
public int ub2Value(byte[] pszUbIn, int dwFlags, int dwUbOut)
pszUbIn
- byte[] Hex string (like "A034C8D2")dwFlags
- int TC2_flags, not currently useddwUbOut
- int legacy numeric value
public java.lang.String getTCType(long dwTcType)
dwTcType
- long TC2_TCTYPE_xxx flag
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |