summaryrefslogtreecommitdiff
path: root/dom
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2022-04-27 11:08:27 +0000
committerMoonchild <moonchild@palemoon.org>2022-04-27 11:12:39 +0000
commit4e5b100cca8e1b181f4ab8fb66b340ae2a95bd74 (patch)
treead639138808de9a178efd86f2b1683222d0a5a90 /dom
parenta874f27b5a1ac314b9d560ba1acc3af817e604f6 (diff)
downloaduxp-4e5b100cca8e1b181f4ab8fb66b340ae2a95bd74.tar.gz
Issue #1820 - Part 5: Add mBitDepth field to VideoInfo.
Diffstat (limited to 'dom')
-rw-r--r--dom/media/MediaInfo.h4
1 files changed, 4 insertions, 0 deletions
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.