?? naming.py
字號(hào):
"""
This module contains utilities for automatically creating names for things.
"""
import os, os.path, sys
def AlreadyEncodedView(config, viewNumber):
"""
AlreadyEncodedView(config, viewNumber):
config: The config module containing the configuration information
for this run.
viewNumber: View number (not the sequence number) of the view that
you want to check.
This function returns true if the given viewNumber has already
been successfully encoded.
"""
return config.paramsForMVC['alreadyEncodedViews'].has_key(viewNumber)
def MakeInputFileNameForView(config, viewNumber):
return os.path.join(config.paramsForMVC['SOURCEPATH'],
config.paramsForMVC['SEQUENCE'] + `viewNumber` +
config.paramsForMVC['suffix'])
def MakeOutputFileNameForView(config, view):
return os.path.join(config.workingDir,'output_%i.264' % view)
def MakeReconFileNameForView(config, view):
if ( AlreadyEncodedView(config, view) ):
return config.paramsForMVC['alreadyEncodedViews'][view]
else:
return os.path.join(config.workingDir,'recon_%i.yuv' % view)
def MakeDecodedFileNameForView(config, view):
return os.path.join(config.workingDir,'decoded_%i.yuv' % view)
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -