void Stream::setFrameRate(const Rational &frameRate) { RAW_SET2(isValid(), r_frame_rate, frameRate.getValue()); }
void Stream::setTimeBase(const Rational &timeBase) { RAW_SET2(isValid(), time_base, timeBase.getValue()); }
void Stream::setSampleAspectRatio(const Rational &aspectRatio) { RAW_SET2(isValid(), sample_aspect_ratio, aspectRatio.getValue()); }
void CodecContext2::setFrameRate(const Rational &value) noexcept { RAW_SET2(isValid() && !isOpened(), framerate, value.getValue()); }
void CodecContext2::setTimeBase(const Rational &value) noexcept { RAW_SET2(isValid() && !isOpened(), time_base, value.getValue()); }
void CodecContext::setTimeBase(const Rational &value) { RAW_SET2(isValid(), time_base, value.getValue()); }