From 4e5b100cca8e1b181f4ab8fb66b340ae2a95bd74 Mon Sep 17 00:00:00 2001 From: Moonchild Date: Wed, 27 Apr 2022 11:08:27 +0000 Subject: Issue #1820 - Part 5: Add mBitDepth field to VideoInfo. --- dom/media/MediaInfo.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dom/media/MediaInfo.h b/dom/media/MediaInfo.h index d54cf99b2d..2ddaf5a43f 100644 --- a/dom/media/MediaInfo.h +++ b/dom/media/MediaInfo.h @@ -213,6 +213,7 @@ public: , mCodecSpecificConfig(aOther.mCodecSpecificConfig) , mExtraData(aOther.mExtraData) , mRotation(aOther.mRotation) + , mBitDepth(aOther.mBitDepth) , mImageRect(aOther.mImageRect) { } @@ -303,6 +304,9 @@ public: // Describing how many degrees video frames should be rotated in clock-wise to // get correct view. Rotation mRotation; + + // Bits per channel -- Should be 8, 10 or 12. Default value is 8. + uint8_t mBitDepth = 8; private: // mImage may be cropped; currently only used with the WebM container. -- cgit v1.2.3