Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(135)

Unified Diff: third_party/qcms/src/transform_util.h

Issue 1206353002: [qcms] Make half float code self-contained: add halffloat.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/qcms/src/transform.c ('k') | third_party/qcms/src/transform_util.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/qcms/src/transform_util.h
diff --git a/third_party/qcms/src/transform_util.h b/third_party/qcms/src/transform_util.h
index 7fb9baf272767483761ed381be611e8d23f9e8fd..44ff63ec8f0a87e3c914d1a94e32e9875b58db77 100644
--- a/third_party/qcms/src/transform_util.h
+++ b/third_party/qcms/src/transform_util.h
@@ -55,17 +55,4 @@ void build_output_lut(struct curveType *trc,
struct matrix matrix_invert(struct matrix mat);
qcms_bool compute_precache(struct curveType *trc, uint8_t *output);
-static inline unsigned short float_to_half_float(float f)
-{
- extern const unsigned short qcms_half_float_base_table[512];
- extern const unsigned char qcms_half_float_shift_table[512];
-
- // See Blink::Source/platform/graphics/gpu/WebGLImageConversion.cpp::convertFloatToHalfFloat()
- // and http://crbug.com/491784
-
- unsigned temp = *((unsigned *)(&f));
- unsigned signexp = (temp >> 23) & 0x1ff;
- return qcms_half_float_base_table[signexp] + ((temp & 0x007fffff) >> qcms_half_float_shift_table[signexp]);
-}
-
#endif
« no previous file with comments | « third_party/qcms/src/transform.c ('k') | third_party/qcms/src/transform_util.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698