railo.runtime.video
Class VideoProfileImpl

java.lang.Object
  extended by railo.runtime.video.VideoProfileImpl
All Implemented Interfaces:
VideoProfile

public class VideoProfileImpl
extends Object
implements VideoProfile


Field Summary
 
Fields inherited from interface railo.runtime.video.VideoProfile
ASPECT_RATIO_1_33333, ASPECT_RATIO_1_77777, ASPECT_RATIO_16_9, ASPECT_RATIO_4_3, SCAN_MODE_INTERLACED, SCAN_MODE_PROGRESSIV, TYPE_4XM, TYPE_8BPS, TYPE_AAC, TYPE_AASC, TYPE_AC3, TYPE_ADPCM_4XM, TYPE_ADPCM_ADX, TYPE_ADPCM_CT, TYPE_ADPCM_EA, TYPE_ADPCM_IMA_DK3, TYPE_ADPCM_IMA_DK4, TYPE_ADPCM_IMA_QT, TYPE_ADPCM_IMA_SMJPEG, TYPE_ADPCM_IMA_WAV, TYPE_ADPCM_IMA_WS, TYPE_ADPCM_MS, TYPE_ADPCM_SBPRO_2, TYPE_ADPCM_SBPRO_3, TYPE_ADPCM_SBPRO_4, TYPE_ADPCM_SWF, TYPE_ADPCM_XA, TYPE_ADPCM_YAMAHA, TYPE_ALAC, TYPE_AMR_NB, TYPE_AMR_WB, TYPE_ASV1, TYPE_ASV2, TYPE_AVS, TYPE_BMP, TYPE_CAMSTUDIO, TYPE_CAMTASIA, TYPE_CINEPAK, TYPE_CLJR, TYPE_COOK, TYPE_CYUV, TYPE_DVBSUB, TYPE_DVDSUB, TYPE_DVVIDEO, TYPE_FFV1, TYPE_FFVHUFF, TYPE_FLAC, TYPE_FLIC, TYPE_FLV, TYPE_FRAPS, TYPE_G726, TYPE_H261, TYPE_H263, TYPE_H263I, TYPE_H263P, TYPE_H264, TYPE_HUFFYUV, TYPE_IDCINVIDEO, TYPE_INDEO2, TYPE_INDEO3, TYPE_INTERPLAY_DPCM, TYPE_INTERPLAYVIDEO, TYPE_JPEGLS, TYPE_KMVC, TYPE_LJPEG, TYPE_LOCO, TYPE_MACE3, TYPE_MACE6, TYPE_MDEC, TYPE_MJPEG, TYPE_MJPEGB, TYPE_MMVIDEO, TYPE_MP2, TYPE_MP3, TYPE_MP3ADU, TYPE_MP3ON4, TYPE_MPEG1VIDEO, TYPE_MPEG2VIDEO, TYPE_MPEG4, TYPE_MPEG4AAC, TYPE_MPEGVIDEO, TYPE_MSMPEG4, TYPE_MSMPEG4V1, TYPE_MSMPEG4V2, TYPE_MSRLE, TYPE_MSVIDEO1, TYPE_MSZH, TYPE_NUV, TYPE_PAM, TYPE_PBM, TYPE_PCM_ALAW, TYPE_PCM_MULAW, TYPE_PCM_S16BE, TYPE_PCM_S16LE, TYPE_PCM_S24BE, TYPE_PCM_S24DAUD, TYPE_PCM_S24LE, TYPE_PCM_S32BE, TYPE_PCM_S32LE, TYPE_PCM_S8, TYPE_PCM_U16BE, TYPE_PCM_U16LE, TYPE_PCM_U24BE, TYPE_PCM_U24LE, TYPE_PCM_U32BE, TYPE_PCM_U32LE, TYPE_PCM_U8, TYPE_PGM, TYPE_PGMYUV, TYPE_PNG, TYPE_PPM, TYPE_QDM2, TYPE_QDRAW, TYPE_QPEG, TYPE_QTRLE, TYPE_RAWVIDEO, TYPE_REAL_144, TYPE_REAL_288, TYPE_ROQ_DPCM, TYPE_ROQVIDEO, TYPE_RPZA, TYPE_RV10, TYPE_RV20, TYPE_SHORTEN, TYPE_SMACKAUD, TYPE_SMACKVID, TYPE_SMC, TYPE_SNOW, TYPE_SOL_DPCM, TYPE_SONIC, TYPE_SONICLS, TYPE_SP5X, TYPE_SVQ1, TYPE_SVQ3, TYPE_THEORA, TYPE_TRUEMOTION1, TYPE_TRUEMOTION2, TYPE_TRUESPEECH, TYPE_TTA, TYPE_ULTIMOTION, TYPE_VC9, TYPE_VCR1, TYPE_VMDAUDIO, TYPE_VMDVIDEO, TYPE_VORBIS, TYPE_VP3, TYPE_VQAVIDEO, TYPE_WMAV1, TYPE_WMAV2, TYPE_WMV1, TYPE_WMV2, TYPE_WNV1, TYPE_WS_SND1, TYPE_XAN_DPCM, TYPE_XAN_WC3, TYPE_XL, TYPE_XVID, TYPE_ZLIB, TYPE_ZMBV
 
Constructor Summary
VideoProfileImpl()
           
VideoProfileImpl(String type, String dimension, long audioBitrate, long videoBitrate, long videoBitrateMin, long videoBitrateMax, long videoBitrateTolerance, double framerate, int aspectRatio, int scanMode, String audioCodec, String videoCodec, double audioSamplerate)
           
 
Method Summary
 VideoProfile duplicate()
           
 int getAspectRatio()
           
 double getAudioBitrate()
           
 String getAudioCodec()
           
 double getAudioSamplerate()
           
 long getBufferSize()
           
 String getDimension()
           
 double getFramerate()
           
 int getPass()
           
 int getScanMode()
           
 String getType()
           
 double getVideoBitrate()
           
 double getVideoBitrateMax()
           
 double getVideoBitrateMin()
           
 double getVideoBitrateTolerance()
           
 String getVideoCodec()
           
 void setAspectRatio(int aspectRatio)
          sets the aspectRatio (VideoOutput.ASPECT_RATIO_xxx)
 void setAspectRatio(String strAspectRatio)
           
 void setAudioBitrate(long audioBitrate)
           
 void setAudioCodec(String codec)
           
 void setAudioSamplerate(double audioSamplerate)
           
 void setBufferSize(long bufferSize)
           
 void setDimension(int width, int height)
           
 void setFramerate(double framerate)
          sets the framerate (default 25)
 void setPass(int pass)
           
 void setScanMode(int scanMode)
           
 void setType(String type)
          set the type of the output format (see constants "TYPE_xxx" of this class)
 void setVideoBitrate(long bitrate)
          set video bitrate in kbit/s (default 200)
 void setVideoBitrateMax(long bitrateMax)
          set max video bitrate tolerance (in kbit/s)
 void setVideoBitrateMin(long bitrateMin)
          set min video bitrate tolerance (in kbit/s)
 void setVideoBitrateTolerance(long bitrateTolerance)
          set video bitrate tolerance (in kbit/s)
 void setVideoCodec(String codec)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VideoProfileImpl

public VideoProfileImpl(String type,
                        String dimension,
                        long audioBitrate,
                        long videoBitrate,
                        long videoBitrateMin,
                        long videoBitrateMax,
                        long videoBitrateTolerance,
                        double framerate,
                        int aspectRatio,
                        int scanMode,
                        String audioCodec,
                        String videoCodec,
                        double audioSamplerate)

VideoProfileImpl

public VideoProfileImpl()
Method Detail

duplicate

public VideoProfile duplicate()
Specified by:
duplicate in interface VideoProfile

setType

public void setType(String type)
set the type of the output format (see constants "TYPE_xxx" of this class)

Specified by:
setType in interface VideoProfile
Parameters:
type -

getType

public String getType()
Specified by:
getType in interface VideoProfile
Returns:
the type

getDimension

public String getDimension()
Specified by:
getDimension in interface VideoProfile
Returns:
the dimension

setDimension

public void setDimension(int width,
                         int height)
Specified by:
setDimension in interface VideoProfile

getVideoBitrate

public double getVideoBitrate()
Specified by:
getVideoBitrate in interface VideoProfile
Returns:
the bitrate

setVideoBitrate

public void setVideoBitrate(long bitrate)
set video bitrate in kbit/s (default 200)

Specified by:
setVideoBitrate in interface VideoProfile
Parameters:
bitrate - the bitrate to set

getFramerate

public double getFramerate()
Specified by:
getFramerate in interface VideoProfile
Returns:
the framerate

setFramerate

public void setFramerate(double framerate)
sets the framerate (default 25)

Specified by:
setFramerate in interface VideoProfile
Parameters:
framerate - the framerate to set

getAspectRatio

public int getAspectRatio()
Specified by:
getAspectRatio in interface VideoProfile
Returns:
the aspectRatio

setAspectRatio

public void setAspectRatio(int aspectRatio)
sets the aspectRatio (VideoOutput.ASPECT_RATIO_xxx)

Specified by:
setAspectRatio in interface VideoProfile
Parameters:
aspectRatio - the aspectRatio to set

setAspectRatio

public void setAspectRatio(String strAspectRatio)
Specified by:
setAspectRatio in interface VideoProfile

getVideoBitrateMin

public double getVideoBitrateMin()
Specified by:
getVideoBitrateMin in interface VideoProfile
Returns:
the bitrateMin

setVideoBitrateMin

public void setVideoBitrateMin(long bitrateMin)
set min video bitrate tolerance (in kbit/s)

Specified by:
setVideoBitrateMin in interface VideoProfile
Parameters:
bitrateMin - the bitrateMin to set

getVideoBitrateMax

public double getVideoBitrateMax()
Specified by:
getVideoBitrateMax in interface VideoProfile
Returns:
the bitrateMax

setVideoBitrateMax

public void setVideoBitrateMax(long bitrateMax)
set max video bitrate tolerance (in kbit/s)

Specified by:
setVideoBitrateMax in interface VideoProfile
Parameters:
bitrateMax - the bitrateMax to set

getVideoBitrateTolerance

public double getVideoBitrateTolerance()
Specified by:
getVideoBitrateTolerance in interface VideoProfile
Returns:
the bitrateTolerance

setVideoBitrateTolerance

public void setVideoBitrateTolerance(long bitrateTolerance)
set video bitrate tolerance (in kbit/s)

Specified by:
setVideoBitrateTolerance in interface VideoProfile
Parameters:
bitrateTolerance - the bitrateTolerance to set

getAudioBitrate

public double getAudioBitrate()
Specified by:
getAudioBitrate in interface VideoProfile
Returns:
the audioBitrate

getScanMode

public int getScanMode()
Specified by:
getScanMode in interface VideoProfile
Returns:
the scanMode

setScanMode

public void setScanMode(int scanMode)
Specified by:
setScanMode in interface VideoProfile
Parameters:
scanMode - the scanMode to set

setAudioBitrate

public void setAudioBitrate(long audioBitrate)
Specified by:
setAudioBitrate in interface VideoProfile
Parameters:
audioBitrate - the audioBitrate to set

setAudioCodec

public void setAudioCodec(String codec)
Specified by:
setAudioCodec in interface VideoProfile

setVideoCodec

public void setVideoCodec(String codec)
Specified by:
setVideoCodec in interface VideoProfile

getVideoCodec

public String getVideoCodec()
Specified by:
getVideoCodec in interface VideoProfile
Returns:
the videoCodec

getAudioCodec

public String getAudioCodec()
Specified by:
getAudioCodec in interface VideoProfile
Returns:
the audioCodec

getAudioSamplerate

public double getAudioSamplerate()
Specified by:
getAudioSamplerate in interface VideoProfile
Returns:
the audioSamplerate

setAudioSamplerate

public void setAudioSamplerate(double audioSamplerate)
Specified by:
setAudioSamplerate in interface VideoProfile
Parameters:
audioSamplerate - the audioSamplerate to set

getBufferSize

public long getBufferSize()
Specified by:
getBufferSize in interface VideoProfile
Returns:
the bufferSize

setBufferSize

public void setBufferSize(long bufferSize)
Specified by:
setBufferSize in interface VideoProfile
Parameters:
bufferSize - the bufferSize to set

getPass

public int getPass()
Specified by:
getPass in interface VideoProfile
Returns:
the pass

setPass

public void setPass(int pass)
Specified by:
setPass in interface VideoProfile
Parameters:
pass - the pass to set


Copyright © 2012 Railo