2 Copyright © 2013, The AROS Development Team. All rights reserved.
5 Desc: Graphics hidd color conversion initialization code.
8 #include <exec/types.h>
9 #include <proto/exec.h>
10 #include <aros/symbolsets.h>
12 #include "graphics_intern.h"
14 #include LC_LIBDEFS_FILE
18 void SetRGBConversionFunctions(HIDDT_RGBConversionFunction rgbconvertfuncs
[NUM_RGB_STDPIXFMT
][NUM_RGB_STDPIXFMT
]);
19 void SetArchRGBConversionFunctions(HIDDT_RGBConversionFunction rgbconvertfuncs
[NUM_RGB_STDPIXFMT
][NUM_RGB_STDPIXFMT
]);
21 static int ColorConv_Init(LIBBASETYPEPTR LIBBASE
)
23 struct class_static_data
*csd
= &LIBBASE
->hdg_csd
;
25 EnterFunc(bug("ColorConv_Init()\n"));
27 ObtainSemaphore(&csd
->rgbconvertfuncs_sem
);
29 SetRGBConversionFunctions(csd
->rgbconvertfuncs
);
30 SetArchRGBConversionFunctions(csd
->rgbconvertfuncs
);
32 ReleaseSemaphore(&csd
->rgbconvertfuncs_sem
);
34 ReturnInt("ColorConv_Init", ULONG
, TRUE
);
37 ADD2INITLIB(ColorConv_Init
, -1)