## File containing a distortion value per line. Each line corresponds ## to a frame of the sequence. distortions = "" ## The parser module provides an interface to Python's internal parser ## and byte-code compiler. parser = MCTF_parser(description="Compress the texture.") parser.GOPs(GOPs) parser.nLayers(nLayers) parser.pixels_in_x(pixels_in_x) parser.pixels_in_y(pixels_in_y) parser.quantization(quantization) parser.quantization_step(quantization_step) parser.TRLs(TRLs) parser.SRLs(SRLs) parser.distortions(distortions) ## 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.nLayers: nLayers = int(args.nLayers) if args.pixels_in_x: pixels_in_x = int(args.pixels_in_x) if args.pixels_in_y: pixels_in_y = int(args.pixels_in_y) if args.quantization: quantization = args.quantization if args.quantization_step: