sbTranscodingConfigurator Class Reference

#include <sbTranscodingConfigurator.h>

Inheritance diagram for sbTranscodingConfigurator:
[legend]
Collaboration diagram for sbTranscodingConfigurator:
[legend]

Public Member Functions

NS_DECL_ISUPPORTS
NS_DECL_SBITRANSCODINGCONFIGURATOR 
sbTranscodingConfigurator ()
 
- Public Member Functions inherited from sbITranscodingConfigurator
void determineOutputType ()
 Determine the trancode destination format to use, based on the target device and desired output quality settings. The device must be set before calling this function. This will only determine the file format settings, not the details such as dimensions or bitrates. The muxer and encoder attributes below may be read after calling this method, but not the format details or properties. More...
 
void configurate ()
 Determine the transcode settings to use based on the input given. Both the device and the input format must be set before calling this function. Once this is called, the functions below may be called (they will throw an error if called before this function is called). More...
 

Protected Types

enum  CONFIGURATE_STATE { CONFIGURATE_NOT_STARTED, CONFIGURATE_OUTPUT_SET, CONFIGURATE_FINISHED }
 

Protected Member Functions

virtual ~sbTranscodingConfigurator ()
 

Protected Attributes

CONFIGURATE_STATE mConfigurateState
 
nsCOMPtr< nsIURI > mInputUri
 
nsCOMPtr< sbITranscodeErrormLastError
 
nsCOMPtr< sbIMediaFormatmInputFormat
 
PRBool mUseMuxer
 
nsString mMuxer
 
PRBool mUseVideoEncoder
 
nsString mVideoEncoder
 
PRBool mUseAudioEncoder
 
nsString mAudioEncoder
 
nsCString mFileExtension
 
nsCOMPtr< sbIMediaFormatVideomVideoFormat
 
nsCOMPtr< sbIMediaFormatAudiomAudioFormat
 
nsCOMPtr< nsIWritablePropertyBag2 > mVideoEncoderProperties
 
nsCOMPtr< nsIWritablePropertyBag2 > mAudioEncoderProperties
 

Additional Inherited Members

- Public Attributes inherited from sbITranscodingConfigurator
readonly attribute nsIArray availableProfiles
 
attribute nsIURI inputUri
 
attribute sbIMediaFormat inputFormat
 The input format to use when configuring the transcode profile. More...
 
readonly attribute
sbITranscodeError 
lastError
 
readonly attribute AString muxer
 The muxer to use. The name is specific to the transcoder (for example, this may be a gstreamer element name for a gstreamer-based transcoder). More...
 
readonly attribute boolean useMuxer
 Whether a muxer is in use. e.g. for a bare FLAC audio file it won't be. More...
 
readonly attribute ACString fileExtension
 The file extension to use for transcoded files. This may depend on the muxer or the used codecs. It may also depend on nothing at all; it's all up to the configurator. More...
 
readonly attribute AString videoEncoder
 The video encoder to use. The name is specific to the transcoder (for example, this may be a gstreamer element name for a gstreamer-based transcoder). More...
 
readonly attribute boolean useVideoEncoder
 Whether a video encoder is in use. If this is true, the videoEncoder attribute must be non-empty. More...
 
readonly attribute AString audioEncoder
 The audio encoder to use. The name is specific to the transcoder (for example, this may be a gstreamer element name for a gstreamer-based transcoder). This may be a void string if raw audio is desired. More...
 
readonly attribute boolean useAudioEncoder
 Whether a audio encoder is in use. If this is true, the audioEncoder attribute may be empty; indicating that raw audio is desired. More...
 
readonly attribute
sbIMediaFormatVideo 
videoFormat
 The basic video format for data that is not specific to a particular codec. More...
 
readonly attribute
sbIMediaFormatAudio 
audioFormat
 The basic audio format for data that is not specific to a particular codec. More...
 
readonly attribute nsIPropertyBag videoEncoderProperties
 With the input given, return the properties to set on the encoder to encode this format. This is used to e.g. select a bitrate for the video encoder. More...
 
readonly attribute nsIPropertyBag audioEncoderProperties
 With the input given, return the properties to set on the encoder to encode this format. This is used to e.g. select a bitrate for the audio encoder. More...
 

Detailed Description

Definition at line 54 of file sbTranscodingConfigurator.h.

Member Enumeration Documentation

Enumerator
CONFIGURATE_NOT_STARTED 
CONFIGURATE_OUTPUT_SET 
CONFIGURATE_FINISHED 

Definition at line 66 of file sbTranscodingConfigurator.h.

Constructor & Destructor Documentation

NS_DECL_ISUPPORTS NS_DECL_SBITRANSCODINGCONFIGURATOR sbTranscodingConfigurator::sbTranscodingConfigurator ( )
sbTranscodingConfigurator::~sbTranscodingConfigurator ( )
protectedvirtual

Definition at line 54 of file sbTranscodingConfigurator.cpp.

Member Data Documentation

nsString sbTranscodingConfigurator::mAudioEncoder
protected

Definition at line 90 of file sbTranscodingConfigurator.h.

nsCOMPtr<nsIWritablePropertyBag2> sbTranscodingConfigurator::mAudioEncoderProperties
protected

Definition at line 100 of file sbTranscodingConfigurator.h.

nsCOMPtr<sbIMediaFormatAudio> sbTranscodingConfigurator::mAudioFormat
protected

Definition at line 96 of file sbTranscodingConfigurator.h.

CONFIGURATE_STATE sbTranscodingConfigurator::mConfigurateState
protected

Definition at line 77 of file sbTranscodingConfigurator.h.

nsCString sbTranscodingConfigurator::mFileExtension
protected

Definition at line 92 of file sbTranscodingConfigurator.h.

nsCOMPtr<sbIMediaFormat> sbTranscodingConfigurator::mInputFormat
protected

Definition at line 83 of file sbTranscodingConfigurator.h.

nsCOMPtr<nsIURI> sbTranscodingConfigurator::mInputUri
protected

Definition at line 79 of file sbTranscodingConfigurator.h.

nsCOMPtr<sbITranscodeError> sbTranscodingConfigurator::mLastError
protected

Definition at line 81 of file sbTranscodingConfigurator.h.

nsString sbTranscodingConfigurator::mMuxer
protected

Definition at line 86 of file sbTranscodingConfigurator.h.

PRBool sbTranscodingConfigurator::mUseAudioEncoder
protected

Definition at line 89 of file sbTranscodingConfigurator.h.

PRBool sbTranscodingConfigurator::mUseMuxer
protected

Definition at line 85 of file sbTranscodingConfigurator.h.

PRBool sbTranscodingConfigurator::mUseVideoEncoder
protected

Definition at line 87 of file sbTranscodingConfigurator.h.

nsString sbTranscodingConfigurator::mVideoEncoder
protected

Definition at line 88 of file sbTranscodingConfigurator.h.

nsCOMPtr<nsIWritablePropertyBag2> sbTranscodingConfigurator::mVideoEncoderProperties
protected

Definition at line 98 of file sbTranscodingConfigurator.h.

nsCOMPtr<sbIMediaFormatVideo> sbTranscodingConfigurator::mVideoFormat
protected

Definition at line 94 of file sbTranscodingConfigurator.h.


The documentation for this class was generated from the following files: