Bug 1259212 - Add VideoInfo::mFramerate - r?jwwang
MozReview-Commit-ID: ljbhLyHcr8
--- a/dom/media/MediaInfo.h
+++ b/dom/media/MediaInfo.h
@@ -194,28 +194,30 @@ public:
}
explicit VideoInfo(const nsIntSize& aSize)
: TrackInfo(kVideoTrack, NS_LITERAL_STRING("2"), NS_LITERAL_STRING("main"),
EmptyString(), EmptyString(), true, 2)
, mDisplay(aSize)
, mStereoMode(StereoMode::MONO)
, mImage(aSize)
+ , mFramerate(0)
, mCodecSpecificConfig(new MediaByteBuffer)
, mExtraData(new MediaByteBuffer)
, mRotation(kDegree_0)
, mImageRect(nsIntRect(nsIntPoint(), aSize))
{
}
VideoInfo(const VideoInfo& aOther)
: TrackInfo(aOther)
, mDisplay(aOther.mDisplay)
, mStereoMode(aOther.mStereoMode)
, mImage(aOther.mImage)
+ , mFramerate(aOther.mFramerate)
, mCodecSpecificConfig(aOther.mCodecSpecificConfig)
, mExtraData(aOther.mExtraData)
, mRotation(aOther.mRotation)
, mImageRect(aOther.mImageRect)
{
}
bool IsValid() const override
@@ -293,16 +295,19 @@ public:
nsIntSize mDisplay;
// Indicates the frame layout for single track stereo videos.
StereoMode mStereoMode;
// Size of the decoded video's image.
nsIntSize mImage;
+ // Framerate in Hz. 0 if unknown.
+ uint32_t mFramerate;
+
RefPtr<MediaByteBuffer> mCodecSpecificConfig;
RefPtr<MediaByteBuffer> mExtraData;
// Describing how many degrees video frames should be rotated in clock-wise to
// get correct view.
Rotation mRotation;
private: