當前位置: 首頁>>代碼示例>>Python>>正文


Python MCTF_parser.rates方法代碼示例

本文整理匯總了Python中MCTF_parser.MCTF_parser.rates方法的典型用法代碼示例。如果您正苦於以下問題:Python MCTF_parser.rates方法的具體用法?Python MCTF_parser.rates怎麽用?Python MCTF_parser.rates使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在MCTF_parser.MCTF_parser的用法示例。


在下文中一共展示了MCTF_parser.rates方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: MCTF_parser

# 需要導入模塊: from MCTF_parser import MCTF_parser [as 別名]
# 或者: from MCTF_parser.MCTF_parser import rates [as 別名]
#  codestream to a given bit-rate. The bit-rate control is performed
#  in transcode.py, a detailed manner, and therefore its use is
#  recommended for this purpose.
rates       = "0.0,0.0,0.0,0.0,0.0"
## Width of the pictures.
pixels_in_x = "352,352,352,352,352"
## Height of the pictures.
pixels_in_y = "288,288,288,288,288"

## The parser module provides an interface to Python's internal parser
## and byte-code compiler.
parser = MCTF_parser(description="Expands the texture.")
parser.GOPs(GOPs)
parser.SRLs(SRLs)
parser.TRLs(TRLs)
parser.rates(rates)
parser.pixels_in_x(pixels_in_x)
parser.pixels_in_y(pixels_in_y)

## A script may only parse a few of the command-line arguments,
## passing the remaining arguments on to another script or program.
args = parser.parse_known_args()[0]
if args.GOPs:
    GOPs = int(args.GOPs)
if args.SRLs:
    SRLs = int(args.SRLs)
if args.TRLs:
    TRLs = int(args.TRLs)
if args.rates:
    rates = str(args.rates)
if args.pixels_in_x:
開發者ID:vicente-gonzalez-ruiz,項目名稱:QSVC,代碼行數:33,代碼來源:texture_expand.py


注:本文中的MCTF_parser.MCTF_parser.rates方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。