1 #include "gx_api.h" 2 #include "tx_api.h" 3 #include "gx_display.h" 4 #include <stdio.h> 5 #include <stdlib.h> 6 7 typedef struct MAP_INFO_STRUCT{ 8 GX_RESOURCE_ID map_id; 9 GX_CHAR name[20]; 10 GX_VALUE xpos; 11 GX_VALUE ypos; 12 }MAP_INFO; 13 14 VOID *memory_allocate(ULONG size); 15 void memory_free(VOID *mem); 16 VOID memory_pool_create(); 17 UINT graphics_driver_565rgb_setup(GX_DISPLAY *display); 18 UINT graphics_driver_1555xrgb_setup(GX_DISPLAY *display); 19 UINT graphics_driver_24xrgb_setup(GX_DISPLAY *display); 20 UINT graphics_driver_8bit_palette_setup(GX_DISPLAY *display); 21 UINT graphics_driver_565rgb_rotated_setup(GX_DISPLAY *display); 22 UINT graphics_driver_1555xrgb_rotated_setup(GX_DISPLAY *display); 23 UINT graphics_driver_24xrgb_rotated_setup(GX_DISPLAY *display); 24 UINT graphics_driver_8bit_palette_rotated_setup(GX_DISPLAY *display); 25 VOID test_start(GX_BOOL g, GX_BOOL t, GX_BOOL s, UINT *results, UINT count); 26 VOID test_verify_canvas(GX_CANVAS *canvas, INT frame_id); 27 UINT test_end(); 28 UINT crc_calculate(UCHAR *data, INT len); 29 VOID test_jpeg_to_canvas_draw(GX_CANVAS *canvas, GX_WINDOW *window, MAP_INFO *test, INT frame_id); 30 VOID test_jpeg_to_pixelmap_draw(GX_CANVAS *canvas, GX_WINDOW *window, MAP_INFO *test, GX_UBYTE outformat, GX_UBYTE flags, INT frame_id);