#!/usr/bin/env python # -*- coding: iso-8859-15 -*- import sys from subprocess import check_call from subprocess import CalledProcessError import arguments_parser file = "" parser = arguments_parser( description="Does nothing with the HFB texture data.") parser.add_argument( "--file", help="file that contains the LFB data. Default = {})".format(file)) args = parser.parse_known_args()[0] if args.file: file = args.file try: check_call("trace cp " + file + ".cp " + file, shell=True) except CalledProcessError: sys.exit(-1)
# If there is no file textures of the current iteration, is created # with a neutral texture. import sys from subprocess import check_call from subprocess import CalledProcessError import arguments_parser ## File that contains the HFB data. file = "" ## Number of pictures to process. pictures = 33 ## The parser module provides an interface to Python's internal parser ## and byte-code compiler. parser = arguments_parser(description="Expands the the LFB texture data using JPEG 2000.") parser.add_argument("--file", help="file that contains the LFB data. Default = {})".format(file)) parser.pictures() ## 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) try: ## File that contains the HFB data. f = open(file + ".mjc", "rb") f.close()
## File that contains the HFB data. file = "" ## Number of pictures to process. pictures = 33 ## Width of the pictures. pixels_in_x = 352 ## Height of the pictures. pixels_in_y = 288 ## Controls the quality level and the bit-rate of the code-stream. 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 = arguments_parser( description="Compress the LFB texture data using LTW") parser.add_argument( "--file", help="file that contains the HFB data. Default = {})".format(file)) parser.pictures() parser.pixels_in_x() parser.pixels_in_y() parser.quantizations() parser.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:
pixels_in_x = 352 ## Height of the pictures. pixels_in_y = 288 ## Controls the quality level and the bit-rate of the code-stream. quantization = str((46000 + 42000) / 2) # "44000" ## Number of Temporal Resolution Levels. TRLs = 4 ## Number of Spatia Resolution Levels. SRLs = 5 ## 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 = arguments_parser(description="Compress the texture.") parser.GOPs() parser.nLayers() parser.pixels_in_x() parser.pixels_in_y() parser.quantization() parser.quantization_step() parser.TRLs() parser.SRLs() parser.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)
## File that contains the HFB data. file = "" ## Number of pictures to process. pictures = 33 ## Width of the pictures. pixels_in_x = 352 ## Height of the pictures. pixels_in_y = 288 ## Controls the quality level and the bit-rate of the code-stream. 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 = arguments_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() parser.pixels_in_x() parser.pixels_in_y() parser.quantizations() parser.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:
# - Multiplexing components (Y, U y V). import sys import os from subprocess import check_call from subprocess import CalledProcessError import arguments_parser ## File that contains the HFB data. file = "" ## Number of pictures to process. pictures = 33 ## The parser module provides an interface to Python's internal parser ## and byte-code compiler. parser = arguments_parser( description="Expands the the HFB texture data using LTW.") parser.add_argument( "--file", help="file that contains the LFB data. Default = {})".format(file)) parser.pictures() ## 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) # Decode and multiplexing all components (YUV). #----------------------------------------------