common render: added a new type for one byte pixel data.

This is designed using for masking buffers.

@Issue: https://github.com/thorvg/thorvg/issues/976
This commit is contained in:
Hermet Park 2023-05-01 22:12:30 +09:00 committed by Hermet Park
parent 01b26c43a6
commit e3f363fea7

View file

@ -41,6 +41,7 @@ enum ColorSpace
ARGB8888, //The channels are joined in the order: alpha, red, green, blue. Colors are alpha-premultiplied.
ABGR8888S, //The channels are joined in the order: alpha, blue, green, red. Colors are un-alpha-premultiplied.
ARGB8888S, //The channels are joined in the order: alpha, red, green, blue. Colors are un-alpha-premultiplied.
Grayscale8, //One single channel data.
Unsupported //TODO: Change to the default, At the moment, we put it in the last to align with SwCanvas::Colorspace.
};