blob: f0492d6e4ec90aa1683cbf3e6ae3aa0992ce54a5 [file] [log] [blame]
// Copyright (c) 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <stdint.h>
#include <stdlib.h>
#include "ui/gfx/gfx_export.h"
namespace gfx {
typedef uint16_t HalfFloat;
// Floats are expected to be within +/- 65535.0;
GFX_EXPORT void FloatToHalfFloat(const float* input,
HalfFloat* output,
size_t num);
} // namespace gfx