lumis.portal.file.transformation
Class VideoDimensionTransformation

Package class diagram package VideoDimensionTransformation
java.lang.Object
  extended by lumis.portal.file.transformation.VideoDimensionTransformation
All Implemented Interfaces:
ITransformation

public class VideoDimensionTransformation
extends Object
implements ITransformation

Performs the the video scale transformation.
Scale transformations are based on two parameters:

Only this parameters are supported by scale transformations, only reductions are supported and the proportion is always keep.

Since:
6.1.0

Constructor Summary
VideoDimensionTransformation(InputStream content, int width, int height, String format)
          The constructor of class.
 
Method Summary
 void transform(OutputStream outputStream)
          Performs the file transformation using the outputStream parameter as target of the file transformations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VideoDimensionTransformation

public VideoDimensionTransformation(InputStream content,
                                    int width,
                                    int height,
                                    String format)
The constructor of class. The content is the source of transformation. the width parameter is the new video width, and the height is the new video height after the end of transformation.

Parameters:
content - the source of transformation.
width - the new width.
height - the new height.
Since:
6.1.0
Method Detail

transform

public void transform(OutputStream outputStream)
               throws PortalException
Description copied from interface: ITransformation
Performs the file transformation using the outputStream parameter as target of the file transformations.

Specified by:
transform in interface ITransformation
Parameters:
outputStream - the writer to be transformed.
Throws:
PortalException


Lumisportal  6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.