def guess_contains_libjpeg_turbo(lines):
    """Tries to determine if a file includes libjpeg-turbo
    """
    for line in lines:
        if 'LIBJPEG' in line:
            return 1
        if ('Caution: quantization tables are too coarse for baseline JPEG' in
            line):
            return 1
        if 'Invalid JPEG file structure: two SOF markers' in line:
            return 1
    return 0
