quantizations = 45000 ## Number of Spatial Resolution Levels. SRLs = 5 ## The parser module provides an interface to Python's internal parser ## and byte-code compiler. parser = MCTF_parser( description="Compress the LFB texture data using Motion JPEG 2000.") parser.add_argument( "--file", help="file that contains the LFB data. Default = {})".format(file)) parser.pictures(pictures) parser.pixels_in_x(pixels_in_x) parser.pixels_in_y(pixels_in_y) parser.quantizations(quantizations) parser.SRLs(SRLs) ## 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.file: file = args.file if args.pictures: pictures = int(args.pictures) 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.quantizations: quantizations = args.quantizations if args.SRLs:
subpixel_accuracy = 0 SRLs = 5 TRLs = 5 update_factor = 1.0 / 4 parser = MCTF_parser(description="Decodes a sequence of pictures.") parser.block_overlaping(block_overlaping) parser.block_size(block_size) parser.block_size_min(block_size_min) parser.border_size(border_size) parser.GOPs(GOPs) parser.pixels_in_x(pixels_in_x) parser.pixels_in_y(pixels_in_y) parser.search_range(search_range) parser.subpixel_accuracy(subpixel_accuracy) parser.SRLs(TRLs) parser.TRLs(TRLs) parser.update_factor(update_factor) args = parser.parse_known_args()[0] if args.block_overlaping: block_overlaping = int(args.block_overlaping) if args.block_size: block_size = int(args.block_size) if args.block_size_min: block_size_min = int(args.block_size_min) if args.border_size: border_size = int(args.border_size) if args.GOPs: GOPs = int(args.GOPs) if args.pixels_in_x: