25 #ifndef SBDEVICETRANSCODING_H_
26 #define SBDEVICETRANSCODING_H_
35 #include <sbIMediaItem.h>
36 #include <sbITranscodeManager.h>
37 #include <sbITranscodeJob.h>
38 #include <sbITranscodeProfile.h>
65 nsIArray **aSupportedProfiles);
135 nsIURI * aDestinationURI,
136 nsIURI ** aTranscodedDestinationURI = nsnull);
142 nsCOMPtr<nsIArray> mTranscodeProfiles;
143 nsCOMPtr<sbIMediaInspector> mMediaInspector;
144 nsCOMPtr<sbITranscodeManager> mTranscodeManager;
nsresult GetMediaInspector(sbIMediaInspector **_retval)
nsresult GetAudioFormatFromMediaItem(sbIMediaItem *aMediaItem, sbIMediaFormat **aMediaFormat)
An object capable of transcoding a source URI to a destination file.
An object defining a transcoding profile.
sbBaseDevice::TransferRequest::CompatibilityType CompatibilityType
friend class sbDeviceTranscoding
nsresult TranscodeMediaItem(sbIMediaItem *aItem, sbDeviceStatusHelper *aDeviceStatusHelper, nsIURI *aDestinationURI, nsIURI **aTranscodedDestinationURI=nsnull)
sbBaseDevice::TransferRequest TransferRequest
nsresult GetMediaFormat(PRUint32 aTranscodeType, sbIMediaItem *aMediaItem, sbIMediaFormat **aMediaFormat)
nsresult FindTranscodeProfile(sbIMediaItem *aMediaItem, sbITranscodeProfile **aProfile, CompatibilityType *aDeviceCompatibility)
nsresult PrepareBatchForTranscoding(Batch &aBatch)
aBatch The batch to process
virtual nsresult GetSupportedTranscodeProfiles(PRUint32 aType, nsIArray **aSupportedProfiles)
sbBaseDevice::Batch Batch
static PRUint32 GetTranscodeType(sbIMediaItem *aMediaItem)
nsresult SelectTranscodeProfile(PRUint32 aTranscodeType, sbITranscodeProfile **aProfile)
Select a transcode profile to use when transcoding to this device.
The manager from which to request a transcoding job, transcoding profiles, etc.