|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdrastic.mCmdIF.VidUtil
Title: VidUtil
Description: QuickClipXO video audio utility structures and functions
Copyright: Copyright © 2003
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
Nested Class Summary | |
(package private) class |
VidUtil.RateScale
Title: RateScale |
Field Summary | |
protected MEDIACMD |
Mcmd
|
(package private) VidUtil.RateScale |
rateScale
|
TCXlat |
tCXlat
|
Constructor Summary | |
VidUtil()
|
Method Summary | |
(package private) java.lang.String |
m_strcat(java.lang.String szDest,
java.lang.String szValue)
PORT FROM C++: For Reference Only - Do Not Use Concatinates |
double |
vidFramesPerSecD(long dwGsVidStandard,
long dwRate,
long dwScale)
Number of frames per second for a video standard |
long |
vidGetSignalFormat(long dwRate,
long dwScale,
long dwWidth,
long dwHeight,
boolean fProgressive)
Returns the nearest signal format for a particular Rate/Scale, size and p/i flag. |
long |
vidGetSizeFromToken(long dwSize)
Get a standard size as decimal value (pre shift and mask) |
long |
vidGetTCType(double ddFrameRate)
Returns the nearest TC Type for a particular frame rate |
long |
vidGetTCTypeSignalFormat(long dwGsVidStandard)
Return a time code type for a particular video standard. |
long |
vidGetTokenFromSize(long dwSize)
Get a standard size token from a decimal value (no shift returned) |
long |
vidImageSize(long dwGsVidStandard,
long[] pdwSizeX,
long[] pdwSizeY,
boolean fFieldSize)
Standard image sizes for a particular video standard. |
long |
vidMsPerFrame(long dwGsVidStandard,
long dwRate,
long dwScale)
Truncated milliseconds per frame for a vid std |
double |
vidMsPerFrameD(long dwGsVidStandard,
long dwRate,
long dwScale)
Number of milliseconds per frame for a vid std |
(package private) VidUtil.RateScale |
vidRateScale(long dwGsVidStandard,
long pdwRate,
long pdwScale)
Rate and Scale values for supported video standards |
long |
vidSignalFormatToStr20(long dwGsVidStandard,
java.lang.String szDesc)
PORT FROM C++: For Reference Only - Do Not Use Return a string description of a GS_SIGFORM_xx video standard. |
double |
vidTCFramesPerSecD(long dwTCType)
Number of frames per second for a time code type |
long |
vidTCMsPerFrame(long dwTCType)
Truncated milliseconds per frame for a time code type |
double |
vidTCMsPerFrameD(long dwTCType)
Milliseconds per frame for a time code type |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public TCXlat tCXlat
protected MEDIACMD Mcmd
VidUtil.RateScale rateScale
Constructor Detail |
public VidUtil()
Method Detail |
VidUtil.RateScale vidRateScale(long dwGsVidStandard, long pdwRate, long pdwScale)
dwGsVidStandard
- Requested video standard like GS_SIGFORM_NTSC,
GS_SIGFORM_NTSC_CCIR, GS_SIGFORM_PAL, GS_SIGFORM_1035i_30X_260MpdwRate
- VVWVIDEO dwRate - 30000, 25, 2997pdwScale
- VVWVIDEO dwScale- 1001, 1, 100
public double vidFramesPerSecD(long dwGsVidStandard, long dwRate, long dwScale)
dwGsVidStandard
- Requested video standard like GS_SIGFORM_NTSC,
GS_SIGFORM_NTSC_CCIR, GS_SIGFORM_PAL, GS_SIGFORM_1035i_30X_260MdwRate
- Rate/Scale will override vid standard, set to 0 to ignoredwScale
- Rate/Scale will override vid standard, set to 0 to ignore
public double vidMsPerFrameD(long dwGsVidStandard, long dwRate, long dwScale)
dwGsVidStandard
- Requested video standard like GS_SIGFORM_NTSC,
GS_SIGFORM_NTSC_CCIR, GS_SIGFORM_PAL, GS_SIGFORM_1035i_30X_260MdwRate
- Rate/Scale will override vid standard, set to 0 to ignoredwScale
- Rate/Scale will override vid standard, set to 0 to ignore
public long vidMsPerFrame(long dwGsVidStandard, long dwRate, long dwScale)
dwGsVidStandard
- Requested video standard like GS_SIGFORM_NTSC,
GS_SIGFORM_NTSC_CCIR, GS_SIGFORM_PAL, GS_SIGFORM_1035i_30X_260MdwRate
- Rate/Scale will override vid standard, set to 0 to ignoredwScale
- Rate/Scale will override vid standard, set to 0 to ignore
public double vidTCFramesPerSecD(long dwTCType)
dwTCType
- Requested time code standard like TC2_TCTYPE_FILM,
TC2_TCTYPE_NDF, TC2_TCTYPE_DF, TC2_TCTYPE_PAL, TC2_TCTYPE_50,
TC2_TCTYPE_5994, TC2_TCTYPE_60, TC2_TCTYPE_NTSCFILM
public long vidGetTCTypeSignalFormat(long dwGsVidStandard)
dwGsVidStandard
- long a GS_SIGFORMFRAMERATE_xxx
public double vidTCMsPerFrameD(long dwTCType)
dwTCType
- Requested time code standard like TC2_TCTYPE_FILM,
TC2_TCTYPE_NDF, TC2_TCTYPE_DF, TC2_TCTYPE_PAL, TC2_TCTYPE_50,
TC2_TCTYPE_5994, TC2_TCTYPE_60, TC2_TCTYPE_NTSCFILM
public long vidTCMsPerFrame(long dwTCType)
dwTCType
- Requested time code standard like TC2_TCTYPE_FILM,
TC2_TCTYPE_NDF, TC2_TCTYPE_DF, TC2_TCTYPE_PAL, TC2_TCTYPE_50,
TC2_TCTYPE_5994, TC2_TCTYPE_60, TC2_TCTYPE_NTSCFILM
public long vidGetSizeFromToken(long dwSize)
dwSize
- long the GS_SIGFORMSIZE_xxx
public long vidGetTokenFromSize(long dwSize)
dwSize
- long The target size
public long vidImageSize(long dwGsVidStandard, long[] pdwSizeX, long[] pdwSizeY, boolean fFieldSize)
dwGsVidStandard
- Requested video standard like GS_SIGFORM_NTSC,
GS_SIGFORM_NTSC_CCIR, GS_SIGFORM_PAL, GS_SIGFORM_1035i_30X_260MpdwSizeX
- The width of the standardpdwSizeY
- The height of the standardfFieldSize
- Return height of field instead of frame (half for
interlaced standards, same for progressive)
public long vidGetSignalFormat(long dwRate, long dwScale, long dwWidth, long dwHeight, boolean fProgressive)
dwRate
- long fps == dwRate / dwScale (eg 25/1 or 30000/1001)dwScale
- long fps == dwRate / dwScale (eg 25/1 or 30000/1001)dwWidth
- long width of the video framedwHeight
- long height of the videof ramefProgressive
- boolean is is progressive (or segmented frame)
public long vidGetTCType(double ddFrameRate)
ddFrameRate
- double standard frames per second like 23.98, 29.97, etc
public long vidSignalFormatToStr20(long dwGsVidStandard, java.lang.String szDesc)
dwGsVidStandard
- long the GS_SIGFORM_xx valueszDesc
- String the string name
java.lang.String m_strcat(java.lang.String szDest, java.lang.String szValue)
szDest
- StringszValue
- String
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |