28 #include <nsIWritablePropertyBag2.h>
30 #include <sbITranscodeError.h>
38 : mConfigurateState(CONFIGURATE_NOT_STARTED),
42 mUseVideoEncoder(PR_FALSE),
43 mVideoEncoder(SBVoidString()),
44 mUseAudioEncoder(PR_FALSE),
45 mAudioEncoder(SBVoidString()),
48 mVideoEncoderProperties(nsnull),
49 mAudioEncoderProperties(nsnull)
61 sbTranscodingConfigurator::GetAvailableProfiles(nsIArray **aArray)
63 NS_ENSURE_ARG_POINTER(aArray);
65 return NS_ERROR_NOT_IMPLEMENTED;
70 sbTranscodingConfigurator::GetInputUri(nsIURI * *aInputUri)
72 NS_ENSURE_ARG_POINTER(aInputUri);
77 sbTranscodingConfigurator::SetInputUri(nsIURI * aInputUri)
88 sbTranscodingConfigurator::GetInputFormat(
sbIMediaFormat **aInputFormat)
90 NS_ENSURE_ARG_POINTER(aInputFormat);
101 sbTranscodingConfigurator::SetInputFormat(
sbIMediaFormat *aInputFormat)
104 NS_ERROR_ALREADY_INITIALIZED);
105 NS_ENSURE_ARG(aInputFormat);
114 NS_ENSURE_ARG_POINTER(aLastError);
121 sbTranscodingConfigurator::DetermineOutputType()
123 NS_NOTYETIMPLEMENTED(
"sbTranscodingConfigurator::DetermineOutputType");
124 return NS_ERROR_NOT_IMPLEMENTED;
133 sbTranscodingConfigurator::GetMuxer(nsAString &aMuxer)
136 NS_ERROR_NOT_INITIALIZED);
145 sbTranscodingConfigurator::GetUseMuxer(PRBool *aUseMuxer)
148 NS_ERROR_NOT_INITIALIZED);
155 sbTranscodingConfigurator::GetFileExtension(nsACString & aFileExtension)
158 NS_ERROR_NOT_INITIALIZED);
167 sbTranscodingConfigurator::GetUseAudioEncoder(PRBool *aUseAudioEncoder)
170 NS_ERROR_NOT_INITIALIZED);
181 sbTranscodingConfigurator::GetAudioEncoder(nsAString &aAudioEncoder)
184 NS_ERROR_NOT_INITIALIZED);
193 sbTranscodingConfigurator::GetUseVideoEncoder(PRBool *aUseVideoEncoder)
196 NS_ERROR_NOT_INITIALIZED);
207 sbTranscodingConfigurator::GetVideoEncoder(nsAString &aVideoEncoder)
210 NS_ERROR_NOT_INITIALIZED);
220 sbTranscodingConfigurator::Configurate(
void)
222 NS_NOTYETIMPLEMENTED(
"sbTranscodingConfigurator::Configurate");
223 return NS_ERROR_NOT_IMPLEMENTED;
235 NS_ERROR_NOT_INITIALIZED);
236 NS_ENSURE_ARG_POINTER(aVideoFormat);
250 NS_ERROR_NOT_INITIALIZED);
251 NS_ENSURE_ARG_POINTER(aAudioFormat);
262 sbTranscodingConfigurator::GetVideoEncoderProperties(
263 nsIPropertyBag **aVideoEncoderProperties)
266 NS_ERROR_NOT_INITIALIZED);
267 NS_ENSURE_ARG_POINTER(aVideoEncoderProperties);
270 NS_ENSURE_SUCCESS(rv, rv);
280 sbTranscodingConfigurator::GetAudioEncoderProperties(
281 nsIPropertyBag **aAudioEncoderProperties)
284 NS_ERROR_NOT_INITIALIZED);
285 NS_ENSURE_ARG_POINTER(aAudioEncoderProperties);
288 NS_ENSURE_SUCCESS(rv, rv);
virtual ~sbTranscodingConfigurator()
Base interface for all Transcoding Configurators. This interface should be implemented by any Configu...
nsCOMPtr< sbITranscodeError > mLastError
nsCOMPtr< sbIMediaFormat > mInputFormat
CONFIGURATE_STATE mConfigurateState
nsCOMPtr< sbIMediaFormatVideo > mVideoFormat
nsCOMPtr< nsIWritablePropertyBag2 > mAudioEncoderProperties
NS_IMPL_THREADSAFE_ISUPPORTS1(sbTranscodingConfigurator, sbITranscodingConfigurator) sbTranscodingConfigurator
nsCOMPtr< nsIURI > mInputUri
nsCOMPtr< nsIWritablePropertyBag2 > mVideoEncoderProperties
nsCOMPtr< sbIMediaFormatAudio > mAudioFormat