Compute Library
 21.11
ScaleHelpers.h File Reference
#include "arm_compute/core/Error.h"
#include "arm_compute/core/QuantizationInfo.h"
#include <algorithm>
#include <cmath>
#include <cstddef>
#include <cstdint>

Go to the source code of this file.

Namespaces

 arm_compute
 Copyright (c) 2017-2021 Arm Limited.
 
 arm_compute::scale_helpers
 

Functions

uint8_t delta_bilinear_c1_quantized (const uint8_t *pixel_ptr, size_t stride, float dx, float dy, UniformQuantizationInfo iq_info, UniformQuantizationInfo oq_info)
 Computes bilinear interpolation for quantized input and output, using the pointer to the top-left pixel and the pixel's distance between the real coordinates and the smallest following integer coordinates. More...
 
int8_t delta_bilinear_c1_quantized (const int8_t *pixel_ptr, size_t stride, float dx, float dy, UniformQuantizationInfo iq_info, UniformQuantizationInfo oq_info)
 Computes bilinear interpolation for quantized input and output, using the pointer to the top-left pixel and the pixel's distance between the real coordinates and the smallest following integer coordinates. More...
 
uint8_t pixel_area_c1u8_clamp (const uint8_t *first_pixel_ptr, size_t stride, size_t width, size_t height, float wr, float hr, int x, int y)
 Return the pixel at (x,y) using area interpolation by clamping when out of borders. More...
 
float delta_bilinear (float a00, float a01, float a10, float a11, float dx_val, float dy_val)
 Computes bilinear interpolation using the top-left, top-right, bottom-left, bottom-right pixels and the pixel's distance between the real coordinates and the smallest following integer coordinates. More...