Gammu internals  1.38.0
gsmlogo.h
Go to the documentation of this file.
1 /* (c) 2002-2004 by Marcin Wiacek */
2 
3 #ifndef __gsm_bitmaps_h
4 #define __gsm_bitmaps_h
5 
6 #include <gammu-calendar.h>
7 #include <gammu-bitmap.h>
8 
9 typedef enum {
10  GSM_NokiaStartupLogo = 1, /*size 84*48*/
11  GSM_NokiaOperatorLogo, /*size 72*14*/
12  GSM_Nokia7110OperatorLogo, /*size 78*21*/
13  GSM_Nokia6510OperatorLogo, /*size 78*21*/
14  GSM_NokiaCallerLogo, /*size 72*14*/
15  GSM_NokiaPictureImage, /*size 72*28*/
16  GSM_Nokia7110StartupLogo, /*size 96*65*/
17  GSM_Nokia6210StartupLogo, /*size 96*60*/
19  GSM_EMSSmallPicture, /*size 8* 8*/
20  GSM_EMSMediumPicture, /*size 16*16*/
21  GSM_EMSBigPicture, /*size 32*32*/
24 
25 void GSM_GetMaxBitmapWidthHeight(GSM_Bitmap_Types Type, size_t *width, size_t *height);
26 void GSM_ResizeBitmap(GSM_Bitmap * dest, GSM_Bitmap * src, size_t width, size_t height);
27 void GSM_ReverseBitmap(GSM_Bitmap * Bitmap);
28 size_t GSM_GetBitmapSize(GSM_Bitmap * bmp);
29 
30 
31 GSM_Error BMP2Bitmap (unsigned char *buffer, FILE *file,GSM_Bitmap *bitmap);
32 GSM_Error Bitmap2BMP (unsigned char *buffer, FILE *file,GSM_Bitmap *bitmap);
33 
34 void PHONE_GetBitmapWidthHeight (GSM_Phone_Bitmap_Types Type, size_t *width, size_t *height);
35 size_t PHONE_GetBitmapSize (GSM_Phone_Bitmap_Types Type, size_t width, size_t height);
36 void PHONE_ClearBitmap (GSM_Phone_Bitmap_Types Type, char *buffer, size_t width, size_t height);
37 void PHONE_DecodeBitmap (GSM_Phone_Bitmap_Types Type, char *buffer, GSM_Bitmap *Bitmap);
38 void PHONE_EncodeBitmap (GSM_Phone_Bitmap_Types Type, char *buffer, GSM_Bitmap *Bitmap);
39 
40 void NOKIA_CopyBitmap (GSM_Phone_Bitmap_Types Type, GSM_Bitmap *Bitmap, char *Buffer, size_t *Length);
41 
42 #endif
43 
44 /* How should editor hadle tabs in this file? Add editor commands here.
45  * vim: noexpandtab sw=8 ts=8 sts=8:
46  */
void PHONE_DecodeBitmap(GSM_Phone_Bitmap_Types Type, char *buffer, GSM_Bitmap *Bitmap)
Definition: gsmlogo.c:141
void GSM_ReverseBitmap(GSM_Bitmap *Bitmap)
Definition: gsmlogo.c:273
size_t GSM_GetBitmapSize(GSM_Bitmap *bmp)
Definition: gsmlogo.c:252
GSM_Error Bitmap2BMP(unsigned char *buffer, FILE *file, GSM_Bitmap *bitmap)
Definition: gsmlogo.c:321
GSM_Error
Definition: gammu-error.h:23
GSM_Bitmap_Types
Definition: gammu-bitmap.h:54
GSM_Phone_Bitmap_Types
Definition: gsmlogo.h:9
void PHONE_GetBitmapWidthHeight(GSM_Phone_Bitmap_Types Type, size_t *width, size_t *height)
Definition: gsmlogo.c:23
void PHONE_EncodeBitmap(GSM_Phone_Bitmap_Types Type, char *buffer, GSM_Bitmap *Bitmap)
Definition: gsmlogo.c:197
size_t PHONE_GetBitmapSize(GSM_Phone_Bitmap_Types Type, size_t width, size_t height)
Definition: gsmlogo.c:44
void GSM_GetMaxBitmapWidthHeight(GSM_Bitmap_Types Type, size_t *width, size_t *height)
Definition: gsmlogo.c:217
void PHONE_ClearBitmap(GSM_Phone_Bitmap_Types Type, char *buffer, size_t width, size_t height)
Definition: gsmlogo.c:192
GSM_Error BMP2Bitmap(unsigned char *buffer, FILE *file, GSM_Bitmap *bitmap)
Definition: gsmlogo.c:705
void NOKIA_CopyBitmap(GSM_Phone_Bitmap_Types Type, GSM_Bitmap *Bitmap, char *Buffer, size_t *Length)
Definition: gsmlogo.c:1132
void GSM_ResizeBitmap(GSM_Bitmap *dest, GSM_Bitmap *src, size_t width, size_t height)
Definition: gsmlogo.c:288