25 #ifndef SBMEDIACOREFORMATINSPECTOR_H_
26 #define SBMEDIACOREFORMATINSPECTOR_H_
29 #include <nsCOMArray.h>
31 #include <nsIVariant.h>
32 #include <nsIWritablePropertyBag.h>
33 #include <nsStringAPI.h>
37 #include <sbIMediaInspector.h>
38 #include <sbIMediaFormatMutable.h>
40 #include <nsIWritablePropertyBag.h>
46 NS_DECL_SBIMEDIAFORMATCONTAINER
47 NS_DECL_SBIMEDIAFORMATCONTAINERMUTABLE
53 return mProperties->SetProperty(aKey, aValue);
56 ~sbMediaFormatContainer();
58 nsString mContainerType;
59 nsCOMPtr<nsIWritablePropertyBag> mProperties;
66 NS_DECL_SBIMEDIAFORMATVIDEO
67 NS_DECL_SBIMEDIAFORMATVIDEOMUTABLE
79 mVideoPAR = aVideoPar;
87 mVideoFrameRate = aVideoFrameRate;
96 nsresult
SetProperty(nsAString
const & aKey, nsIVariant * aVar)
100 rv = mProperties->SetProperty(aKey, aVar);
101 NS_ENSURE_SUCCESS(rv, rv);
106 ~sbMediaFormatVideo();
110 PRInt32 mVideoHeight;
114 nsCOMPtr<nsIWritablePropertyBag> mProperties;
121 NS_DECL_SBIMEDIAFORMATAUDIO
122 NS_DECL_SBIMEDIAFORMATAUDIOMUTABLE
127 ~sbMediaFormatAudio();
133 nsCOMPtr<nsIWritablePropertyBag> mProperties;
140 NS_DECL_SBIMEDIAFORMAT
141 NS_DECL_SBIMEDIAFORMATMUTABLE
149 nsCOMPtr<sbIMediaFormatContainer> mContainer;
150 nsCOMPtr<sbIMediaFormatVideo> mVideoStream;
151 nsCOMPtr<sbIMediaFormatAudio> mAudioStream;
restoreDimensions aHeight