本文整理汇总了C++中Rational::getValue方法的典型用法代码示例。如果您正苦于以下问题:C++ Rational::getValue方法的具体用法?C++ Rational::getValue怎么用?C++ Rational::getValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Rational
的用法示例。
在下文中一共展示了Rational::getValue方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: setFrameRate
void Stream::setFrameRate(const Rational &frameRate)
{
RAW_SET2(isValid(), r_frame_rate, frameRate.getValue());
}
示例2: setTimeBase
void Stream::setTimeBase(const Rational &timeBase)
{
RAW_SET2(isValid(), time_base, timeBase.getValue());
}
示例3: setSampleAspectRatio
void Stream::setSampleAspectRatio(const Rational &aspectRatio)
{
RAW_SET2(isValid(), sample_aspect_ratio, aspectRatio.getValue());
}
示例4:
void CodecContext2::setFrameRate(const Rational &value) noexcept {
RAW_SET2(isValid() && !isOpened(), framerate, value.getValue());
}
示例5: setTimeBase
void CodecContext::setTimeBase(const Rational &value)
{
RAW_SET2(isValid(), time_base, value.getValue());
}