26 #ifndef SBDEVICECAPSCOMPATIBILITY_H_
27 #define SBDEVICECAPSCOMPATIBILITY_H_
30 #include <nsStringAPI.h>
32 #include <sbIDeviceCapsCompatibility.h>
48 NS_DECL_SBIDEVICECAPSCOMPATIBILITY
56 virtual ~sbDeviceCapsCompatibility();
62 nsresult CompareAudioFormat(PRBool* aCompatible);
68 nsresult CompareVideoFormat(PRBool* aCompatible);
74 nsresult CompareImageFormat(PRBool* aCompatible);
108 PRBool* aCompatible);
117 PRBool* aCompatible);
126 PRBool* aCompatible);
135 PRBool* aCompatible);
144 PRBool* aCompatible);
153 PRBool* aCompatible);
156 nsCOMPtr<sbIDeviceCapabilities> mDeviceCapabilities;
159 nsCOMPtr<sbIMediaFormat> mMediaFormat;
160 nsCOMPtr<sbIMediaFormatVideo> mMediaVideoStream;
161 nsCOMPtr<sbIMediaFormatAudio> mMediaAudioStream;
164 nsString mMediaContainerType;
167 nsString mMediaVideoType;
168 PRInt32 mMediaVideoWidth;
169 PRInt32 mMediaVideoHeight;
170 PRInt32 mMediaVideoBitRate;
171 PRInt32 mMediaVideoSampleRate;
172 PRUint32 mMediaVideoPARNumerator;
173 PRUint32 mMediaVideoPARDenominator;
174 PRUint32 mMediaVideoFRNumerator;
175 PRUint32 mMediaVideoFRDenominator;
178 nsString mMediaAudioType;
179 PRInt32 mMediaAudioBitRate;
180 PRInt32 mMediaAudioSampleRate;
181 PRInt32 mMediaAudioChannels;
185 PRUint32 mContentType;
[UNIMPLEMENTED UNTIL AFTER 0.3]
NS_DECL_ISUPPORTS NS_DECL_SBIDEVICECAPSCOMPATIBILITY sbDeviceCapsCompatibility()
This service determines if a media file is compatible with a particular device.