Java DTV API 1.3
18-Nov-2009

com.sun.dtv.media.format
Class Transformation

java.lang.Object
  extended by com.sun.dtv.media.format.Transformation

public class Transformation
extends Object

This class represents a container for transformation information for a video transformation. It is used as an input to the VideoFormatControl. Clipping, scaling and position of the video. All transformations have to be applied after ETR154 up-scaling.


Constructor Summary
Transformation(Rectangle clippingRectangle, float horizontalScalingFactor, float verticalScalingFactor, Point position)
          Creates a new instance of a Transformation for a video stream.
 
Method Summary
 float getHorizontalScalingFactor()
          Returns the horizontal scaling factor.
 Point getPosition()
          Returns the position of the video.
 Rectangle getRegion()
          This method returns a rectangle giving the display region of the video.
 float getVerticalScalingFactor()
          Returns the vertical scaling factor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Transformation

public Transformation(Rectangle clippingRectangle,
                      float horizontalScalingFactor,
                      float verticalScalingFactor,
                      Point position)
Creates a new instance of a Transformation for a video stream.

Parameters:
clippingRectangle - defines the clipping rectangle for the decoded video after ETR154 up-sampling, if any; or null if clipping is not supported
horizontalScalingFactor - the horizontal scaling factor for this video
verticalScalingFactor - the vertical scaling factor for this video
position - the position on the screen for the video
Method Detail

getRegion

public Rectangle getRegion()
This method returns a rectangle giving the display region of the video. If clipping is not supported, the returned value is null.

Returns:
rectangle of the decoded video that will be displayed after ETR154 up-sampling if any, or null if clipping is not supported

getHorizontalScalingFactor

public float getHorizontalScalingFactor()
Returns the horizontal scaling factor.

Returns:
the horizontal scaling factor

getVerticalScalingFactor

public float getVerticalScalingFactor()
Returns the vertical scaling factor.

Returns:
the vertical scaling factor

getPosition

public Point getPosition()
Returns the position of the video.

Returns:
the location of the video on the screen coordinate space.

Java DTV API 1.3
18-Nov-2009

Copyright © 2008-2009 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, California 95054, U.S.A. All rights reserved.

U.S. Government Rights - Commercial software. Government users are subject to the Sun Microsystems, Inc. standard license agreement and applicable provisions of the FAR and its supplements. Sun, Sun Microsystems, the Sun logo and Java are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries.Products covered by and information contained in this service manual are controlled by U.S. Export Control laws and may be subject to the export or import laws in other countries. Nuclear, missile, chemical biological weapons or nuclear maritime end uses or end users, whether direct or indirect, are strictly prohibited. Export or reexport to countries subject to U.S. embargo or to entities identified on U.S. export exclusion lists, including, but not limited to, the denied persons and specially designated nationals lists is strictly prohibited.

DOCUMENTATION IS PROVIDED AS IS AND ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH DISCLAIMERS ARE HELD TO BE LEGALLY INVALID.

Use of this document is subject to license terms.