|
@@ -6,7 +6,9 @@ VPIDData::VPIDData()
|
|
|
mStandardA{VPIDStandard_Unknown},
|
|
|
mStandardB{VPIDStandard_Unknown},
|
|
|
mSamplingA{VPIDSampling_XYZ_444},
|
|
|
- mSamplingB{VPIDSampling_XYZ_444}
|
|
|
+ mSamplingB{VPIDSampling_XYZ_444},
|
|
|
+ mBitDepthA{VPIDBitDepth_8},
|
|
|
+ mBitDepthB{VPIDBitDepth_8}
|
|
|
{
|
|
|
}
|
|
|
|
|
@@ -16,7 +18,9 @@ VPIDData::VPIDData(ULWord vpidA, ULWord vpidB)
|
|
|
mStandardA{VPIDStandard_Unknown},
|
|
|
mStandardB{VPIDStandard_Unknown},
|
|
|
mSamplingA{VPIDSampling_XYZ_444},
|
|
|
- mSamplingB{VPIDSampling_XYZ_444}
|
|
|
+ mSamplingB{VPIDSampling_XYZ_444},
|
|
|
+ mBitDepthA{VPIDBitDepth_8},
|
|
|
+ mBitDepthB{VPIDBitDepth_8}
|
|
|
{
|
|
|
Parse();
|
|
|
}
|
|
@@ -27,7 +31,9 @@ VPIDData::VPIDData(const VPIDData &other)
|
|
|
mStandardA{VPIDStandard_Unknown},
|
|
|
mStandardB{VPIDStandard_Unknown},
|
|
|
mSamplingA{VPIDSampling_XYZ_444},
|
|
|
- mSamplingB{VPIDSampling_XYZ_444}
|
|
|
+ mSamplingB{VPIDSampling_XYZ_444},
|
|
|
+ mBitDepthA{VPIDBitDepth_8},
|
|
|
+ mBitDepthB{VPIDBitDepth_8}
|
|
|
{
|
|
|
Parse();
|
|
|
}
|
|
@@ -37,7 +43,9 @@ VPIDData::VPIDData(VPIDData &&other)
|
|
|
mStandardA{VPIDStandard_Unknown},
|
|
|
mStandardB{VPIDStandard_Unknown},
|
|
|
mSamplingA{VPIDSampling_XYZ_444},
|
|
|
- mSamplingB{VPIDSampling_XYZ_444}
|
|
|
+ mSamplingB{VPIDSampling_XYZ_444},
|
|
|
+ mBitDepthA{VPIDBitDepth_8},
|
|
|
+ mBitDepthB{VPIDBitDepth_8}
|
|
|
{
|
|
|
Parse();
|
|
|
}
|
|
@@ -46,6 +54,12 @@ VPIDData &VPIDData::operator=(const VPIDData &other)
|
|
|
{
|
|
|
mVpidA = other.mVpidA;
|
|
|
mVpidB = other.mVpidB;
|
|
|
+ mStandardA = other.mStandardA;
|
|
|
+ mStandardB = other.mStandardB;
|
|
|
+ mSamplingA = other.mSamplingA;
|
|
|
+ mSamplingB = other.mSamplingB;
|
|
|
+ mBitDepthA = other.mBitDepthA;
|
|
|
+ mBitDepthB = other.mBitDepthB;
|
|
|
return *this;
|
|
|
}
|
|
|
|
|
@@ -53,6 +67,12 @@ VPIDData &VPIDData::operator=(VPIDData &&other)
|
|
|
{
|
|
|
mVpidA = other.mVpidA;
|
|
|
mVpidB = other.mVpidB;
|
|
|
+ mStandardA = other.mStandardA;
|
|
|
+ mStandardB = other.mStandardB;
|
|
|
+ mSamplingA = other.mSamplingA;
|
|
|
+ mSamplingB = other.mSamplingB;
|
|
|
+ mBitDepthA = other.mBitDepthA;
|
|
|
+ mBitDepthB = other.mBitDepthB;
|
|
|
return *this;
|
|
|
}
|
|
|
|
|
@@ -82,11 +102,13 @@ void VPIDData::Parse()
|
|
|
parserA.SetVPID(mVpidA);
|
|
|
mStandardA = parserA.GetStandard();
|
|
|
mSamplingA = parserA.GetSampling();
|
|
|
+ mBitDepthA = parserA.GetBitDepth();
|
|
|
|
|
|
CNTV2VPID parserB;
|
|
|
parserB.SetVPID(mVpidB);
|
|
|
mStandardB = parserB.GetStandard();
|
|
|
mSamplingB = parserB.GetSampling();
|
|
|
+ mBitDepthB = parserB.GetBitDepth();
|
|
|
}
|
|
|
|
|
|
bool VPIDData::IsRGB() const
|
|
@@ -111,3 +133,8 @@ VPIDSampling VPIDData::Sampling() const
|
|
|
{
|
|
|
return mSamplingA;
|
|
|
}
|
|
|
+
|
|
|
+VPIDBitDepth VPIDData::BitDepth() const
|
|
|
+{
|
|
|
+ return mBitDepthA;
|
|
|
+}
|