GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: gx_display_driver_4444argb_setup.c Lines: 11 11 100.0 %
Date: 2026-03-06 19:21:09 Branches: 0 0 - %

Line Branch Exec Source
1
2
/***************************************************************************
3
 * Copyright (c) 2024 Microsoft Corporation
4
 * Copyright (c) 2026-present Eclipse ThreadX contributors
5
 *
6
 * This program and the accompanying materials are made available under the
7
 * terms of the MIT License which is available at
8
 * https://opensource.org/licenses/MIT.
9
 *
10
 * SPDX-License-Identifier: MIT
11
 **************************************************************************/
12
13
14
/**************************************************************************/
15
/**************************************************************************/
16
/**                                                                       */
17
/** GUIX Component                                                        */
18
/**                                                                       */
19
/**   Display Management (Display)                                        */
20
/**                                                                       */
21
/**************************************************************************/
22
23
#define GX_SOURCE_CODE
24
/* Include necessary system files.  */
25
26
#include "gx_api.h"
27
#include "gx_display.h"
28
29
30
/**************************************************************************/
31
/*                                                                        */
32
/*  FUNCTION                                               RELEASE        */
33
/*                                                                        */
34
/*    _gx_display_driver_4444argb_setup                   PORTABLE C      */
35
/*                                                           6.1          */
36
/*  AUTHOR                                                                */
37
/*                                                                        */
38
/*    Kenneth Maxwell, Microsoft Corporation                              */
39
/*                                                                        */
40
/*  DESCRIPTION                                                           */
41
/*                                                                        */
42
/*    Generic 16-bit 4444ARGB color format display driver setup routine.  */
43
/*                                                                        */
44
/*  INPUT                                                                 */
45
/*                                                                        */
46
/*    display                               The display control block     */
47
/*    aux_data                              Driver-defined auxiliary data */
48
/*    toggle_function                       Driver-defined screen toggle  */
49
/*                                            function                    */
50
/*                                                                        */
51
/*  OUTPUT                                                                */
52
/*                                                                        */
53
/*    None                                                                */
54
/*                                                                        */
55
/*  CALLS                                                                 */
56
/*                                                                        */
57
/*    _gx_display_driver_565rgb_setup       Basic display driver setup .  */
58
/*                                            function for generic 565rgb */
59
/*                                            color format                */
60
/*                                                                        */
61
/*  CALLED BY                                                             */
62
/*                                                                        */
63
/*    GUIX Internal Code                                                  */
64
/*                                                                        */
65
/**************************************************************************/
66
12
VOID _gx_display_driver_4444argb_setup(GX_DISPLAY *display, VOID *aux_data,
67
                                       VOID (*toggle_function)(struct GX_CANVAS_STRUCT *canvas,
68
                                                               GX_RECTANGLE *dirty_area))
69
{
70
12
    _gx_display_driver_565rgb_setup(display, aux_data, toggle_function);
71
12
    display -> gx_display_color_format                           = GX_COLOR_FORMAT_4444ARGB;
72
12
    display -> gx_display_driver_native_color_get                = _gx_display_driver_4444argb_native_color_get;
73
12
    display -> gx_display_driver_pixelmap_draw                   = _gx_display_driver_4444argb_pixelmap_draw;
74
12
    display -> gx_display_driver_pixelmap_blend                  = _gx_display_driver_4444argb_pixelmap_blend;
75
12
    display -> gx_display_driver_canvas_blend                    = _gx_display_driver_4444argb_canvas_blend;
76
12
    display -> gx_display_driver_pixel_blend                     = _gx_display_driver_4444argb_pixel_blend;
77
12
    display -> gx_display_driver_horizontal_pixelmap_line_draw   = _gx_display_driver_4444argb_horizontal_pixelmap_line_draw;
78
12
    display -> gx_display_driver_pixelmap_rotate                 = _gx_display_driver_4444argb_pixelmap_rotate;
79
12
}
80