Issue #1820 - Part 5: Add mBitDepth field to VideoInfo.

This commit is contained in:
Moonchild 2022-04-27 11:08:27 +00:00 • committed by roytam1
commit a4e69db6a4

View file

@ -213,6 +213,7 @@ public:
, mCodecSpecificConfig(aOther.mCodecSpecificConfig) , mCodecSpecificConfig(aOther.mCodecSpecificConfig)
, mExtraData(aOther.mExtraData) , mExtraData(aOther.mExtraData)
, mRotation(aOther.mRotation) , mRotation(aOther.mRotation)
, mBitDepth(aOther.mBitDepth)
, mImageRect(aOther.mImageRect) , mImageRect(aOther.mImageRect)
{ {
} }
@ -304,6 +305,9 @@ public:
// get correct view. // get correct view.
Rotation mRotation; Rotation mRotation;
// Bits per channel -- Should be 8, 10 or 12. Default value is 8.
uint8_t mBitDepth = 8;
private: private:
// mImage may be cropped; currently only used with the WebM container. // mImage may be cropped; currently only used with the WebM container.
// A negative width or height indicate that no cropping is to occur. // A negative width or height indicate that no cropping is to occur.