You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
689 B
22 lines
689 B
8 years ago
|
#ifndef HAS_RECORD_H
|
||
|
#define HAS_RECORD_H 1
|
||
|
|
||
|
#include "bitmap.h"
|
||
|
#include "simdb.h"
|
||
|
|
||
|
/** struct for packed record usage */
|
||
|
typedef struct __attribute__((__packed__)) {
|
||
|
uint8_t used; /**< record is used */
|
||
|
uint8_t clevel_r; /**< color level: red */
|
||
|
uint8_t clevel_g; /**< color level: green */
|
||
|
uint8_t clevel_b; /**< color level: blue */
|
||
|
uint16_t image_w; /**< image width */
|
||
|
uint16_t image_h; /**< image height */
|
||
|
unsigned char __unused[8]; /**< padding */
|
||
|
unsigned char bitmap[SIMDB_BITMAP_SIZE]; /**< image luma bitmap */
|
||
|
} simdb_urec_t;
|
||
|
|
||
|
typedef char size_mismatch_for__simdb_urec_t[(sizeof(simdb_urec_t) == SIMDB_REC_LEN) * 2 - 1];
|
||
|
|
||
|
#endif /* RECORD_H */
|