diff options
author | Frank Barchard <fbarchard@google.com> | 2018-02-23 16:14:42 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2018-02-24 00:34:07 +0000 |
commit | 85722f5d93bc747e346c0026c0a32586e1029091 (patch) | |
tree | 765b652b38765dea512a6f061058f5df2a2ed19d /include/libyuv/planar_functions.h | |
parent | 0ea50cbc74ad6de919e575ba319c9c27c8f2fe3e (diff) | |
download | libyuv-85722f5d93bc747e346c0026c0a32586e1029091.tar.gz |
ByteToFloatRow_NEON to convert and scale bytes to floats
Each byte is converted to float (0.0 to 255.0) and then multiplied
by a scale parameter.
Bug: None
Test: arm 64 build passes.
Change-Id: I04736798540b8d985f60abdf0388e24a209d075b
Reviewed-on: https://chromium-review.googlesource.com/930226
Commit-Queue: Frank Barchard <fbarchard@chromium.org>
Reviewed-by: Ian Field <ianfield@google.com>
Diffstat (limited to 'include/libyuv/planar_functions.h')
-rw-r--r-- | include/libyuv/planar_functions.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/libyuv/planar_functions.h b/include/libyuv/planar_functions.h index 324bb1ed..91137bab 100644 --- a/include/libyuv/planar_functions.h +++ b/include/libyuv/planar_functions.h @@ -498,6 +498,10 @@ int HalfFloatPlane(const uint16_t* src_y, int width, int height); +// Convert a buffer of bytes to floats, scale the values and store as floats. +LIBYUV_API +int ByteToFloat(const uint8_t* src_y, float* dst_y, float scale, int width); + // Quantize a rectangle of ARGB. Alpha unaffected. // scale is a 16 bit fractional fixed point scaler between 0 and 65535. // interval_size should be a value between 1 and 255. |