st/vdpau: replace 0.f and 1.f with 0.0f and 1.0f respectively
authorNayan Deshmukh <nayan26deshmukh@gmail.com>
Fri, 10 Jun 2016 15:34:08 +0000 (21:04 +0530)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 14 Jun 2016 14:32:04 +0000 (15:32 +0100)
Signed-off-by: Nayan Deshmukh <nayan26deshmukh@gmail.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
src/gallium/state_trackers/vdpau/mixer.c
src/gallium/state_trackers/vdpau/query.c

index b12a5807f127f4f2d5dbbf825d8162020cffe1c2..65c3ce2b9e1b7e0bbce0eefae420c9e819abe367 100644 (file)
@@ -693,7 +693,7 @@ vlVdpVideoMixerSetAttributeValues(VdpVideoMixer mixer,
       case VDP_VIDEO_MIXER_ATTRIBUTE_NOISE_REDUCTION_LEVEL:
 
          val = *(float*)attribute_values[i];
-         if (val < 0.f || val > 1.f) {
+         if (val < 0.0f || val > 1.0f) {
             ret = VDP_STATUS_INVALID_VALUE;
             goto fail;
          }
@@ -704,7 +704,7 @@ vlVdpVideoMixerSetAttributeValues(VdpVideoMixer mixer,
 
       case VDP_VIDEO_MIXER_ATTRIBUTE_LUMA_KEY_MIN_LUMA:
          val = *(float*)attribute_values[i];
-         if (val < 0.f || val > 1.f) {
+         if (val < 0.0f || val > 1.0f) {
             ret = VDP_STATUS_INVALID_VALUE;
             goto fail;
          }
@@ -716,7 +716,7 @@ vlVdpVideoMixerSetAttributeValues(VdpVideoMixer mixer,
 
       case VDP_VIDEO_MIXER_ATTRIBUTE_LUMA_KEY_MAX_LUMA:
          val = *(float*)attribute_values[i];
-         if (val < 0.f || val > 1.f) {
+         if (val < 0.0f || val > 1.0f) {
             ret = VDP_STATUS_INVALID_VALUE;
             goto fail;
          }
@@ -729,7 +729,7 @@ vlVdpVideoMixerSetAttributeValues(VdpVideoMixer mixer,
       case VDP_VIDEO_MIXER_ATTRIBUTE_SHARPNESS_LEVEL:
 
          val = *(float*)attribute_values[i];
-         if (val < -1.f || val > 1.f) {
+         if (val < -1.0f || val > 1.0f) {
             ret = VDP_STATUS_INVALID_VALUE;
             goto fail;
          }
index a279ad3d020da522cac7e1bd954dd088ab7696ea..6e9cdd93a61e3cefecb26938a9ceffe2140227fb 100644 (file)
@@ -588,12 +588,12 @@ vlVdpVideoMixerQueryAttributeValueRange(VdpDevice device, VdpVideoMixerAttribute
    case VDP_VIDEO_MIXER_ATTRIBUTE_NOISE_REDUCTION_LEVEL:
    case VDP_VIDEO_MIXER_ATTRIBUTE_LUMA_KEY_MIN_LUMA:
    case VDP_VIDEO_MIXER_ATTRIBUTE_LUMA_KEY_MAX_LUMA:
-      *(float*)min_value = 0.f;
-      *(float*)max_value = 1.f;
+      *(float*)min_value = 0.0f;
+      *(float*)max_value = 1.0f;
       break;
    case VDP_VIDEO_MIXER_ATTRIBUTE_SHARPNESS_LEVEL:
-      *(float*)min_value = -1.f;
-      *(float*)max_value = 1.f;
+      *(float*)min_value = -1.0f;
+      *(float*)max_value = 1.0f;
       break;
    case VDP_VIDEO_MIXER_ATTRIBUTE_SKIP_CHROMA_DEINTERLACE:
       *(uint8_t*)min_value = 0;