@staticmethod
def parse_from_vapix_param_value(value, api):
    assert isinstance(value, basestring)
    assert isinstance(api, VAPIX)
    numeric_regexp = re.compile('(\\d+)x(\\d+)')
    match = numeric_regexp.match(value)
    if (match is not None):
        return VideoResolution(int(match.group(1)), int(match.group(2)))
    else:
        name = value
        (width, height) = api.resolve_video_resolution_name(name)
        return CIFVideoResolution(name, width, height)
@staticmethod
def parse_from_vapix_param_value(value, api):
    assert isinstance(value, basestring)
    assert isinstance(api, VAPIX)
    numeric_regexp = re.compile('(\\d+)x(\\d+)')
    match = numeric_regexp.match(value)
    if (match is not None):
        return VideoResolution(int(match.group(1)), int(match.group(2)))
    else:
        name = value
        (width, height) = api.resolve_video_resolution_name(name)
        return CIFVideoResolution(name, width, height)