Add qt_real_to_fraction() helper function.
Private API meant to be used by plugins whose backends expect frame rate values represented by a ratio. The function implementation was moved from the AVFoundation plugin to the QtMultimedia library. Change-Id: I555b9d5da5ca3bae88992ed03501869fb731e45f Reviewed-by: Christian Stromme <christian.stromme@theqtcompany.com>
This commit is contained in:
@@ -160,8 +160,6 @@ inline QSysInfo::MacVersion qt_OS_limit(QSysInfo::MacVersion osxVersion,
|
||||
|
||||
typedef QPair<qreal, qreal> AVFPSRange;
|
||||
AVFPSRange qt_connection_framerates(AVCaptureConnection *videoConnection);
|
||||
typedef QPair<int, int> AVFRational;
|
||||
AVFRational qt_float_to_rational(qreal par, int limit);
|
||||
|
||||
#if QT_MAC_PLATFORM_SDK_EQUAL_OR_ABOVE(__MAC_10_7, __IPHONE_7_0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user