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

Function stbi__vertical_flip_slices

include/stb/stb_image.h:1247–1257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1245
1246#ifndef STBI_NO_GIF
1247static void stbi__vertical_flip_slices(void *image, int w, int h, int z, int bytes_per_pixel)
1248{
1249 int slice;
1250 int slice_size = w * h * bytes_per_pixel;
1251
1252 stbi_uc *bytes = (stbi_uc *)image;
1253 for (slice = 0; slice < z; ++slice) {
1254 stbi__vertical_flip(bytes, w, h, bytes_per_pixel);
1255 bytes += slice_size;
1256 }
1257}
1258#endif
1259
1260static unsigned char *stbi__load_and_postprocess_8bit(stbi__context *s, int *x, int *y, int *comp, int req_comp)

Callers 1

Calls 1

stbi__vertical_flipFunction · 0.85

Tested by

no test coverage detected