org.dvb.media
Class Codecs

java.lang.Object
  extended by org.dvb.media.Codecs

public class Codecs
extends java.lang.Object

Class providing access to information on video and audio formats that an GEM terminal can decode.

Since:
MHP 1.2

Method Summary
static java.lang.String[] getAudioFormats()
          Return the list of audio formats that can be decoded.
static java.lang.String[] getVideoFormats()
          Return the list of video formats that can be decoded.
static boolean isAudioFormatSupported(java.lang.String term)
          Query if a specific audio format can be decoded.
static boolean isVideoFormatSupported(java.lang.String term)
          Query if a specific video format can be decoded.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getVideoFormats

public static java.lang.String[] getVideoFormats()
Return the list of video formats that can be decoded. Formats are encoded as MPEG-7 term IDs as extended by the DVB IPI handbook. e.g. MPEG-2 video, main profile, main level is encoded as "2.2.2".

Returns:
an array of video formats

isVideoFormatSupported

public static boolean isVideoFormatSupported(java.lang.String term)
Query if a specific video format can be decoded. Formats are encoded as MPEG-7 term IDs as extended by the DVB IPI handbook. e.g. MPEG-2 video, main profile, main level is encoded as "2.2.2".

Parameters:
term - a video format
Returns:
true if the specified format can be decoded otherwise false

getAudioFormats

public static java.lang.String[] getAudioFormats()
Return the list of audio formats that can be decoded. Formats are encoded as MPEG-7 term IDs as extended by the DVB IPI handbook. e.g. MPEG-1 layer 3 audio is encoded as "3.3".

Returns:
an array of audio formats

isAudioFormatSupported

public static boolean isAudioFormatSupported(java.lang.String term)
Query if a specific audio format can be decoded. Formats are encoded as MPEG-7 term IDs as extended by the DVB IPI handbook. e.g. MPEG-1 layer 3 audio is encoded as "3.3".

Parameters:
term - a audio format
Returns:
true if the specified format can be decoded otherwise false