verifydecoder.py

来自「JMVM MPEG MVC/3DAV 测试平台 国际通用标准」· Python 代码 · 共 37 行

PY
37
字号

"""
This script verifies that a compressed bitstream decompresses to the
given YUV file.
"""

import sys, os, re, commands
import CommandTools


def VerifyDecoder(argList):
    """
    VerifyDecoder(argList):

    argList: This is a list of arguments passed in on the command line
             by the user.  The name of the program the user executed
             is argList[0], the first argument from the user is
             argList[1], the second argument from the user is
             argList[2], etc.  
    
    This is the main function called when the user starts the script
    from the command line.
    """

    # do some setup

    # then execute decoder using something like the following
    CommandTools.DoCommand(commandString='echo pretending to do command',
                           printCommand=1,
                           printResult=1,
                           writeResultToFile=None)

if (__name__ == "__main__"):
    VerifyDecoder(list(sys.argv))


⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?