|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.dvb.media.VideoTransformation
VideoTransformation objects express video transformations, i.e. the clipping, the horizontal and vertical scaling and the position of the video. All transformations are to be applied after possible ETR154 up-sampling.
Note: Instances of VideoTransformation can represent pan and scan, but an application cannot create such instances itself. An application can get a VideoTransformation representing pan and scan, by calling the VideoFormatControl.getVideoTransformation() method with the pan and scan Decoder Format Conversion constant.
Constructor Summary | |
VideoTransformation()
Creates a VideoTransformation object with default parameters. |
|
VideoTransformation(java.awt.Rectangle clipRect,
float horizontalScalingFactor,
float verticalScalingFactor,
HScreenPoint location)
Creates a VideoTransformation object with the supplied parameters. |
Method Summary | |
java.awt.Rectangle |
getClipRegion()
Gets the clipping region. |
float[] |
getScalingFactors()
Gets the horizontal and vertical scaling factors. |
HScreenPoint |
getVideoPosition()
Returns the video position. |
boolean |
isPanAndScan()
Returns whether this video transformation represents pan and scan. |
void |
setClipRegion(java.awt.Rectangle clipRect)
Sets the clipping region. |
void |
setScalingFactors(float horizontalScalingFactor,
float verticalScalingFactor)
Sets the horizontal and vertical scaling factors. |
void |
setVideoPosition(HScreenPoint location)
Sets the video position. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public VideoTransformation()
public VideoTransformation(java.awt.Rectangle clipRect, float horizontalScalingFactor, float verticalScalingFactor, HScreenPoint location)
clipRect
- the bounding box of the clipping region. The coordinate
space used to express the region is that of the decoded video after possible
ETR154 up-sampling. A non-null ClipRect enables clipping. A null ClipRect disables it.horizontalScalingFactor
- the horizontal scaling factor.verticalScalingFactor
- the vertical scaling factor.location
- the location of the video on the screen in the
normalised coordinate space.Method Detail |
public void setClipRegion(java.awt.Rectangle clipRect)
If this video transformation represents pan and scan, then it will no longer represent pan and scan when this method is called. A non-null ClipRect enables clipping. A null ClipRect disables it.
clipRect
- the bounding box of the clipping region. The coordinate
space used to express the region is that of the decoded video after possible
ETR154 up-sampling.public java.awt.Rectangle getClipRegion()
public void setScalingFactors(float horizontalScalingFactor, float verticalScalingFactor)
horizontalScalingFactor
- the horizontal scaling factor.verticalScalingFactor
- the vertical scaling factor.public float[] getScalingFactors()
public void setVideoPosition(HScreenPoint location)
location
- the location of the video on the screen in the
normalised coordinate space.public HScreenPoint getVideoPosition()
public boolean isPanAndScan()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |