[babl] sse2-float: use babl_linear_to_gamma_2_2f() (instead of double)
- From: N/A <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [babl] sse2-float: use babl_linear_to_gamma_2_2f() (instead of double)
- Date: Thu, 11 Jan 2018 14:28:28 +0000 (UTC)
commit 12c0a746359ebfa420d2cd6eea3d04bd055df378
Author: Ell <ell_se yahoo com>
Date: Thu Jan 11 09:22:46 2018 -0500
sse2-float: use babl_linear_to_gamma_2_2f() (instead of double)
Use the single-precision babl_linear_to_gamma_2_2f() function,
instead of the double-precision version, when converting "leftover"
samples, so that the result is consistent with the vectorized
samples.
extensions/sse2-float.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/extensions/sse2-float.c b/extensions/sse2-float.c
index 41a00b2..bb9f72e 100644
--- a/extensions/sse2-float.c
+++ b/extensions/sse2-float.c
@@ -432,7 +432,7 @@ conv_yaF_linear_yaF_gamma (const Babl *conversion,const float *src, float *dst,
while (samples--)
{
- *dst++ = babl_linear_to_gamma_2_2 (*src++);
+ *dst++ = babl_linear_to_gamma_2_2f (*src++);
*dst++ = *src++;
}
}
@@ -503,7 +503,7 @@ conv_yF_linear_yF_gamma (const Babl *conversion,const float *src, float *dst, lo
while (samples--)
{
- *dst++ = babl_linear_to_gamma_2_2 (*src++);
+ *dst++ = babl_linear_to_gamma_2_2f (*src++);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]