试图了解CMTime和CMTimeMake [英] Trying to understand CMTime and CMTimeMake

查看:119
本文介绍了试图了解CMTime和CMTimeMake的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

1) CMTimeMake(1,10)表示持续时间为1秒,时间刻度为10或每秒10帧。这意味着1帧视频的持续时间为10帧?

1) CMTimeMake(1,10) means duration of 1 second and timescale of 10, or 10 frames per second. This means 1s duration of video with 10 frames?

2)

CMTime lastTime=CMTimeMake(1,10);
CMTime frameTime=CMTimeMake(1, 10);
CMTime currentTime=CMTimeAdd(lastTime, frameTime)

=(2,10)?

2秒的视频和每秒10帧的当前时间?

2 seconds of video and with 10 frames per second of the currentTime?

推荐答案

1) CMTimeMake(1,10)实际上意味着值为1,时间刻度为10.它们是分子和分母,因此是1/10一秒,而不是1秒。

1) CMTimeMake(1,10) actually means a value of 1 and a timescale of 10. They are a numerator and denominator, so it is 1/10 of a second, not 1 second.

2)结果将类似于 CMTimeMake(2,10),其中是2/10秒。

2) The result will be like CMTimeMake(2, 10), which is 2/10ths of a second.

这篇关于试图了解CMTime和CMTimeMake的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆