Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

color.h moved to ship folder #695

Open
Kenix3 opened this issue Oct 24, 2024 · 1 comment
Open

color.h moved to ship folder #695

Kenix3 opened this issue Oct 24, 2024 · 1 comment
Labels
Milestone

Comments

@Kenix3
Copy link
Owner

Kenix3 commented Oct 24, 2024

We will only keep Color_RGB8 and Color_RGBA8. Everything else belongs in the port.

Blocked by #580

@Kenix3 Kenix3 added this to the LUS 2.0.0 milestone Oct 24, 2024
@Kenix3 Kenix3 added the blocked label Oct 24, 2024
@briaguya-ai
Copy link
Collaborator

move to shipdk

typedef struct {
uint8_t r, g, b;
} Color_RGB8;
typedef struct {
uint8_t r, g, b, a;
} Color_RGBA8;

lets ports handle it

typedef union {
struct {
#ifdef IS_BIGENDIAN
uint8_t r, g, b, a;
#else
uint8_t a, b, g, r;
#endif
};
uint32_t rgba;
} Color_RGBA8_u32;
typedef struct {
float r, g, b, a;
} Color_RGBAf;
typedef union {
struct {
uint16_t r : 5;
uint16_t g : 5;
uint16_t b : 5;
uint16_t a : 1;
};
uint16_t rgba;
} Color_RGBA16;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants