Lines Matching refs:compr_level
1461 usbvision->compr_level = 50; in usbvision_init_compression()
1499 usbvision->compr_level += (usbvision->used_bandwidth - 90) / 2; in usbvision_adjust_compression()
1500 RESTRICT_TO_RANGE(usbvision->compr_level, 0, 100); in usbvision_adjust_compression()
1501 if (usbvision->compr_level != usbvision->last_compr_level) { in usbvision_adjust_compression()
1505 buffer[0] = (unsigned char)(4 + 16 * usbvision->compr_level / 100); /* PCM Threshold 1 */ in usbvision_adjust_compression()
1506 buffer[1] = (unsigned char)(4 + 8 * usbvision->compr_level / 100); /* PCM Threshold 2 */ in usbvision_adjust_compression()
1507 distortion = 7 + 248 * usbvision->compr_level / 100; in usbvision_adjust_compression()
1510 distortion = 1 + 42 * usbvision->compr_level / 100; in usbvision_adjust_compression()
1514 buffer[0] = (unsigned char)(4 + 16 * usbvision->compr_level / 100); /* PCM threshold 1 */ in usbvision_adjust_compression()
1515 buffer[1] = (unsigned char)(4 + 8 * usbvision->compr_level / 100); /* PCM threshold 2 */ in usbvision_adjust_compression()
1516 distortion = 2 + 253 * usbvision->compr_level / 100; in usbvision_adjust_compression()
1519 distortion = 0 + 43 * usbvision->compr_level / 100; in usbvision_adjust_compression()
1527 usbvision->last_compr_level = usbvision->compr_level; in usbvision_adjust_compression()