|
Gammu internals
1.38.0
|
Data Structures | |
| struct | GSM_BinaryPicture |
| struct | GSM_Bitmap |
| struct | GSM_MultiBitmap |
Functions | |
| GSM_Error | GSM_GetBitmap (GSM_StateMachine *s, GSM_Bitmap *Bitmap) |
| GSM_Error | GSM_SetBitmap (GSM_StateMachine *s, GSM_Bitmap *Bitmap) |
| void | GSM_PrintBitmap (FILE *file, GSM_Bitmap *bitmap) |
| GSM_Error | GSM_SaveBitmapFile (char *FileName, GSM_MultiBitmap *bitmap) |
| GSM_Error | GSM_ReadBitmapFile (char *FileName, GSM_MultiBitmap *bitmap) |
| gboolean | GSM_IsPointBitmap (GSM_Bitmap *bmp, int x, int y) |
| void | GSM_SetPointBitmap (GSM_Bitmap *bmp, int x, int y) |
| void | GSM_ClearPointBitmap (GSM_Bitmap *bmp, int x, int y) |
| void | GSM_ClearBitmap (GSM_Bitmap *bmp) |
| GSM_Error | GSM_GetScreenshot (GSM_StateMachine *s, GSM_BinaryPicture *picture) |
Bitmaps manipulations.
Binary picture types.
| Enumerator | |
|---|---|
| PICTURE_BMP | |
| PICTURE_GIF | |
| PICTURE_JPG | |
| PICTURE_ICN | |
| PICTURE_PNG | |
Definition at line 30 of file gammu-bitmap.h.
| enum GSM_Bitmap_Types |
Enum to handle all possible bitmaps, which are not saved in various filesystems.
Definition at line 54 of file gammu-bitmap.h.
| void GSM_ClearBitmap | ( | GSM_Bitmap * | bmp | ) |
Clears bitmap.
| bmp | Bitmap |
Definition at line 247 of file gsmlogo.c.
References GSM_Bitmap::BitmapPoints, and GSM_GetBitmapSize().
Referenced by BMP2Bitmap(), GSM_EncodeEMSMultiPartSMS(), GSM_ResizeBitmap(), loadnlm(), loadnolngg(), and PHONE_DecodeBitmap().
| void GSM_ClearPointBitmap | ( | GSM_Bitmap * | bmp, |
| int | x, | ||
| int | y | ||
| ) |
Clears point in bitmap.
| bmp | Bitmap |
| x | Horizontal coordinate. |
| y | Vertical coordinate. |
Definition at line 233 of file gsmlogo.c.
References GSM_Bitmap::BitmapPoints, GSM_Bitmap::BitmapWidth, and ClearBit().
Referenced by GSM_DecodeEMSMultiPartSMS(), and GSM_ReverseBitmap().
| GSM_Error GSM_GetBitmap | ( | GSM_StateMachine * | s, |
| GSM_Bitmap * | Bitmap | ||
| ) |
Gets bitmap from phone.
Gets bitmap.
Definition at line 1288 of file api.c.
References CHECK_PHONE_CONNECTION, GSM_Phone::Functions, GSM_Phone_Functions::GetBitmap, _GSM_StateMachine::Phone, and PRINT_LOG_ERROR.
| GSM_Error GSM_GetScreenshot | ( | GSM_StateMachine * | s, |
| GSM_BinaryPicture * | picture | ||
| ) |
Gets phone screenshot.
| s | State machine pointer. |
| picture | Structure which will hold data. |
Gets phone screenshot
Definition at line 1870 of file api.c.
References GSM_BinaryPicture::Buffer, CHECK_PHONE_CONNECTION, GSM_Phone::Functions, GSM_Phone_Functions::GetScreenshot, GSM_BinaryPicture::Length, _GSM_StateMachine::Phone, PRINT_LOG_ERROR, and GSM_BinaryPicture::Type.
| gboolean GSM_IsPointBitmap | ( | GSM_Bitmap * | bmp, |
| int | x, | ||
| int | y | ||
| ) |
Checks whether point is set in bitmap.
| bmp | Bitmap |
| x | Horizontal coordinate. |
| y | Vertical coordinate. |
Definition at line 238 of file gsmlogo.c.
References GSM_Bitmap::BitmapPoints, GSM_Bitmap::BitmapWidth, FALSE, GetBit(), and TRUE.
Referenced by Bitmap2BMP(), GSM_DecodeEMSMultiPartSMS(), GSM_EncodeEMSMultiPartSMS(), GSM_PrintBitmap(), GSM_ResizeBitmap(), GSM_ReverseBitmap(), PHONE_EncodeBitmap(), PrivSaveNGGNOL(), PrivSaveNLMWBMP(), and savexpm().
| void GSM_PrintBitmap | ( | FILE * | file, |
| GSM_Bitmap * | bitmap | ||
| ) |
Prints bitmap to file descriptor.
| file | Where to print. |
| bitmap | Bitmap to print. |
Definition at line 257 of file gsmlogo.c.
References GSM_Bitmap::BitmapHeight, GSM_Bitmap::BitmapWidth, and GSM_IsPointBitmap().
Referenced by GSM_DecodeMultiPartSMS(), GSM_DecodeNokiaProfile(), and GSM_EncodeEMSMultiPartSMS().
| GSM_Error GSM_ReadBitmapFile | ( | char * | FileName, |
| GSM_MultiBitmap * | bitmap | ||
| ) |
Reads bitmap from file.
| FileName | Where to load from. |
| bitmap | Pointer where to load bitmap. |
Definition at line 1073 of file gsmlogo.c.
References GSM_MultiBitmap::Bitmap, GSM_Bitmap::DefaultBitmap, EncodeUnicode(), ERR_CANTOPENFILE, ERR_FILENOTSUPPORTED, ERR_MOREMEMORY, FALSE, GSM_BITMAP_TEXT_LENGTH, loadbmp(), loadgif(), loadnlm(), loadnolngg(), loadnsl(), loadwbmp(), GSM_Bitmap::Name, and TRUE.
| GSM_Error GSM_SaveBitmapFile | ( | char * | FileName, |
| GSM_MultiBitmap * | bitmap | ||
| ) |
Saves bitmap to file.
| FileName | Where to save. |
| bitmap | Bitmap to save. |
Definition at line 676 of file gsmlogo.c.
References ERR_CANTOPENFILE, ERR_NONE, savebmp(), savengg(), savenlm(), savenol(), savensl(), savewbmp(), and savexpm().
| GSM_Error GSM_SetBitmap | ( | GSM_StateMachine * | s, |
| GSM_Bitmap * | Bitmap | ||
| ) |
Sets bitmap in phone.
Sets bitmap.
Definition at line 1301 of file api.c.
References CHECK_PHONE_CONNECTION, GSM_Phone::Functions, _GSM_StateMachine::Phone, PRINT_LOG_ERROR, and GSM_Phone_Functions::SetBitmap.
| void GSM_SetPointBitmap | ( | GSM_Bitmap * | bmp, |
| int | x, | ||
| int | y | ||
| ) |
Sets point in bitmap.
| bmp | Bitmap |
| x | Horizontal coordinate. |
| y | Vertical coordinate. |
Definition at line 228 of file gsmlogo.c.
References GSM_Bitmap::BitmapPoints, GSM_Bitmap::BitmapWidth, and SetBit().
Referenced by BMP2Bitmap(), GSM_DecodeEMSMultiPartSMS(), GSM_EncodeEMSMultiPartSMS(), GSM_ResizeBitmap(), GSM_ReverseBitmap(), loadnlm(), loadnolngg(), and PHONE_DecodeBitmap().