<s> from warnings import warnpy3k <EOL> warnpy3k ( "<STR_LIT>" , stacklevel = <NUM_LIT:2> ) <EOL> del warnpy3k <EOL> MAX_NUMBER_OF_ORIGINAL_FORMATS = <NUM_LIT:32> <EOL> MONO = <NUM_LIT:0> <EOL> STEREO_INTERLEAVED = <NUM_LIT:1> <EOL> RGB = <NUM_LIT:0> <EOL> RGBX = <NUM_LIT:1> <EOL> RGBA = <NUM_LIT:2> <EOL> RGB332 = <NUM_LIT:3> <EOL> GRAYSCALE = <NUM_LIT:4> <EOL> Y = <NUM_LIT:4> <EOL> YUV = <NUM_LIT:5> <EOL> YCbCr = <NUM_LIT:5> <EOL> YUV422 = <NUM_LIT:6> <EOL> YCbCr422 = <NUM_LIT:6> <EOL> YUV422HC = <NUM_LIT:7> <EOL> YCbCr422HC = <NUM_LIT:7> <EOL> YUV422DC = <NUM_LIT:7> <EOL> YCbCr422DC = <NUM_LIT:7> <EOL> BEST_FIT = - <NUM_LIT:1> <EOL> def BytesPerSample ( s ) : <EOL> if s in ( MONO , YUV ) : <EOL> return <NUM_LIT:2> <EOL> elif s == STEREO_INTERLEAVED : <EOL> return <NUM_LIT:4> <EOL> else : <EOL> return <NUM_LIT:0> <EOL> def BytesPerPixel ( f ) : <EOL> if f in ( RGB , YUV ) : <EOL> return <NUM_LIT:3> <EOL> elif f in ( RGBX , RGBA ) : <EOL> return <NUM_LIT:4> <EOL> elif f in ( RGB332 , GRAYSCALE ) : <EOL> return <NUM_LIT:1> <EOL> else : <EOL> return <NUM_LIT:2> <EOL> def AudioFormatName ( f ) : <EOL> if f == MONO : <EOL> return '<STR_LIT>' <EOL> elif f == STEREO_INTERLEAVED : <EOL> return '<STR_LIT>' <EOL> else : <EOL> return '<STR_LIT>' <EOL> def VideoFormatName ( f ) : <EOL> if f == RGB : <EOL> return '<STR_LIT>' <EOL> elif f == RGBX : <EOL> return '<STR_LIT>' <EOL> elif f == RGBA : <EOL> return '<STR_LIT>' <EOL> elif f == RGB332 : <EOL> return '<STR_LIT>' <EOL> elif f == GRAYSCALE : <EOL> return '<STR_LIT>' <EOL> elif f == YUV : <EOL> return '<STR_LIT>' <EOL> elif f == YUV422 : <EOL> return '<STR_LIT>' <EOL> elif f == YUV422DC : <EOL> return '<STR_LIT>' <EOL> else : <EOL> return '<STR_LIT>' <EOL> MAX_NUMBER_OF_AUDIO_ALGORITHMS = <NUM_LIT:32> <EOL> MAX_NUMBER_OF_VIDEO_ALGORITHMS = <NUM_LIT:32> <EOL> AUDIO = <NUM_LIT:0> <EOL> VIDEO = <NUM_LIT:1> <EOL> def AlgorithmNumber ( scheme ) : <EOL> return scheme & <NUM_LIT> <EOL> def AlgorithmType ( scheme ) : <EOL> return ( scheme >> <NUM_LIT:15> ) & <NUM_LIT:1> <EOL> def Algorithm ( type , n ) : <EOL> return n | ( ( type & <NUM_LIT:1> ) << <NUM_LIT:15> ) <EOL> UNKNOWN_SCHEME = - <NUM_LIT:1> <EOL> UNCOMPRESSED_AUDIO = Algorithm ( AUDIO , <NUM_LIT:0> ) <EOL> G711_ULAW = Algorithm ( AUDIO , <NUM_LIT:1> ) <EOL> ULAW = Algorithm ( AUDIO , <NUM_LIT:1> ) <EOL> G711_ALAW = Algorithm ( AUDIO , <NUM_LIT:2> ) <EOL> ALAW = Algorithm ( AUDIO , <NUM_LIT:2> ) <EOL> AWARE_MPEG_AUDIO = Algorithm ( AUDIO , <NUM_LIT:3> ) <EOL> AWARE_MULTIRATE = Algorithm ( AUDIO , <NUM_LIT:4> ) <EOL> UNCOMPRESSED = Algorithm ( VIDEO , <NUM_LIT:0> ) <EOL> UNCOMPRESSED_VIDEO = Algorithm ( VIDEO , <NUM_LIT:0> ) <EOL> RLE = Algorithm ( VIDEO , <NUM_LIT:1> ) <EOL> JPEG = Algorithm ( VIDEO , <NUM_LIT:2> ) <EOL> MPEG_VIDEO = Algorithm ( VIDEO , <NUM_LIT:3> ) <EOL> MVC1 = Algorithm ( VIDEO , <NUM_LIT:4> ) <EOL> RTR = Algorithm ( VIDEO , <NUM_LIT:5> ) <EOL> RTR1 = Algorithm ( VIDEO , <NUM_LIT:5> ) <EOL> MAX_NUMBER_OF_PARAMS = <NUM_LIT> <EOL> IMAGE_WIDTH = <NUM_LIT:0> <EOL> IMAGE_HEIGHT = <NUM_LIT:1> <EOL> ORIGINAL_FORMAT = <NUM_LIT:2> <EOL> INTERNAL_FORMAT = <NUM_LIT:3> <EOL> COMPONENTS = <NUM_LIT:4> <EOL> BITS_PER_COMPONENT = <NUM_LIT:5> <EOL> FRAME_RATE = <NUM_LIT:6> <EOL> COMPRESSION_RATIO = <NUM_LIT:7> <EOL> EXACT_COMPRESSION_RATIO = <NUM_LIT:8> <EOL> FRAME_BUFFER_SIZE = <NUM_LIT:9> <EOL> COMPRESSED_BUFFER_SIZE = <NUM_LIT:10> <EOL> BLOCK_SIZE = <NUM_LIT:11> <EOL> PREROLL = <NUM_LIT:12> <EOL> FRAME_TYPE = <NUM_LIT> <EOL> ALGORITHM_ID = <NUM_LIT> <EOL> ALGORITHM_VERSION = <NUM_LIT:15> <EOL> ORIENTATION = <NUM_LIT:16> <EOL> NUMBER_OF_FRAMES = <NUM_LIT> <EOL> SPEED = <NUM_LIT> <EOL> LAST_FRAME_INDEX = <NUM_LIT> <EOL> NUMBER_OF_PARAMS = <NUM_LIT:20> <EOL> QUALITY_FACTOR = NUMBER_OF_PARAMS + <NUM_LIT:0> <EOL> END_OF_SEQUENCE = NUMBER_OF_PARAMS + <NUM_LIT:0> <EOL> QUALITY_LEVEL = NUMBER_OF_PARAMS + <NUM_LIT:0> <EOL> ZOOM_X = NUMBER_OF_PARAMS + <NUM_LIT:1> <EOL> ZOOM_Y = NUMBER_OF_PARAMS + <NUM_LIT:2> <EOL> ENUM_VALUE = <NUM_LIT:0> <EOL> RANGE_VALUE = <NUM_LIT:1> <EOL> FLOATING_ENUM_VALUE = <NUM_LIT:2> <EOL> FLOATING_RANGE_VALUE = <NUM_LIT:3> <EOL> DECOMPRESSOR = <NUM_LIT:1> <EOL> COMPRESSOR = <NUM_LIT:2> <EOL> CODEC = <NUM_LIT:3> <EOL> NONE = <NUM_LIT:0> <EOL> FRAME = <NUM_LIT:1> <EOL> DATA = <NUM_LIT:2> <EOL> NONE = <NUM_LIT:0> <EOL> KEYFRAME = <NUM_LIT:1> <EOL> INTRA = <NUM_LIT:1> <EOL> PREDICTED = <NUM_LIT:2> <EOL> BIDIRECTIONAL = <NUM_LIT:3> <EOL> TOP_DOWN = <NUM_LIT:0> <EOL> BOTTOM_UP = <NUM_LIT:1> <EOL> HEADER_START_CODE = <NUM_LIT> <EOL> BAD_NO_BUFFERSPACE = - <NUM_LIT:2> <EOL> BAD_PVBUFFER = - <NUM_LIT:3> <EOL> BAD_BUFFERLENGTH_NEG = - <NUM_LIT:4> <EOL> BAD_BUFFERLENGTH_ODD = - <NUM_LIT:5> <EOL> BAD_PARAM = - <NUM_LIT:6> <EOL> BAD_COMPRESSION_SCHEME = - <NUM_LIT:7> <EOL> BAD_COMPRESSOR_HANDLE = - <NUM_LIT:8> <EOL> BAD_COMPRESSOR_HANDLE_POINTER = - <NUM_LIT:9> <EOL> BAD_BUFFER_HANDLE = - <NUM_LIT:10> <EOL> BAD_BUFFER_QUERY_SIZE = - <NUM_LIT:11> <EOL> JPEG_ERROR = - <NUM_LIT:12> <EOL> BAD_FRAME_SIZE = - <NUM_LIT> <EOL> PARAM_OUT_OF_RANGE = - <NUM_LIT> <EOL> ADDED_ALGORITHM_ERROR = - <NUM_LIT:15> <EOL> BAD_ALGORITHM_TYPE = - <NUM_LIT:16> <EOL> BAD_ALGORITHM_NAME = - <NUM_LIT> <EOL> BAD_BUFFERING = - <NUM_LIT> <EOL> BUFFER_NOT_CREATED = - <NUM_LIT> <EOL> BAD_BUFFER_EXISTS = - <NUM_LIT:20> <EOL> BAD_INTERNAL_FORMAT = - <NUM_LIT> <EOL> BAD_BUFFER_POINTER = - <NUM_LIT> <EOL> FRAME_BUFFER_SIZE_ZERO = - <NUM_LIT> <EOL> BAD_STREAM_HEADER = - <NUM_LIT> <EOL> BAD_LICENSE = - <NUM_LIT> <EOL> AWARE_ERROR = - <NUM_LIT> </s>
