Lines Matching refs:sharpness
107 vmixer->sharpness.supported = true; in vlVdpVideoMixerCreate()
208 if (vmixer->sharpness.filter) { in vlVdpVideoMixerDestroy()
209 vl_matrix_filter_cleanup(vmixer->sharpness.filter); in vlVdpVideoMixerDestroy()
210 FREE(vmixer->sharpness.filter); in vlVdpVideoMixerDestroy()
347 if (vmixer->bicubic.filter || vmixer->sharpness.filter || vmixer->noise_reduction.filter) { in vlVdpVideoMixerRender()
407 if (!vmixer->sharpness.filter && !vmixer->bicubic.filter) { in vlVdpVideoMixerRender()
427 if (vmixer->sharpness.filter) { in vlVdpVideoMixerRender()
429 vl_matrix_filter_render(vmixer->sharpness.filter, in vlVdpVideoMixerRender()
437 vl_matrix_filter_render(vmixer->sharpness.filter, in vlVdpVideoMixerRender()
519 if (vmixer->sharpness.filter) { in vlVdpVideoMixerUpdateSharpnessFilter()
520 vl_matrix_filter_cleanup(vmixer->sharpness.filter); in vlVdpVideoMixerUpdateSharpnessFilter()
521 FREE(vmixer->sharpness.filter); in vlVdpVideoMixerUpdateSharpnessFilter()
522 vmixer->sharpness.filter = NULL; in vlVdpVideoMixerUpdateSharpnessFilter()
526 if (vmixer->sharpness.enabled && vmixer->sharpness.value != 0.0f) { in vlVdpVideoMixerUpdateSharpnessFilter()
530 if (vmixer->sharpness.value > 0.0f) { in vlVdpVideoMixerUpdateSharpnessFilter()
536 matrix[i] *= vmixer->sharpness.value; in vlVdpVideoMixerUpdateSharpnessFilter()
546 matrix[i] *= fabsf(vmixer->sharpness.value) / 16.0f; in vlVdpVideoMixerUpdateSharpnessFilter()
548 matrix[4] += 1.0f - fabsf(vmixer->sharpness.value); in vlVdpVideoMixerUpdateSharpnessFilter()
551 vmixer->sharpness.filter = MALLOC(sizeof(struct vl_matrix_filter)); in vlVdpVideoMixerUpdateSharpnessFilter()
552 vl_matrix_filter_init(vmixer->sharpness.filter, vmixer->device->context, in vlVdpVideoMixerUpdateSharpnessFilter()
620 feature_supports[i] = vmixer->sharpness.supported; in vlVdpVideoMixerGetFeatureSupport()
684 vmixer->sharpness.enabled = feature_enables[i]; in vlVdpVideoMixerSetFeatureEnables()
754 feature_enables[i] = vmixer->sharpness.enabled; in vlVdpVideoMixerGetFeatureEnables()
876 vmixer->sharpness.value = val; in vlVdpVideoMixerSetAttributeValues()
985 *(float*)attribute_values[i] = vmixer->sharpness.value; in vlVdpVideoMixerGetAttributeValues()