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

Side by Side Diff: ui/gfx/half_float.h

Issue 2648043002: Create FP16 LUTs when needed (Closed)
Patch Set: moved half-float conversion Created 3 years, 10 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef UI_GFX_COLOR_HALF_FLOAT_H_
6 #define UI_GFX_COLOR_HALF_FLOAT_H_
7
8 #include <stdint.h>
9 #include <stdlib.h>
10
11 #include "ui/gfx/gfx_export.h"
12
13 namespace gfx {
14
15 typedef uint16_t HalfFloat;
16
17 // Floats are expected to be within +/- 65535.0;
18 GFX_EXPORT void FloatToHalfFloat(const float* input,
19 HalfFloat* output,
ccameron 2017/01/24 18:38:49 I'd vaguely prefer output to be a void*, but let m
hubbe 2017/01/24 18:47:46 That doesn't sound like a good idea to me. Any 2-b
20 size_t num);
21 };
22 #endif
OLDNEW
« cc/output/color_lut_cache.cc ('K') | « ui/gfx/BUILD.gn ('k') | ui/gfx/half_float.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698