1 /***************************************************************************
2 * Copyright (c) 2024 Microsoft Corporation
3 *
4 * This program and the accompanying materials are made available under the
5 * terms of the MIT License which is available at
6 * https://opensource.org/licenses/MIT.
7 *
8 * SPDX-License-Identifier: MIT
9 **************************************************************************/
10
11
12 /**************************************************************************/
13 /**************************************************************************/
14 /** */
15 /** GUIX Component */
16 /** */
17 /** Display Management (Display) */
18 /** */
19 /**************************************************************************/
20
21 #define GX_SOURCE_CODE
22
23
24 /* Include necessary system files. */
25
26 #include "gx_api.h"
27 #include "gx_context.h"
28 #include "gx_system.h"
29 #include "gx_image_reader.h"
30 #include "gx_display.h"
31
32 /**************************************************************************/
33 /* */
34 /* FUNCTION RELEASE */
35 /* */
36 /* _gx_dislay_driver_24xrgb_rotated_jpeg_draw PORTABLE C */
37 /* 6.3.0 */
38 /* AUTHOR */
39 /* */
40 /* Kenneth Maxwell, Microsoft Corporation */
41 /* */
42 /* DESCRIPTION */
43 /* */
44 /* 24xrgb rotated screen driver JPEG image draw routine. */
45 /* */
46 /* INPUT */
47 /* */
48 /* context Drawing context */
49 /* xpos x-coord of top-left draw point*/
50 /* ypos y-coord of top-left draw point*/
51 /* pixelmap Pointer to GX_PIXELMAP struct */
52 /* */
53 /* OUTPUT */
54 /* */
55 /* status Completion status */
56 /* */
57 /* CALLS */
58 /* */
59 /* _gx_image_reader_jpeg_mcu_decode */
60 /* [_gx_display_driver_24xrgb_rotated_mcu_draw] */
61 /* */
62 /* CALLED BY */
63 /* */
64 /* Application Code */
65 /* GUIX Internal Code */
66 /* */
67 /* RELEASE HISTORY */
68 /* */
69 /* DATE NAME DESCRIPTION */
70 /* */
71 /* 02-02-2021 Kenneth Maxwell Initial Version 6.1.4 */
72 /* 10-31-2023 Ting Zhu Modified comment(s), */
73 /* removed a parameter from */
74 /* jpeg mcu decode function, */
75 /* resulting in version 6.3.0 */
76 /* */
77 /**************************************************************************/
78 #if defined(GX_SOFTWARE_DECODER_SUPPORT)
_gx_display_driver_24xrgb_rotated_jpeg_draw(GX_DRAW_CONTEXT * context,INT xpos,INT ypos,GX_PIXELMAP * pixelmap)79 VOID _gx_display_driver_24xrgb_rotated_jpeg_draw(GX_DRAW_CONTEXT *context, INT xpos, INT ypos, GX_PIXELMAP *pixelmap)
80 {
81 _gx_image_reader_jpeg_mcu_decode(pixelmap -> gx_pixelmap_data,
82 pixelmap -> gx_pixelmap_data_size,
83 context, xpos, ypos);
84 }
85 #endif
86
87