00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043 config_description = [{'srcline': 14, 'description': "Try to achieve either 'target_bitrate' or 'quality'", 'max': 1, 'cconsttype': 'const int', 'ctype': 'int', 'srcfile': '../cfg/TheoraPublisher.cfg', 'name': 'optimize_for', 'edit_method': "{'enum_description': 'Enum to control whether optimizing for bitrate or quality', 'enum': [{'srcline': 10, 'description': 'Aim for requested bitrate', 'srcfile': '../cfg/TheoraPublisher.cfg', 'cconsttype': 'const int', 'value': 0, 'ctype': 'int', 'type': 'int', 'name': 'Bitrate'}, {'srcline': 11, 'description': 'Aim for requested quality', 'srcfile': '../cfg/TheoraPublisher.cfg', 'cconsttype': 'const int', 'value': 1, 'ctype': 'int', 'type': 'int', 'name': 'Quality'}]}", 'default': 1, 'level': 0, 'min': 0, 'type': 'int'}, {'srcline': 15, 'description': 'Target encoding bitrate, bits per second', 'max': 99200000, 'cconsttype': 'const int', 'ctype': 'int', 'srcfile': '../cfg/TheoraPublisher.cfg', 'name': 'target_bitrate', 'edit_method': '', 'default': 800000, 'level': 0, 'min': 0, 'type': 'int'}, {'srcline': 16, 'description': 'Encoding quality', 'max': 63, 'cconsttype': 'const int', 'ctype': 'int', 'srcfile': '../cfg/TheoraPublisher.cfg', 'name': 'quality', 'edit_method': '', 'default': 31, 'level': 0, 'min': 0, 'type': 'int'}, {'srcline': 17, 'description': 'Maximum distance between key frames', 'max': 64, 'cconsttype': 'const int', 'ctype': 'int', 'srcfile': '../cfg/TheoraPublisher.cfg', 'name': 'keyframe_frequency', 'edit_method': '', 'default': 64, 'level': 0, 'min': 1, 'type': 'int'}]
00044
00045 min = {}
00046 max = {}
00047 defaults = {}
00048 level = {}
00049 type = {}
00050 all_level = 0
00051
00052 for param in config_description:
00053 min[param['name']] = param['min']
00054 max[param['name']] = param['max']
00055 defaults[param['name']] = param['default']
00056 level[param['name']] = param['level']
00057 type[param['name']] = param['type']
00058 all_level = all_level | param['level']
00059
00060 TheoraPublisher_Bitrate = 0
00061 TheoraPublisher_Quality = 1