Lines Matching refs:sharpness
108 vmixer->sharpness.supported = true; in vlVdpVideoMixerCreate()
210 if (vmixer->sharpness.filter) { in vlVdpVideoMixerDestroy()
211 vl_matrix_filter_cleanup(vmixer->sharpness.filter); in vlVdpVideoMixerDestroy()
212 FREE(vmixer->sharpness.filter); in vlVdpVideoMixerDestroy()
346 if (vmixer->bicubic.filter || vmixer->sharpness.filter || vmixer->noise_reduction.filter) { in vlVdpVideoMixerRender()
406 if (!vmixer->sharpness.filter && !vmixer->bicubic.filter) { in vlVdpVideoMixerRender()
426 if (vmixer->sharpness.filter) { in vlVdpVideoMixerRender()
428 vl_matrix_filter_render(vmixer->sharpness.filter, in vlVdpVideoMixerRender()
436 vl_matrix_filter_render(vmixer->sharpness.filter, in vlVdpVideoMixerRender()
518 if (vmixer->sharpness.filter) { in vlVdpVideoMixerUpdateSharpnessFilter()
519 vl_matrix_filter_cleanup(vmixer->sharpness.filter); in vlVdpVideoMixerUpdateSharpnessFilter()
520 FREE(vmixer->sharpness.filter); in vlVdpVideoMixerUpdateSharpnessFilter()
521 vmixer->sharpness.filter = NULL; in vlVdpVideoMixerUpdateSharpnessFilter()
525 if (vmixer->sharpness.enabled && vmixer->sharpness.value != 0.0f) { in vlVdpVideoMixerUpdateSharpnessFilter()
529 if (vmixer->sharpness.value > 0.0f) { in vlVdpVideoMixerUpdateSharpnessFilter()
535 matrix[i] *= vmixer->sharpness.value; in vlVdpVideoMixerUpdateSharpnessFilter()
545 matrix[i] *= fabsf(vmixer->sharpness.value) / 16.0f; in vlVdpVideoMixerUpdateSharpnessFilter()
547 matrix[4] += 1.0f - fabsf(vmixer->sharpness.value); in vlVdpVideoMixerUpdateSharpnessFilter()
550 vmixer->sharpness.filter = MALLOC(sizeof(struct vl_matrix_filter)); in vlVdpVideoMixerUpdateSharpnessFilter()
551 vl_matrix_filter_init(vmixer->sharpness.filter, vmixer->device->context, in vlVdpVideoMixerUpdateSharpnessFilter()
619 feature_supports[i] = vmixer->sharpness.supported; in vlVdpVideoMixerGetFeatureSupport()
683 vmixer->sharpness.enabled = feature_enables[i]; in vlVdpVideoMixerSetFeatureEnables()
753 feature_enables[i] = vmixer->sharpness.enabled; in vlVdpVideoMixerGetFeatureEnables()
875 vmixer->sharpness.value = val; in vlVdpVideoMixerSetAttributeValues()
984 *(float*)attribute_values[i] = vmixer->sharpness.value; in vlVdpVideoMixerGetAttributeValues()