diff --git a/dom/media/MediaData.cpp b/dom/media/MediaData.cpp index 900d8d85a929..dbd0c283dfc8 100644 --- a/dom/media/MediaData.cpp +++ b/dom/media/MediaData.cpp @@ -253,6 +253,7 @@ ConstructPlanarYCbCrData(const VideoInfo& aInfo, data.mPicSize = aPicture.Size(); data.mStereoMode = aInfo.mStereoMode; data.mYUVColorSpace = aBuffer.mYUVColorSpace; + data.mBitDepth = aBuffer.mBitDepth; return data; } diff --git a/dom/media/MediaData.h b/dom/media/MediaData.h index 5c36beb9285b..c9948912ae44 100644 --- a/dom/media/MediaData.h +++ b/dom/media/MediaData.h @@ -466,6 +466,7 @@ public: Plane mPlanes[3]; YUVColorSpace mYUVColorSpace = YUVColorSpace::BT601; + uint32_t mBitDepth = 8; }; class Listener diff --git a/gfx/layers/ImageContainer.h b/gfx/layers/ImageContainer.h index b06ab5fd545d..2f12d6235e8e 100644 --- a/gfx/layers/ImageContainer.h +++ b/gfx/layers/ImageContainer.h @@ -744,6 +744,7 @@ struct PlanarYCbCrData { gfx::IntSize mPicSize; StereoMode mStereoMode; YUVColorSpace mYUVColorSpace; + uint32_t mBitDepth; gfx::IntRect GetPictureRect() const { return gfx::IntRect(mPicX, mPicY, @@ -757,6 +758,7 @@ struct PlanarYCbCrData { , mCbCrStride(0), mCbCrSize(0, 0) , mCbSkip(0), mCrSkip(0) , mPicX(0), mPicY(0), mPicSize(0, 0), mStereoMode(StereoMode::MONO) , mYUVColorSpace(YUVColorSpace::BT601) + , mBitDepth(8) {} };