26 #ifndef _SB_GSTREAMER_TRANSCODE_AUDIO_CONFIGURATOR_H_
27 #define _SB_GSTREAMER_TRANSCODE_AUDIO_CONFIGURATOR_H_
30 #define SB_GSTREAMER_TRANSCODE_AUDIO_CONFIGURATOR_CID \
31 { 0xb61e78ec, 0x9aa1, 0x4505, \
32 { 0xb1, 0x6c, 0xe3, 0x38, 0x19, 0xbc, 0xa7, 0x05 } }
34 #define SB_GSTREAMER_TRANSCODE_AUDIO_CONFIGURATOR_CONTRACTID \
35 "@songbirdnest.com/Songbird/Mediacore/Transcode/Configurator/Audio/GStreamer;1"
36 #define SB_GSTREAMER_TRANSCODE_AUDIO_CONFIGURATOR_CLASSNAME \
37 "GStreamerTranscodeAudioConfigurator"
41 #include <sbITranscodingConfigurator.h>
42 #include <sbITranscodeProfile.h>
43 #include <sbPIGstTranscodingConfigurator.h>
46 #include <nsDataHashtable.h>
49 class nsIWritablePropertyBag;
61 NS_DECL_SBIDEVICETRANSCODINGCONFIGURATOR
64 #define FORWARD_TO_BASE(METHOD, PROTO, ARGS) \
65 NS_IMETHOD METHOD PROTO { return sbTranscodingConfigurator::METHOD(ARGS); }
84 #undef FORWARD_TO_BASE
144 nsIWritablePropertyBag * aDstBag,
151 nsIArray *aPropertyArray,
152 nsString aPrefNameBase);
196 #endif // _SB_GSTREAMER_TRANSCODE_AUDIO_CONFIGURATOR_H_
nsCOMPtr< sbITranscodeProfile > mSelectedProfile
NS_IMETHOD GetUseAudioEncoder(PRBool *aUseAudioEncoder)
NS_IMETHOD GetUseVideoEncoder(PRBool *aUseVideoEncoder)
NS_IMETHOD GetVideoEncoderProperties(nsIPropertyBag **aVideoEncoderProperties)
NS_IMETHOD GetAudioFormat(sbIMediaFormatAudio **aAudioFormat)
NS_IMETHOD GetVideoFormat(sbIMediaFormatVideo **aVideoFormat)
NS_IMETHOD GetInputFormat(sbIMediaFormat **aInputFormat)
NS_IMETHOD GetAudioEncoderProperties(nsIPropertyBag **aAudioEncoderProperties)
nsresult CopyPropertiesIntoBag(nsIArray *aSrcProps, nsIWritablePropertyBag *aDstBag, PRBool aIsVideo)
NS_IMETHOD GetLastError(sbITranscodeError **aLastError)
An object defining a transcoding profile.
NS_IMETHOD GetVideoEncoder(nsAString &aVideoEncoder)
NS_IMETHOD GetAudioEncoder(nsAString &aAudioEncoder)
nsresult EnsureProfileAvailable(sbITranscodeProfile *aProfile)
nsDataHashtable< nsISupportsHashKey, EncoderProfileData > mElementNames
NS_IMETHOD DetermineOutputType()
nsresult SelectOutputAudioFormat()
nsCOMPtr< sbIDevice > mDevice
nsresult SetAudioProperties()
NS_IMETHOD GetFileExtension(nsACString &aFileExtension)
nsresult CheckProfileSupportedByDevice(sbITranscodeProfile *aProfile, sbIAudioFormatType **aFormat)
nsCOMPtr< sbIAudioFormatType > mSelectedFormat
NS_IMETHOD GetAvailableProfiles(nsIArray **aProfiles)
NS_IMETHOD GetMuxer(nsAString &aMuxer)
#define FORWARD_TO_BASE(METHOD, PROTO, ARGS)
PRBool mProfileFromGlobalPrefs
nsCOMPtr< nsIArray > mAvailableProfiles
NS_IMETHOD SetInputUri(nsIURI *aUri)
sbGStreamerTranscodeAudioConfigurator()
NS_IMETHOD SetInputFormat(sbIMediaFormat *aInputFormat)
NS_IMETHOD GetInputUri(nsIURI **aUri)
NS_IMETHOD GetUseMuxer(PRBool *aUseMuxer)
nsresult ApplyPreferencesToPropertyArray(sbIDevice *aDevice, nsIArray *aPropertyArray, nsString aPrefNameBase)
virtual ~sbGStreamerTranscodeAudioConfigurator()