public class VideoTransformation extends Object
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 and Description |
|---|
VideoTransformation()
Creates a VideoTransformation object with default parameters.
|
VideoTransformation(Rectangle clipRect,
float horizontalScalingFactor,
float verticalScalingFactor,
HScreenPoint location)
Creates a VideoTransformation object with the supplied
parameters.
|
| Modifier and Type | Method and Description |
|---|---|
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(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.
|
public VideoTransformation()
public VideoTransformation(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.public void setClipRegion(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 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()
Copyright © 2012 code4tv.com. All Rights Reserved.