2 # gfxprim_config.py - module configuring GfxPrim code generation and
7 # 2011 - Tomas Gavenciak <gavento@ucw.cz>
8 # 2011 - Cyril Hrubis <metan@ucw.cz>
10 # This file is sourced by all the generating scripts.
11 # Moreover, the generated files are sourced by almost all Gfxprim sources,
12 # so a complete recompilation is required after any change.
15 config
= GfxPrimConfig(
17 # C name and bit-size of the GP_pixel type
18 pixel_type
= "uint32_t",
21 # List of pixel sizes (bpp), explicit on purpose
22 sizes
= [1, 2, 4, 8, 16, 32]
24 # bit endians to generate, keep this fixed to LE, BE for now
25 bit_endians
= ['LE', 'BE']
27 # List of PixelTypes, order defines the numbering.
28 # The "Undefined" type is added automatically.
35 PixelType(name
='RGBx8888', size
=32, chanslist
=[
40 PixelType(name
='RGBA8888', size
=32, chanslist
=[
46 PixelType(name
='RGB888', size
=24, chanslist
=[
51 PixelType(name
='RGB565', size
=16, chanslist
=[
60 PixelType(name
='P2', size
=2, bit_endian
='LE', chanslist
=[
63 PixelType(name
='P4', size
=4, bit_endian
='LE', chanslist
=[
66 PixelType(name
='P8', size
=8, bit_endian
='LE', chanslist
=[
70 # Gray-only pixel types
73 PixelType(name
='V1', size
=1, bit_endian
='LE', chanslist
=[
76 PixelType(name
='V2', size
=2, bit_endian
='LE', chanslist
=[
79 PixelType(name
='V4', size
=4, bit_endian
='LE', chanslist
=[
82 PixelType(name
='V8', size
=8, bit_endian
='LE', chanslist
=[
89 PixelType(name
='VA12', size
=4, bit_endian
='BE', chanslist
=[