Changed error codes

This commit is contained in:
2020-11-06 02:44:09 +01:00
parent cbb8da45ce
commit 3d5729f7b7
6 changed files with 37 additions and 27 deletions

View File

@@ -7,8 +7,11 @@
#include <stdint.h>
#define IMAGE_FLIP_SUCCESS 0
#define IMAGE_FLIP_FAIL 0
#define IMAGE_FLIP_ERROR_PREFIX 0x30
#define IMAGE_FLIP_LENGTH_ERROR (IMAGE_FLIP_ERROR_PREFIX + 0x01)
#define IMAGE_FLIP_SUCCESS 0x00
uint8_t flip_image(const uint8_t* source, uint8_t* destination, uint64_t data_length, uint64_t width, uint64_t height);