SWILIB API (X75)    
Loading...
Searching...
No Matches
image.h File Reference
#include "base.h"

Go to the source code of this file.

Data Structures

struct  PNGLIST
 
struct  DYNPNGICONLIST
 
struct  PNGTOP_DESC
 
struct  IMGHDR
 Image header. More...
 
struct  EIMGHDR
 Extended image header (without 255x255 limitation). More...
 

Macros

#define FIRST_UCS2_BITMAP   0xE137
 

Typedefs

typedef struct IMGHDR IMGHDR
 
typedef struct EIMGHDR EIMGHDR
 
typedef struct PNGLIST PNGLIST
 
typedef struct DYNPNGICONLIST DYNPNGICONLIST
 
typedef struct PNGTOP_DESC PNGTOP_DESC
 

Enumerations

enum  ImghdrBitmapType {
  IMGHDR_TYPE_WB = 1 ,
  IMGHDR_TYPE_RGB332 = 5 ,
  IMGHDR_TYPE_ARGB4444 = 7 ,
  IMGHDR_TYPE_RGB565 = 8 ,
  IMGHDR_TYPE_ARGB8888 = 0xA ,
  IMGHDR_TYPE_RLE_RGB332 = 0x85 ,
  IMGHDR_TYPE_RLE_ARGB4444 = 0x87 ,
  IMGHDR_TYPE_RLE_RGB565 = 0x88 ,
  IMGHDR_TYPE_RLE_ARGB8888 = 0x8A
}
 Type of IMGHDR bitmap. More...
 
enum  ThemeCacheImageID {
  TCI_HEADLINE_DEFAULT ,
  TCI_HEADLINE_FULLSCREEN ,
  TCI_BODY_DEFAULT ,
  TCI_BODY_TAB ,
  TCI_BOTTOM_DEFAULT ,
  TCI_BOTTOM_FULLSCREEN ,
  TCI_POPUP_OPTIONS ,
  TCI_POPUP_FEEDBACK ,
  TCI_SELECTION_1_LINE ,
  TCI_SELECTION_2_LINE ,
  TCI_SELECTION_3_LINE ,
  TCI_SELECTION_ICON_ONLY ,
  TCI_POPUP_SEARCH_FIELD ,
  TCI_POPUP_QUICK_ACCESS_FIELD ,
  TCI_PROGRESS_BAR ,
  TCI_TAB_SELECTED ,
  TCI_TAB_UNSELECTED ,
  TCI_STATUS_BAR_STANDARD ,
  TCI_STATUS_BAR_FULLSCREEN ,
  TCI_TOTAL
}
 ID of theme cache images. More...
 

Functions

PNGTOP_DESC * PNG_TOP (void)
 Get a pointer to the PNG list (PIT overrides).
 
IMGHDR * GetPITaddr (int picture)
 Get an image from the PIT table (images in firmware).
 
int GetImgHeight (int picture)
 Get the width of the image from the PIT table.
 
int GetImgWidth (int picture)
 Get the height of the image from the PIT table.
 
IMGHDR * CreateIMGHDRFromPngFile (const char *path, int type)
 Load PNG image from the filesystem.
 
IMGHDR * GetIMGHDRFromThemeCache (int index)
 Get an image from the phone theme.
 
int GetPicNByUnicodeSymbol (int symbol)
 Get image from U+E1XX "emoji".
 
int CalcBitmapSize (short w, short h, char type)
 Calculate bitmap size by WxH and type.
 
Canvas

"Canvas" is a really meaning for standard UI background.

IMGHDR * GetIMGHDRFromCanvasCache (char canvas_id)
 Get an image by canvas_id from cache.
 
IMGHDR * GetCanvasBufferPicPtr (char canvas_id)
 Get an image by canvas_id (low level).
 
int IsCanvasBufferSet (char canvas_id)
 Check if canvas exists for the given canvas_id.
 
void MMI_CanvasBuffer_FlushV (char canvas_id)
 Flush "canvas" in cache.
 
Dynamic PIT
void PIT_ClearCache (void)
 Clear the in‑memory PIT image cache.
 
void PIT_SetImage (uint32_t picture, const IMGHDR *img)
 Override the default image for a given PIT slot.
 
void PIT_ResetImage (uint32_t picture)
 Restore the original image for a given PIT slot.
 
int GetPITSize ()
 Get the maximum count of PIT icons.
 
int16_t GetLgpIcon (int lgp_id)
 Get image by LGP_ID.
 
Dynamic icons

Dynamic icons - are those icons which can be used as U+E2XX unicode sequences in the standard UI.

XX in U+E2XX is the dynamic image slot number.

IMGHDR * GetPitAdrBy0xE200Symbol (int symbol)
 Get image from U+E2XX dynamic image.
 
int GetMaxDynIcon (void)
 Get the maximum count of the dynamic icons.
 
int IsDynIconBusy (int picture)
 Check if the specified slot of the dynamic icons is used.
 
void SetDynIcon (int picture, IMGHDR *img, char *bitmap)
 Set the image to the slot of the dynamic images.
 
void FreeDynIcon (int picture)
 Release the slot of the dynamic icons.