org.mobicents.media.server.spi.format
Class FormatFactory

java.lang.Object
  extended by org.mobicents.media.server.spi.format.FormatFactory

public class FormatFactory
extends Object

Constructs format descriptor object.

Author:
kulikov

Constructor Summary
FormatFactory()
           
 
Method Summary
static AudioFormat createAudioFormat(EncodingName name)
          Creates new audio format descriptor.
static AudioFormat createAudioFormat(EncodingName name, int sampleRate, int sampleSize, int channels)
          Creates new format descriptor
static AudioFormat createAudioFormat(String name, int sampleRate)
          Creates new format descriptor
static AudioFormat createAudioFormat(String name, int sampleRate, int sampleSize, int channels)
          Creates new format descriptor
static VideoFormat createVideoFormat(EncodingName name)
          Creates new format descriptor.
static VideoFormat createVideoFormat(EncodingName name, int frameRate)
          Creates new format descriptor.
static VideoFormat createVideoFormat(String name)
          Creates new format descriptor.
static VideoFormat createVideoFormat(String name, int frameRate)
          Creates new format descriptor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormatFactory

public FormatFactory()
Method Detail

createAudioFormat

public static AudioFormat createAudioFormat(EncodingName name)
Creates new audio format descriptor.

Parameters:
name - the encoding name.

createAudioFormat

public static AudioFormat createAudioFormat(EncodingName name,
                                            int sampleRate,
                                            int sampleSize,
                                            int channels)
Creates new format descriptor

Parameters:
name - the encoding
sampleRate - sample rate value in Hertz
sampleSize - sample size in bits
channels - number of channels

createAudioFormat

public static AudioFormat createAudioFormat(String name,
                                            int sampleRate,
                                            int sampleSize,
                                            int channels)
Creates new format descriptor

Parameters:
name - the encoding
sampleRate - sample rate value in Hertz
sampleSize - sample size in bits
channels - number of channels

createAudioFormat

public static AudioFormat createAudioFormat(String name,
                                            int sampleRate)
Creates new format descriptor

Parameters:
name - the encoding
sampleRate - sample rate value in Hertz

createVideoFormat

public static VideoFormat createVideoFormat(EncodingName name,
                                            int frameRate)
Creates new format descriptor.

Parameters:
name - format encoding name.
frameRate - the number of frames per second.

createVideoFormat

public static VideoFormat createVideoFormat(EncodingName name)
Creates new format descriptor.

Parameters:
name - format encoding name.

createVideoFormat

public static VideoFormat createVideoFormat(String name)
Creates new format descriptor.

Parameters:
name - format encoding name.

createVideoFormat

public static VideoFormat createVideoFormat(String name,
                                            int frameRate)
Creates new format descriptor.

Parameters:
name - format encoding name.
frameRate - the number of frames per second.


Copyright © 2011. All Rights Reserved.