Program Listing for File image_struct.h¶
↰ Return to documentation for file (c/fmdt/image/image_struct.h)
#pragma once
#include <stdint.h>
#include <stdlib.h>
enum color_e { COLOR_MISC = 0,
COLOR_GRAY,
COLOR_GREEN,
COLOR_RED,
COLOR_PURPLE,
COLOR_ORANGE,
COLOR_BLUE,
COLOR_YELLOW,
N_COLORS
};
typedef enum color_e* vec_color_e;
typedef struct {
uint8_t r;
uint8_t g;
uint8_t b;
} rgb8_t;
typedef struct {
size_t height;
size_t width;
void* pixels;
void* container_2d;
} img_data_t;