本文整理汇总了Python中Red9.core.Red9_General.getCurrentFPS方法的典型用法代码示例。如果您正苦于以下问题:Python Red9_General.getCurrentFPS方法的具体用法?Python Red9_General.getCurrentFPS怎么用?Python Red9_General.getCurrentFPS使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Red9.core.Red9_General
的用法示例。
在下文中一共展示了Red9_General.getCurrentFPS方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_bwav_handler
# 需要导入模块: from Red9.core import Red9_General [as 别名]
# 或者: from Red9.core.Red9_General import getCurrentFPS [as 别名]
def test_bwav_handler(self):
'''
test the bwav handler and formatting of the data
'''
assert self.audioNode.isBwav()
# print self.audioNode.bwav_timecodeFormatted()
cmds.currentUnit(time='ntscf')
assert r9General.getCurrentFPS() == 60
print 'ntscf' , self.audioNode.bwav_timecodeFormatted()
assert self.audioNode.bwav_timecodeFormatted() == '01:26:04:11'
cmds.currentUnit(time='pal')
assert r9General.getCurrentFPS() == 25
# print 'pal : ', self.audioNode.bwav_timecodeFormatted()
assert self.audioNode.bwav_timecodeFormatted() == '01:26:04:05'
# print self.audioNode.bwav_timecodeFormatted(smpte=False)
assert self.audioNode.bwav_timecodeFormatted(smpte=False) == '01:26:04:172'
assert self.audioNode.bwav_timecodeReference() == 227739993
assert self.audioNode.bwav_timecodeMS() == 5164172.1768707484
# need to get the bWav header to bind it to the var
self.audioNode.bwav_getHeader()
assert self.audioNode.bwav_HeaderData == {'AudioFormat': 0,
'BextVersion': 0,
'BitsPerSample': 0,
'ChunkSize': 732516,
'Description': 'This is a unitTest file for validating the Red9 broadcast wav extraction of metaData',
'Format': 'WAVE',
'InternalFormat': 'fmt ',
'OriginationDate': '2014-03-03',
'OriginationTime': '10:00:00',
'Originator': 'Pro Tools',
'OriginatorReference': 'ffgDDffdhgff',
'Subchunk1Size': 16,
'TimeReference': 227739993,
'TimeReferenceHigh': 0}