[host] d12: implement initial RGB24 support

This commit is contained in:
Geoffrey McRae
2024-02-02 02:37:17 +11:00
parent 4076377820
commit 60b01566e1
10 changed files with 704 additions and 89 deletions

View File

@@ -21,6 +21,8 @@
#ifndef _H_LG_COMMON_UTIL_
#define _H_LG_COMMON_UTIL_
#include <stddef.h>
#ifndef min
#define min(a,b) ({ __typeof__ (a) _a = (a); __typeof__ (b) _b = (b); \
_a < _b ? _a : _b; })
@@ -43,4 +45,7 @@
#define unlikely(expr) __builtin_expect(!!(expr), 0)
#define likely(expr) __builtin_expect(!!(expr), 1)
#define _STR(x) #x
#define STR(x) _STR(x)
#endif