Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

Image.c File Reference

#include <stdlib.h>
#include <string.h>
#include "macros.h"
#include "debug.h"
#include "Memory.h"
#include "Net.h"
#include "Image.h"
#include "Window.h"

Include dependency graph for Image.c:

Include dependency graph

Go to the source code of this file.

Data Structures

struct  Format_s

Defines

#define __IMAGE_MODULE
#define IMG_FS_RECOG   1
#define IMG_FS_LOADED   2

Functions

Image_timg_InitImageByMem (ImageIn_t *image, void(*update)(void *), void *userdata)
Image_timg_InitImageByName (gui_App_t *app, char *name, void(*update)(void *), void *userdata)
u32 img_InitImage (u32 firsttag,...)
u32 img_InitImageTL (tag *taglist)
u32 img_CleanUpImage (u32 firsttag,...)
u32 img_CleanUpImageTL (tag *taglist)
u32 img_GetInfo (u32 firsttag,...)
u32 img_GetInfoTL (tag *taglist)
u32 img_RenderImage (u32 firsttag,...)
u32 img_RenderImageTL (tag *taglist)
u32 img_PutImage (u32 firsttag,...)
u32 img_PutImageTL (tag *taglist)
u32 img_RenderImageTiled (u32 firsttag,...)
u32 img_RenderImageTiledTL (tag *taglist)
u32 img_PutImageTiled (u32 firsttag,...)
u32 img_PutImageTiledTL (tag *taglist)
u32 img_RegisterFormatCode (u32 firsttag,...)
u32 img_RegisterFormatCodeTL (tag *taglist)
u32 img_RegisterFormat (u32 firsttag,...)
u32 img_RegisterFormatTL (tag *taglist)
void img_CleanUp (void)
int img_Init (void)
u32 img_Call (int function, u32 firsttag,...)
u32 img_CallTL (int function, tag *taglist)

Variables

List_tFormatList
u32(* call_vector [IMG_FUNC_DONE-IMG_FUNCBASE+1])(tag *)


Define Documentation

#define __IMAGE_MODULE
 

Definition at line 27 of file Image.c.

#define IMG_FS_LOADED   2
 

Definition at line 38 of file Image.c.

Referenced by img_CleanUp, img_InitImageByMem, and img_RegisterFormatCodeTL.

#define IMG_FS_RECOG   1
 

Definition at line 37 of file Image.c.

Referenced by img_CleanUpImageTL, img_InitImageByMem, and img_RegisterFormatTL.


Function Documentation

u32 img_Call int    function,
u32    firsttag,
...   
 

Definition at line 744 of file Image.c.

References img_CallTL, and u32.

Referenced by img_Init.

u32 img_CallTL int    function,
tag   taglist
 

Definition at line 748 of file Image.c.

References call_vector, debug_Begin, debug_End, debug_Message, debug_Warning, IMG_FUNC_DONE, IMG_FUNCBASE, and u32.

Referenced by img_Init.

void img_CleanUp void   
 

Definition at line 650 of file Image.c.

References Format_s::cleanup, debug_Begin, debug_End, debug_Message, debug_Trace, glw_CloseModule, IMG_FS_LOADED, list_DeleteList, list_DeleteNode, list_GetNodeData, list_GetNodeHead, list_RemoveNode, Format_s::mainmodule, mem_free, Format_s::module, Format_s::name, NULL, and Format_s::status.

Referenced by gui_CleanUp.

u32 img_CleanUpImage u32    firsttag,
...   
 

Definition at line 188 of file Image.c.

References img_CleanUpImageTL, and u32.

u32 img_CleanUpImageTL tag   taglist
 

Definition at line 192 of file Image.c.

References Format_s::cleanup, Format_s::counter, debug_Begin, debug_End, glw_CloseModule, Image_t, Format_s::img_clean, IMG_FS_RECOG, Format_s::img_init, Format_s::img_putimage, Format_s::img_render, Format_s::mainmodule, mem_free, NULL, Format_s::status, tag_GetTagData, TAG_IMG_OBJECT, and u32.

Referenced by img_Init.

u32 img_GetInfo u32    firsttag,
...   
 

Parameters:
TAG_IMG_IMGINFO  ImageInfo_t *

Definition at line 237 of file Image.c.

References img_GetInfoTL, and u32.

u32 img_GetInfoTL tag   taglist
 

Definition at line 241 of file Image.c.

References debug_Begin, debug_End, debug_Message, ImageInfo_s::format, ImageInfo_s::iim, Image_t, ImageInfo_s::maxheight, ImageInfo_s::maxwidth, ImageInfo_s::minheight, ImageInfo_s::minwidth, NULL, tag_GetTagData, TAG_IMG_IMGINFO, TAG_IMG_OBJECT, and u32.

Referenced by img_Init.

int img_Init void   
 

Definition at line 688 of file Image.c.

References call_vector, debug_Begin, debug_End, debug_Message, glw_DirClose, glw_DirNext, glw_DirOpen, glw_OpenModule, img_Call, img_CallTL, IMG_CLEANUPIMAGE, img_CleanUpImageTL, IMG_FUNCBASE, IMG_GETINFO, img_GetInfoTL, IMG_INITIMAGE, img_InitImageTL, IMG_PUTIMAGE, IMG_PUTIMAGETILED, img_PutImageTiledTL, img_PutImageTL, IMG_REGISTERFORMAT, IMG_REGISTERFORMATCODE, img_RegisterFormatCodeTL, img_RegisterFormatTL, IMG_RENDERIMAGE, IMG_RENDERIMAGETILED, img_RenderImageTiledTL, img_RenderImageTL, list_CreateList, mem_free, mem_malloc, and NULL.

Referenced by gui_Init.

u32 img_InitImage u32    firsttag,
...   
 

Parameters:
TAG_IMG_APP  gui_App_t *
TAG_IMG_IMAGEIN  ImageIn_t *
TAG_IMG_FREEAFTERUSE  int
TAG_IMG_IMAGENAME  char *

Definition at line 70 of file Image.c.

References img_InitImageTL, and u32.

Image_t * img_InitImageByMem ImageIn_t   image,
void(*    update)(void *),
void *    userdata
[static]
 

Definition at line 106 of file Image.c.

References Format_s::counter, ImageIn_s::data, ImageIn_s::data_size, debug_Begin, debug_End, glw_OpenModule, Image_t, IMG_FS_LOADED, IMG_FS_RECOG, Format_s::img_init, Format_s::img_recognize, list_GetNodeData, list_GetNodeHead, list_GetNodeNext, mem_free, mem_malloc, Format_s::name, NULL, and Format_s::status.

Referenced by img_InitImageByName, and img_InitImageTL.

Image_t * img_InitImageByName gui_App_t   app,
char *    name,
void(*    update)(void *),
void *    userdata
[static]
 

Definition at line 164 of file Image.c.

References gui_App_t::conn, ImageIn_s::data, ImageIn_s::data_size, debug_Begin, debug_End, debug_Message, Image_t, img_InitImageByMem, net_LoadFile, NULL, TAG_DONE, TAG_NET_CONN, TAG_NET_LEN, TAG_NET_NAME, and u8.

Referenced by img_InitImageTL.

u32 img_InitImageTL tag   taglist
 

Definition at line 74 of file Image.c.

References debug_Begin, debug_End, Image_t, img_InitImageByMem, img_InitImageByName, NULL, tag_GetTagData, TAG_IMG_APP, TAG_IMG_FREEAFTERUSE, TAG_IMG_IMAGEIN, TAG_IMG_IMAGENAME, and u32.

Referenced by img_Init.

u32 img_PutImage u32    firsttag,
...   
 

Parameters:
TAG_IMG_WINDOW  Window_t *
TAG_IMG_RECT  Rect_t *

Definition at line 324 of file Image.c.

References img_PutImageTL, and u32.

u32 img_PutImageTiled u32    firsttag,
...   
 

Parameters:
TAG_IMG_WINDOW  Window_t *
TAG_IMG_RECT  Rect_t *
TAG_IMG_IMGWIDTH  int
TAG_IMG_IMGHEIGHT  int

Definition at line 485 of file Image.c.

References img_PutImageTiledTL, and u32.

u32 img_PutImageTiledTL tag   taglist
 

Definition at line 489 of file Image.c.

References Vector_t::data, debug_Begin, debug_End, debug_Message, glw_PutImage, Window_s::handle, Rect_t::height, Image_t, img_RenderImageTiled, Rect_t::left, mem_free, mem_malloc, NULL, Vector_t::size, TAG_DONE, tag_GetTagData, TAG_IMG_DEST, TAG_IMG_DESTSIZE, TAG_IMG_HEIGHT, TAG_IMG_IMGHEIGHT, TAG_IMG_IMGWIDTH, TAG_IMG_OBJECT, TAG_IMG_RECT, TAG_IMG_WIDTH, TAG_IMG_WINDOW, Rect_t::top, u32, and Rect_t::width.

Referenced by img_Init.

u32 img_PutImageTL tag   taglist
 

Definition at line 328 of file Image.c.

References debug_Begin, debug_End, debug_Message, debug_Trace, Window_s::handle, Rect_t::height, Image_t, Format_s::img_putimage, NULL, tag_GetTagData, TAG_IMG_OBJECT, TAG_IMG_RECT, TAG_IMG_WINDOW, u32, and Rect_t::width.

Referenced by img_Init.

u32 img_RegisterFormat u32    firsttag,
...   
 

Parameters:
TAG_IMG_NAME  char *
TAG_IMG_MODULE  u32
TAG_IMG_IMG_RECOGNIZE  int (*)(u8 *,int)

Definition at line 608 of file Image.c.

References img_RegisterFormatTL, and u32.

u32 img_RegisterFormatCode u32    firsttag,
...   
 

Parameters:
TAG_IMG_NAME  char *
TAG_IMG_IMG_INIT  int (*)(Image_t *,void (*)(void *),void *)
TAG_IMG_IMG_RENDER  int (*)(Image_t *,u8 *,int,int,int)
TAG_IMG_IMG_PUTIMAGE  int (*)(Image_t *,u32 window,Rect_t *)
TAG_IMG_IMG_CLEAN  void (*)(Image_t *)
TAG_IMG_CLEANUP  void (*)(void)
TAG_IMG_MODULE  u32

Definition at line 548 of file Image.c.

References img_RegisterFormatCodeTL, and u32.

u32 img_RegisterFormatCodeTL tag   taglist
 

Definition at line 552 of file Image.c.

References Format_s::cleanup, debug_Begin, debug_End, Image_t, Format_s::img_clean, IMG_FS_LOADED, Format_s::img_init, Format_s::img_putimage, Format_s::img_render, list_GetNodeData, list_GetNodeHead, list_GetNodeNext, Format_s::mainmodule, Format_s::name, NULL, Format_s::status, tag_GetTagData, TAG_IMG_CLEANUP, TAG_IMG_IMG_CLEAN, TAG_IMG_IMG_INIT, TAG_IMG_IMG_PUTIMAGE, TAG_IMG_IMG_RENDER, TAG_IMG_MODULE, TAG_IMG_NAME, u32, and u8.

Referenced by img_Init.

u32 img_RegisterFormatTL tag   taglist
 

Definition at line 612 of file Image.c.

References Format_s::counter, debug_Begin, debug_End, IMG_FS_RECOG, Format_s::img_recognize, list_CreateNode, list_InsertNodeTail, list_SetNodeData, Format_s::mainmodule, mem_malloc, Format_s::module, Format_s::name, NULL, Format_s::status, tag_GetTagData, TAG_IMG_IMG_RECOGNIZE, TAG_IMG_MODULE, TAG_IMG_NAME, u32, and u8.

Referenced by img_Init.

u32 img_RenderImage u32    firsttag,
...   
 

Parameters:
TAG_IMG_DEST  u8 *
TAG_IMG_DESTSIZE  int
TAG_IMG_WIDTH  int
TAG_IMG_HEIGHT  int

Definition at line 278 of file Image.c.

References img_RenderImageTL, and u32.

u32 img_RenderImageTiled u32    firsttag,
...   
 

Parameters:
TAG_IMG_DEST  u8 *
TAG_IMG_DESTSIZE  int
TAG_IMG_WIDTH  int
TAG_IMG_HEIGHT  int
TAG_IMG_IMGWIDTH  int
TAG_IMG_IMGHEIGHT  int

Definition at line 376 of file Image.c.

References img_RenderImageTiledTL, and u32.

u32 img_RenderImageTiledTL tag   taglist
 

Definition at line 380 of file Image.c.

References debug_Begin, debug_End, debug_Message, Image_t, Format_s::img_render, mem_free, mem_malloc, NULL, tag_GetTagData, TAG_IMG_DEST, TAG_IMG_DESTSIZE, TAG_IMG_HEIGHT, TAG_IMG_IMGHEIGHT, TAG_IMG_IMGWIDTH, TAG_IMG_OBJECT, TAG_IMG_WIDTH, u32, and u8.

Referenced by img_Init.

u32 img_RenderImageTL tag   taglist
 

Definition at line 282 of file Image.c.

References debug_Begin, debug_End, debug_Message, Image_t, Format_s::img_render, NULL, tag_GetTagData, TAG_IMG_DEST, TAG_IMG_DESTSIZE, TAG_IMG_HEIGHT, TAG_IMG_OBJECT, TAG_IMG_WIDTH, u32, and u8.

Referenced by img_Init.


Variable Documentation

u32(* call_vector[IMG_FUNC_DONE-IMG_FUNCBASE+1])(tag *) [static]
 

Definition at line 58 of file Image.c.

Referenced by img_CallTL, and img_Init.

List_t* FormatList [static]
 

Definition at line 57 of file Image.c.


Generated on Tue Jan 7 12:12:18 2003 for THEGUI by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002