18-05-26 result
This commit is contained in:
@@ -576,6 +576,21 @@ std::string MxlSdkFeed::sourceInfo() const
|
||||
uint64_t MxlSdkFeed::frameVersion() const { return mFrameVersion; }
|
||||
bool MxlSdkFeed::hasGrainIndex() const { return mFlowOpened; }
|
||||
uint64_t MxlSdkFeed::grainIndex() const { return mLastDisplayedIndex; }
|
||||
bool MxlSdkFeed::hasFrameRate() const
|
||||
{
|
||||
return mGrainRate.denominator > 0 &&
|
||||
mGrainRate.numerator > 0;
|
||||
}
|
||||
double MxlSdkFeed::frameRate() const
|
||||
{
|
||||
if (!hasFrameRate())
|
||||
{
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
return static_cast<double>(mGrainRate.numerator) /
|
||||
static_cast<double>(mGrainRate.denominator);
|
||||
}
|
||||
|
||||
float MxlSdkFeed::srcAspectRatio() const
|
||||
{
|
||||
@@ -604,6 +619,8 @@ std::string MxlSdkFeed::sourceInfo() const { return ""; }
|
||||
uint64_t MxlSdkFeed::frameVersion() const { return 0; }
|
||||
bool MxlSdkFeed::hasGrainIndex() const { return false; }
|
||||
uint64_t MxlSdkFeed::grainIndex() const { return 0; }
|
||||
bool MxlSdkFeed::hasFrameRate() const { return false; }
|
||||
double MxlSdkFeed::frameRate() const { return 0.0; }
|
||||
float MxlSdkFeed::srcAspectRatio() const { return 16.0f / 9.0f; }
|
||||
bool MxlSdkFeed::hasV210() const { return false; }
|
||||
const uint8_t* MxlSdkFeed::v210Data() const { return nullptr; }
|
||||
|
||||
Reference in New Issue
Block a user