|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--quicktime.QTObject | +--quicktime.util.QTPointerRef | +--quicktime.streaming.MediaParams
This class provides a collection of parameters that specify the media contents of a presentation object
Field Summary | |
static int |
kNativeSize
This is the size of this class |
Fields inherited from interface quicktime.jdirect.QuickTimeLib |
JDirect_MacOSX, libraryInstance, name |
Constructor Summary | |
MediaParams()
Constructs the class with a reasonable default values: Width and Height are set to 0 Matrix is set to the Identity Matrix The gdHandle is set to the Main Device The graphicsMode is set to ditherCopy The opColor is set to black Right and left volumes are set to their maximums LevelMeteringEnabled is set to false |
|
MediaParams(QDDimension dim,
Matrix matrix,
QDGraphics g,
int lVol,
int rVol,
int bassLvl,
int trebLvl)
Creates a MediaParams object |
|
MediaParams(QDDimension dim,
QDGraphics g)
Creates a MediaParams object from a dimension and gWorld |
Method Summary | |
int |
getBassLevel()
gets the bass level of the sound media |
Region |
getClip()
gets the clip region of the video component |
byte[] |
getFrequencyBands()
gets the frequency bands associated with the sound media |
int |
getFrequencyBandsCount()
gets the number of frequency bands used by the sound media |
GDevice |
getGDHandle()
gets the graphics device associated with the video component |
int |
getGraphicsMode()
gets the graphics mode of the video component |
QDGraphics |
getGWorld()
gets the graphics world of the video component |
float |
getHeight()
gets the height of the video component |
int |
getLeftVolume()
gets the left volume of the sound media |
Matrix |
getMatrix()
gets the matrix of the video component |
QDColor |
getOpColor()
gets the operand color of the graphics mode |
int |
getRightVolume()
gets the right volume of the sound media |
int |
getTrebleLevel()
gets the treble level of the sound media |
float |
getWidth()
gets the width of the video component |
boolean |
isLevelMeteringEnabled()
returns true if level metering is enabled |
void |
setBassLevel(int bassLvl)
Sets the bass level of the sound media |
void |
setClip(Region clip)
Sets the clip region of the video component |
void |
setFrequencyBands(QTPointer bands)
Sets the frequency bands assoicated with the sound media |
void |
setGDHandle(GDevice gdh)
Sets the graphics device used by the video media |
void |
setGraphicsMode(int graphicsMode)
Sets the graphics display mode of the video component |
void |
setGWorld(QDGraphics g)
Sets the offscreen graphics world used by the video media |
void |
setHeight(float h)
Sets the height of the video component |
void |
setLeftVolume(int leftVol)
Sets the left volume of the sound |
void |
setLevelMeteringEnabled(boolean meteringEnabled)
Determines whethere the level metering is enabled or disabled |
void |
setMatrix(Matrix m)
Sets the matrix associated with the video component |
void |
setOpColor(QDColor color)
Sets the operand color associated with the graphics mode of the video component |
void |
setRightVolume(int rightVol)
Sets the right volume of the sound |
void |
setTrebleLevel(int trebleLvl)
Sets the treble level of the sound media |
void |
setVolumes(int left,
int right)
Sets the right and left volumes of the sound media |
void |
setWidth(float w)
Sets the width of the video component |
java.lang.String |
toString()
Returns a string representation of this object. |
Methods inherited from class quicktime.util.QTPointerRef |
copyFromArray, copyFromArray, copyFromArray, copyFromArray, copyFromArray, copyFromArray, copyFromArray, copyToArray, copyToArray, copyToArray, copyToArray, copyToArray, copyToArray, copyToArray, getBytes, getSize |
Methods inherited from class quicktime.QTObject |
disposeQTObject, equals, ID |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int kNativeSize
Constructor Detail |
public MediaParams() throws QTException
public MediaParams(QDDimension dim, QDGraphics g) throws QTException
dim
- QDDimension representing height and width of media objectg
- QDGraphics object representing the gWorld where the Media will be displayedpublic MediaParams(QDDimension dim, Matrix matrix, QDGraphics g, int lVol, int rVol, int bassLvl, int trebLvl) throws QTException
dim
- QDDimension representing height and width of media objectmatrix
- Matrix associated with the video presenterg
- QDGraphics object representing the gWorld where the Media will be displayedlVol
- left volume of the audiorVol
- right volume of the audiobassLvl
- bass level of the audiotrebLvl
- treble level of the audioMethod Detail |
public void setWidth(float w)
w
- widthpublic float getWidth()
public void setHeight(float h)
g
- heightpublic float getHeight()
public void setMatrix(Matrix m)
m
- Matrixpublic Matrix getMatrix()
public void setGWorld(QDGraphics g)
g
- offscreen graphics worldpublic QDGraphics getGWorld()
public void setGDHandle(GDevice gdh)
gdh
- graphics devicepublic GDevice getGDHandle()
public void setClip(Region clip)
clip
- video clip regionpublic Region getClip()
public void setGraphicsMode(int graphicsMode)
graphicsMode
- graphics modepublic int getGraphicsMode()
public void setOpColor(QDColor color)
color
- operand colorpublic QDColor getOpColor()
public void setLeftVolume(int leftVol)
leftVol
- left volumepublic int getLeftVolume()
public void setRightVolume(int rightVol)
rightVol
- right volumepublic int getRightVolume()
public void setVolumes(int left, int right)
left
- left volumeright
- right volumepublic void setBassLevel(int bassLvl)
bassLvl
- base levelpublic int getBassLevel()
public void setTrebleLevel(int trebleLvl)
trebleLvl
- treble levelpublic int getTrebleLevel()
public void setFrequencyBands(QTPointer bands) throws QTException
bands
- frequency bandspublic int getFrequencyBandsCount()
public byte[] getFrequencyBands()
public void setLevelMeteringEnabled(boolean meteringEnabled)
meteringEnabled
- true if metering is enabledpublic boolean isLevelMeteringEnabled()
public java.lang.String toString()
toString
in class QTPointerRef
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |