Mesa (master): st/vdpau: replace 0.f and 1.f with 0.0f and 1.0f respectively

Emil Velikov evelikov at kemper.freedesktop.org
Tue Jun 14 14:33:10 UTC 2016


Module: Mesa
Branch: master
Commit: fdec8f9e42cc29efa275064be3cf7ae030bfebe7
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=fdec8f9e42cc29efa275064be3cf7ae030bfebe7

Author: Nayan Deshmukh <nayan26deshmukh at gmail.com>
Date:   Fri Jun 10 21:22:08 2016 +0530

st/vdpau: replace 0.f and 1.f with 0.0f and 1.0f respectively

Signed-off-by: Nayan Deshmukh <nayan26deshmukh at gmail.com>
Reviewed-by: Emil Velikov <emil.l.velikov at gmail.com>

---

 src/gallium/state_trackers/vdpau/mixer.c | 8 ++++----
 src/gallium/state_trackers/vdpau/query.c | 8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/gallium/state_trackers/vdpau/mixer.c b/src/gallium/state_trackers/vdpau/mixer.c
index b12a580..65c3ce2 100644
--- a/src/gallium/state_trackers/vdpau/mixer.c
+++ b/src/gallium/state_trackers/vdpau/mixer.c
@@ -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;
          }
diff --git a/src/gallium/state_trackers/vdpau/query.c b/src/gallium/state_trackers/vdpau/query.c
index a279ad3..6e9cdd9 100644
--- a/src/gallium/state_trackers/vdpau/query.c
+++ b/src/gallium/state_trackers/vdpau/query.c
@@ -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;




More information about the mesa-commit mailing list