CMTimeMBS constants

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

Back to CMTimeMBS class.

Rounding Methods

CMTimeMBS.kCMTimeRoundingMethod_Default = 1

Type Topic Plugin Version
const AVFoundation MBS AVFoundation Plugin 13.2
One of constants used to specify the rounding method to use when computing time.value during timescale conversions.

Synonym for kCMTimeRoundingMethod_RoundHalfAwayFromZero.

CMTimeMBS.kCMTimeRoundingMethod_QuickTime = 4

Type Topic Plugin Version
const AVFoundation MBS AVFoundation Plugin 13.2
One of constants used to specify the rounding method to use when computing time.value during timescale conversions.

Use kCMTimeRoundingMethod_RoundTowardZero if converting from larger to smaller scale (that is, from more precision to less precision), but use kCMTimeRoundingMethod_RoundAwayFromZero if converting from smaller to larger scale (i.e. from less precision to more precision).
Also, never round a negative number down to 0; always return the smallest magnitude negative CMTime in this case (-1/newTimescale).

CMTimeMBS.kCMTimeRoundingMethod_RoundAwayFromZero = 3

Type Topic Plugin Version
const AVFoundation MBS AVFoundation Plugin 13.2
One of constants used to specify the rounding method to use when computing time.value during timescale conversions.

Round away from zero if abs(fraction) is > 0.

CMTimeMBS.kCMTimeRoundingMethod_RoundHalfAwayFromZero = 1

Type Topic Plugin Version
const AVFoundation MBS AVFoundation Plugin 13.2
One of constants used to specify the rounding method to use when computing time.value during timescale conversions.

Round towards zero if abs(fraction) is < 0.5, away from 0 if abs(fraction) is >= 0.5.

CMTimeMBS.kCMTimeRoundingMethod_RoundTowardNegativeInfinity = 6

Type Topic Plugin Version
const AVFoundation MBS AVFoundation Plugin 13.2
One of constants used to specify the rounding method to use when computing time.value during timescale conversions.

Round towards -infinity if fraction is not 0.

CMTimeMBS.kCMTimeRoundingMethod_RoundTowardPositiveInfinity = 5

Type Topic Plugin Version
const AVFoundation MBS AVFoundation Plugin 13.2
One of constants used to specify the rounding method to use when computing time.value during timescale conversions.

Round towards +infinity if fraction is not 0.

CMTimeMBS.kCMTimeRoundingMethod_RoundTowardZero = 2

Type Topic Plugin Version
const AVFoundation MBS AVFoundation Plugin 13.2
One of constants used to specify the rounding method to use when computing time.value during timescale conversions.

Round towards zero if fraction is not 0.

The items on this page are in the following plugins: MBS AVFoundation Plugin.


💬 Ask a question or report a problem