|
Java DTV API 1.3 18-Nov-2009 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface VideoPresentationControl
Provides the means to query and manipulate the actual presentation of the Video.
Method Summary | |
---|---|
void |
addVideoPresentationListener(VideoPresentationListener listener)
Add a listener to the VideoPresentationControl. |
Rectangle |
getActiveVideoOnScreenRectangle()
Returns the rectangle of the active video on the screen, letterboxing or pillarboxing are not part of the Rectangle. |
Rectangle |
getActiveVideoRectangle()
Returns the rectangle that covers the active video area, letterboxing or pillarboxing are not part of the Rectangle. |
Dimension |
getActualVideoSize()
This method allows the application to query the actual dimension of the presented video. |
Dimension |
getDecodedVideoSize()
Returns the dimension of the size of the decoded video as it is presented to the user. |
float[] |
getHorizontalScalingFactors()
Returns the values of the supported discrete horizontal scaling factors in case no arbitrary horizontal scaling is supported. |
Dimension |
getInputSize()
Returns the dimension of the video before any scaling, clipping and decoding. |
Rectangle |
getTotalVideoRectangle()
This method returns the entire rectangle used for the video in the broadcast stream including bars for letterboxing and pillarboxing (other than getActiveVideoRectangle ). |
float[] |
getVerticalScalingFactors()
Returns the values of the supported discrete vertical scaling factors in case no arbitrary vertical scaling is supported. |
void |
removeVideoPresentationListener(VideoPresentationListener listener)
Removes a VideoFormatListener object. |
Methods inherited from interface javax.media.Control |
---|
getControlComponent |
Method Detail |
---|
Rectangle getActiveVideoRectangle()
Rectangle getActiveVideoOnScreenRectangle()
getActiveVideoRectangle
),
it can just be smaller than the screen, and - if having an offset - this
offset is always positive.
Rectangle getTotalVideoRectangle()
getActiveVideoRectangle
).
Any scaling is taking into account.
The rectangle can be smaller or even larger than the screen, and it may
have an offset. This offset can even be negative, if the top left corner
of the active video is left and/or top of the screen's top left corner.
Dimension getInputSize()
Dimension getDecodedVideoSize()
getInputSize
the result takes
decoding into account. Scaling and clipping is not taken into
account yet.
Dimension getActualVideoSize()
getDecodedVideoSize
the result takes into account not only decoding, but also effects like
clipping and scaling.
float[] getHorizontalScalingFactors()
float[] getVerticalScalingFactors()
void addVideoPresentationListener(VideoPresentationListener listener)
listener
- The object implementing the listener interface to be
added to the Control.removeVideoPresentationListener(com.sun.dtv.media.format.VideoPresentationListener)
void removeVideoPresentationListener(VideoPresentationListener listener)
listener
- The object to be removed from the Control.addVideoPresentationListener(com.sun.dtv.media.format.VideoPresentationListener)
|
Java DTV API 1.3 18-Nov-2009 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |