Image helper functions. More...
Go to the source code of this file.
Macros | |
#define | USE_COCMD_SETBITMAP 1 |
Configuration. | |
#define | ENABLE_ROTATEAROUND 1 |
#define | MAX_ANGLE 360 |
Graphics definitions. | |
#define | CIRCLE_MAX 65536 |
#define | ANGLE(x) (x * 100 * CIRCLE_MAX / (MAX_ANGLE * 100)) |
Graphics unity. | |
#define | VP(x) (x*16) |
Functions | |
static uint32_t | getformatW (uint32_t format) |
static uint32_t | getformatH (uint32_t format) |
static void | setupBitmap (EVE_HalContext *phost, Img_t *image) |
static void | rotateBitmap (EVE_HalContext *phost, Img_t *image) |
static void | drawBitmap (EVE_HalContext *phost, Img_t *image) |
int | Image_Setup_Rotate (float angle, uint32_t rootx, uint32_t rooty) |
int | Image_Copy_To_RamG (EVE_HalContext *phost, Img_t *image, uint32_t isRestart) |
int | Image_Copy_To_RamG_And_Draw_Image (EVE_HalContext *phost, Img_t *image, uint32_t isRestart) |
int | Image_Draw (EVE_HalContext *phost, Img_t *image) |
int | Image_Draw_From_RAM_G (EVE_HalContext *phost, uint32_t address, uint32_t x, uint32_t y, uint32_t w, uint32_t h, uint16_t bitmapLayout, uint32_t extFormat, uint8_t tag) |
int | Image_Draw_From_Flash (EVE_HalContext *phost, uint32_t address, uint32_t x, uint32_t y, uint32_t w, uint32_t h, uint16_t bitmapLayout, uint32_t extFormat, uint8_t tag) |
Variables | |
static float | mangle = 0 |
Status stores. | |
static uint32_t | mrootx = 0 |
static uint32_t | mrooty = 0 |
static int | misRotate = 0 |
Image helper functions.
MIT License
Copyright (c) [2019] [Bridgetek Pte Ltd (BRTChip)]
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Definition in file Image.c.
#define ANGLE | ( | x | ) | (x * 100 * CIRCLE_MAX / (MAX_ANGLE * 100)) |
|
static |
int Image_Copy_To_RamG | ( | EVE_HalContext * | phost, |
Img_t * | image, | ||
uint32_t | isRestart | ||
) |
Definition at line 180 of file Image.c.
int Image_Copy_To_RamG_And_Draw_Image | ( | EVE_HalContext * | phost, |
Img_t * | image, | ||
uint32_t | isRestart | ||
) |
Definition at line 197 of file Image.c.
int Image_Draw | ( | EVE_HalContext * | phost, |
Img_t * | image | ||
) |
Definition at line 215 of file Image.c.
int Image_Draw_From_Flash | ( | EVE_HalContext * | phost, |
uint32_t | address, | ||
uint32_t | x, | ||
uint32_t | y, | ||
uint32_t | w, | ||
uint32_t | h, | ||
uint16_t | bitmapLayout, | ||
uint32_t | extFormat, | ||
uint8_t | tag | ||
) |
Definition at line 244 of file Image.c.
int Image_Draw_From_RAM_G | ( | EVE_HalContext * | phost, |
uint32_t | address, | ||
uint32_t | x, | ||
uint32_t | y, | ||
uint32_t | w, | ||
uint32_t | h, | ||
uint16_t | bitmapLayout, | ||
uint32_t | extFormat, | ||
uint8_t | tag | ||
) |
|
static |
Definition at line 138 of file Image.c.
|
static |
Definition at line 101 of file Image.c.