MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / is_valid_pixel_index

Function is_valid_pixel_index

tests/validation/reference/Utils.h:54–57  ·  view source on GitHub ↗

Checks if a pixel has valid coordinates * * @param x X coordinate * @param y Y coordinate * @param width Width of the image * @param height Height of the image * @param border_size Border size * * @return True if pixel is valid else false */

Source from the content-addressed store, hash-verified

52 * @return True if pixel is valid else false
53 */
54inline bool is_valid_pixel_index(int x, int y, int width, int height, int border_size)
55{
56 return ((x >= -border_size) && (y >= -border_size) && (x < (width + border_size)) && (y < height + border_size));
57}
58
59#pragma GCC diagnostic push
60#pragma GCC diagnostic ignored "-Wstrict-overflow"

Callers 2

scale_imageFunction · 0.85
scale_coreFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected