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

colors #1

Open
sug0 opened this issue Feb 4, 2019 · 0 comments
Open

colors #1

sug0 opened this issue Feb 4, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@sug0
Copy link
Owner

sug0 commented Feb 4, 2019

  • Add im_initcolor_* methods for Color_t
  • Add cap field to Color_t to prevent future wasteful memory allocations, namely in
    • if (unlikely(!dst->color || (dst->color && dst->size < sizeof(uint8_t)))) which should become...
    • if (unlikely(!dst->color || (dst->color && dst->cap < sizeof(uint8_t))))
    • New allocations should save the cap of the region
    • If Color_t is modified to contain a new type of color, then size should be updated in accordance with the storage used
@sug0 sug0 added the enhancement New feature or request label Feb 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant