Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

image_Png_mod.c File Reference

#include <stdlib.h>
#include <string.h>
#include <png.h>
#include "Bases.h"
#include "Module.h"
#include "Gui.h"
#include "Memory.h"
#include "Common.h"
#include "images/image_Png.h"
#include "debug.h"

Include dependency graph for image_Png_mod.c:

Include dependency graph

Go to the source code of this file.

Data Structures

struct  png_CustomData_s

Defines

#define __IMAGE_MODULE

Typedefs

typedef png_CustomData_s png_CustomData_t

Functions

 VERSION ("Png.image_mod", 1, 0,"Gergely Gati","g.gati @freemail.hu")
void my_read (png_structp png_ptr, png_bytep data, png_size_t length)
int png_ImgInit (Image_t *img, void(*update)(void *), void *userdata)
void png_ImgCleanUp (Image_t *img)
int png_ImgRender (Image_t *img, u8 *dest, int destsize, int width, int height)
int png_PutImage (Image_t *img, u32 window, Rect_t *rect)
void png_CleanUp (void)
int png_Init (u32 module)
EXPORT int module_Init (u32 module, bases_Modules_t *bases)

Variables

bases_Modules_tapi


Define Documentation

#define __IMAGE_MODULE
 

Definition at line 28 of file image_Png_mod.c.


Typedef Documentation

typedef struct png_CustomData_s png_CustomData_t
 


Function Documentation

EXPORT int module_Init u32    module,
bases_Modules_t   bases
 

Definition at line 248 of file image_Png_mod.c.

References EXPORT, png_Init, and u32.

void my_read png_structp    png_ptr,
png_bytep    data,
png_size_t    length
[static]
 

Definition at line 52 of file image_Png_mod.c.

References debug_Begin, debug_End, png_CustomData_s::fp, and png_CustomData_s::img.

Referenced by png_ImgInit, and png_ImgRender.

void png_CleanUp void    [static]
 

Definition at line 220 of file image_Png_mod.c.

References debug_Begin, and debug_End.

Referenced by png_Init.

void png_ImgCleanUp Image_t   img [static]
 

Definition at line 127 of file image_Png_mod.c.

References debug_Begin, debug_End, Image_t, mem_free, NULL, and png_CustomData_s::pngptr.

Referenced by png_Init.

int png_ImgInit Image_t   img,
void(*    update)(void *),
void *    userdata
[static]
 

Definition at line 73 of file image_Png_mod.c.

References debug_Begin, debug_End, png_CustomData_s::fp, Image_t, png_CustomData_s::img, png_CustomData_s::info, mem_malloc, my_read, NULL, and png_CustomData_s::pngptr.

Referenced by png_Init.

int png_ImgRender Image_t   img,
u8   dest,
int    destsize,
int    width,
int    height
[static]
 

Definition at line 149 of file image_Png_mod.c.

References debug_Begin, debug_End, png_CustomData_s::fp, Image_t, png_CustomData_s::info, my_read, NULL, png_CustomData_s::pngptr, and u8.

Referenced by png_Init, and png_PutImage.

int png_Init u32    module [static]
 

Definition at line 227 of file image_Png_mod.c.

References debug_Begin, debug_End, bases_modules_s::img_Call, IMG_REGISTERFORMATCODE, png_CleanUp, png_ImgCleanUp, png_ImgInit, png_ImgRender, png_PutImage, TAG_DONE, 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, and u32.

Referenced by module_Init.

int png_PutImage Image_t   img,
u32    window,
Rect_t   rect
[static]
 

Definition at line 198 of file image_Png_mod.c.

References Vector_t::data, debug_Begin, debug_End, bases_modules_s::glw_Call, Rect_t::height, Image_t, Rect_t::left, mem_free, mem_malloc, NULL, png_ImgRender, Vector_t::size, TAG_DONE, Rect_t::top, u32, and Rect_t::width.

Referenced by png_Init.

VERSION "Png.image_mod"   ,
 ,
 ,
"Gergely Gati"   ,
"g.gati @freemail.hu"   
 


Variable Documentation

bases_Modules_t* api [static]
 

Definition at line 48 of file image_Png_mod.c.


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