cogl: cleanup CoglPixelFormat
From the last commit:
By providing an (internal) table to map `CoglPixelFormat`s to their
respective properties we will be able to get rid of the unusual enum
values in the future. This is something we will need once we want to
have support for more pixel formats (such as YUV-based formats).
I've been working on the YUV support and it seems that we have to get rid of the special bits in the enum. We can then choose the either use one internal mapping table, or put switch (format) { case: ... }
everywhere.
AFAIK, none of the converted cogl_pixel_format_
functions is on a hot path, so performance shouldn't get a noticeable impact.
Edited by Niels De Graef