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

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

问题描述

1) CMTimeMake(1,10) 表示持续时间为 1 秒,时间刻度为 10,即每秒 10 帧.这意味着 1s 时长的 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 秒的视频和每秒 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天全站免登陆