#include <stdlib.h>#include <string.h>#include <math.h>#include "Bases.h"#include "Module.h"#include "Gui.h"#include "Common.h"#include "debug.h"#include "Memory.h"#include "macros.h"#include "images/image_Pvf.h"Include dependency graph for image_Pvf_mod.c:

Go to the source code of this file.
Data Structures | |
| struct | pvf_anchor |
| struct | pvf_command |
| struct | pvf_CustomData_s |
Defines | |
| #define | __IMAGE_MODULE |
| #define | TOSCR(c, w) (((c)*(w))>>15) |
| #define | PUTPIXEL(cdata, x, y) (cdata->pixels[(y)*cdata->width+(x)]=cdata->curr_col) |
| #define | PUTPIXELD(cdata, x, y) api->glw_Call(GLW_DRAWPIXEL,TAG_GLW_WINDOW,cdata->window,TAG_GLW_X,cdata->left+(x),TAG_GLW_Y,cdata->top+(y),TAG_DONE) |
| #define | pvf_dnop pvf_cnop |
| #define | pvf_dset pvf_cset |
| #define | pvf_dmov pvf_cmov |
| #define | COMMAND_COUNT 10 |
Typedefs | |
| typedef pvf_CustomData_s | pvf_CustomData_t |
Functions | |
| int | pvf_cnop (pvf_CustomData_t *cdata, u8 *param) |
| int | pvf_cset (pvf_CustomData_t *cdata, u8 *param) |
| int | pvf_ccol (pvf_CustomData_t *cdata, u8 *param) |
| int | pvf_cmov (pvf_CustomData_t *cdata, u8 *param) |
| int | pvf_clin (pvf_CustomData_t *cdata, u8 *param) |
| int | pvf_crec (pvf_CustomData_t *cdata, u8 *param) |
| int | pvf_ccir (pvf_CustomData_t *cdata, u8 *param) |
| int | pvf_cfil (pvf_CustomData_t *cdata, u8 *param) |
| int | pvf_chln (pvf_CustomData_t *cdata, u8 *param) |
| int | pvf_cvln (pvf_CustomData_t *cdata, u8 *param) |
| int | pvf_dcol (pvf_CustomData_t *cdata, u8 *param) |
| int | pvf_dlin (pvf_CustomData_t *cdata, u8 *param) |
| int | pvf_drec (pvf_CustomData_t *cdata, u8 *param) |
| int | pvf_dcir (pvf_CustomData_t *cdata, u8 *param) |
| int | pvf_dfil (pvf_CustomData_t *cdata, u8 *param) |
| int | pvf_dhln (pvf_CustomData_t *cdata, u8 *param) |
| int | pvf_dvln (pvf_CustomData_t *cdata, u8 *param) |
| VERSION ("Pvf.image_mod", 1, 0,"Gergely Gati","g.gati @freemail.hu") | |
| u8 | getbyte (u8 *mem) |
| s16 | getword (u8 *mem) |
| u32 | getlong (u8 *mem) |
| int | pvf_ImgInit (Image_t *img, void(*update)(void *), void *userdata) |
| void | pvf_ImgCleanUp (Image_t *img) |
| int | pvf_ImgRender (Image_t *img, u8 *dest, int destsize, int width, int height) |
| void | pvf_CleanUp (void) |
| int | pvf_PutImage (Image_t *img, u32 window, Rect_t *rect) |
| int | pvf_Init (u32 module) |
| EXPORT int | module_Init (u32 module, bases_Modules_t *bases) |
Variables | |
| bases_Modules_t * | api |
| pvf_command | commandsN [] |
| pvf_command | commandsD [] |
|
|
Definition at line 28 of file image_Pvf_mod.c. |
|
|
Definition at line 99 of file image_Pvf_mod.c. Referenced by pvf_ImgRender, and pvf_PutImage. |
|
|
Definition at line 43 of file image_Pvf_mod.c. Referenced by pvf_ccir, pvf_cfil, pvf_chln, pvf_clin, pvf_crec, and pvf_cvln. |
|
|
Definition at line 44 of file image_Pvf_mod.c. Referenced by pvf_dcir. |
|
|
Definition at line 91 of file image_Pvf_mod.c. |
|
|
Definition at line 88 of file image_Pvf_mod.c. |
|
|
Definition at line 89 of file image_Pvf_mod.c. |
|
|
Definition at line 42 of file image_Pvf_mod.c. Referenced by pvf_ccir, pvf_cfil, pvf_chln, pvf_clin, pvf_cmov, pvf_crec, pvf_cset, pvf_cvln, pvf_dcir, pvf_dfil, pvf_dhln, pvf_dlin, pvf_drec, and pvf_dvln. |
|
|
|
|
|
Definition at line 136 of file image_Pvf_mod.c. References u8. Referenced by pvf_cfil, pvf_chln, pvf_clin, pvf_cmov, pvf_crec, pvf_cset, pvf_cvln, pvf_dfil, pvf_dhln, pvf_dlin, pvf_drec, and pvf_dvln. |
|
|
Definition at line 144 of file image_Pvf_mod.c. |
|
|
Definition at line 140 of file image_Pvf_mod.c. Referenced by pvf_ccir, pvf_cfil, pvf_chln, pvf_clin, pvf_cmov, pvf_crec, pvf_cset, pvf_cvln, pvf_dcir, pvf_dfil, pvf_dhln, pvf_dlin, pvf_drec, and pvf_dvln. |
|
||||||||||||
|
Definition at line 810 of file image_Pvf_mod.c. References EXPORT, pvf_Init, and u32. Referenced by glw_OpenModule. |
|
||||||||||||
|
Definition at line 310 of file image_Pvf_mod.c. References pvf_CustomData_s::curr_x, pvf_CustomData_s::curr_y, getword, pvf_CustomData_s::height, min, PUTPIXEL, TOSCR, u8, and pvf_CustomData_s::width. |
|
||||||||||||
|
Definition at line 183 of file image_Pvf_mod.c. References pvf_CustomData_s::curr_col, getlong, bases_modules_s::glw_Call, TAG_DONE, and u8. |
|
||||||||||||
|
Definition at line 347 of file image_Pvf_mod.c. References pvf_CustomData_s::anchors, pvf_CustomData_s::curr_x, pvf_CustomData_s::curr_y, getbyte, getword, pvf_CustomData_s::height, max, min, PUTPIXEL, TOSCR, u8, pvf_CustomData_s::width, pvf_anchor::x, and pvf_anchor::y. |
|
||||||||||||
|
Definition at line 378 of file image_Pvf_mod.c. References pvf_CustomData_s::anchors, pvf_CustomData_s::curr_x, pvf_CustomData_s::curr_y, getbyte, getword, PUTPIXEL, TOSCR, u8, pvf_CustomData_s::width, and pvf_anchor::x. |
|
|
Definition at line 736 of file image_Pvf_mod.c. References debug_Begin, and debug_End. Referenced by pvf_Init. |
|
||||||||||||
|
Definition at line 211 of file image_Pvf_mod.c. References pvf_CustomData_s::anchors, pvf_CustomData_s::curr_x, pvf_CustomData_s::curr_y, getbyte, getword, pvf_CustomData_s::height, PUTPIXEL, TOSCR, u8, pvf_CustomData_s::width, pvf_anchor::x, and pvf_anchor::y. |
|
||||||||||||
|
Definition at line 189 of file image_Pvf_mod.c. References pvf_CustomData_s::anchors, pvf_CustomData_s::curr_x, pvf_CustomData_s::curr_y, getbyte, getword, pvf_CustomData_s::height, TOSCR, u8, pvf_CustomData_s::width, pvf_anchor::x, and pvf_anchor::y. |
|
||||||||||||
|
Definition at line 162 of file image_Pvf_mod.c. References u8. |
|
||||||||||||
|
Definition at line 276 of file image_Pvf_mod.c. References pvf_CustomData_s::anchors, pvf_CustomData_s::curr_x, pvf_CustomData_s::curr_y, getbyte, getword, pvf_CustomData_s::height, max, min, PUTPIXEL, TOSCR, u8, pvf_CustomData_s::width, pvf_anchor::x, and pvf_anchor::y. |
|
||||||||||||
|
Definition at line 166 of file image_Pvf_mod.c. References pvf_CustomData_s::anchors, debug_Begin, debug_End, getbyte, getword, pvf_CustomData_s::height, TOSCR, u16, u8, pvf_CustomData_s::width, pvf_anchor::x, and pvf_anchor::y. |
|
||||||||||||
|
Definition at line 397 of file image_Pvf_mod.c. References pvf_CustomData_s::anchors, pvf_CustomData_s::curr_x, pvf_CustomData_s::curr_y, getbyte, getword, pvf_CustomData_s::height, PUTPIXEL, TOSCR, u8, and pvf_anchor::y. |
|
||||||||||||
|
Definition at line 508 of file image_Pvf_mod.c. References pvf_CustomData_s::curr_x, pvf_CustomData_s::curr_y, debug_Begin, debug_End, getword, pvf_CustomData_s::height, min, PUTPIXELD, TOSCR, u8, and pvf_CustomData_s::width. |
|
||||||||||||
|
Definition at line 421 of file image_Pvf_mod.c. References pvf_CustomData_s::curr_col, debug_Begin, debug_End, getlong, bases_modules_s::glw_Call, TAG_DONE, u32, u8, and pvf_CustomData_s::window. |
|
||||||||||||
|
Definition at line 550 of file image_Pvf_mod.c. References pvf_CustomData_s::anchors, pvf_CustomData_s::curr_x, pvf_CustomData_s::curr_y, debug_Begin, debug_End, getbyte, getword, bases_modules_s::glw_Call, pvf_CustomData_s::height, pvf_CustomData_s::left, TAG_DONE, pvf_CustomData_s::top, TOSCR, u8, pvf_CustomData_s::width, pvf_CustomData_s::window, pvf_anchor::x, and pvf_anchor::y. |
|
||||||||||||
|
Definition at line 585 of file image_Pvf_mod.c. References pvf_CustomData_s::anchors, pvf_CustomData_s::curr_x, pvf_CustomData_s::curr_y, debug_Begin, debug_End, getbyte, getword, bases_modules_s::glw_Call, pvf_CustomData_s::left, TAG_DONE, pvf_CustomData_s::top, TOSCR, u8, pvf_CustomData_s::width, pvf_CustomData_s::window, and pvf_anchor::x. |
|
||||||||||||
|
Definition at line 438 of file image_Pvf_mod.c. References pvf_CustomData_s::anchors, pvf_CustomData_s::curr_x, pvf_CustomData_s::curr_y, debug_Begin, debug_End, getbyte, getword, bases_modules_s::glw_Call, pvf_CustomData_s::height, pvf_CustomData_s::left, TAG_DONE, pvf_CustomData_s::top, TOSCR, u8, pvf_CustomData_s::width, pvf_CustomData_s::window, pvf_anchor::x, and pvf_anchor::y. |
|
||||||||||||
|
Definition at line 471 of file image_Pvf_mod.c. References pvf_CustomData_s::anchors, pvf_CustomData_s::curr_x, pvf_CustomData_s::curr_y, debug_Begin, debug_End, getbyte, getword, bases_modules_s::glw_Call, pvf_CustomData_s::height, pvf_CustomData_s::left, TAG_DONE, pvf_CustomData_s::top, TOSCR, u8, pvf_CustomData_s::width, pvf_CustomData_s::window, pvf_anchor::x, and pvf_anchor::y. |
|
||||||||||||
|
Definition at line 608 of file image_Pvf_mod.c. References pvf_CustomData_s::anchors, pvf_CustomData_s::curr_x, pvf_CustomData_s::curr_y, debug_Begin, debug_End, getbyte, getword, bases_modules_s::glw_Call, pvf_CustomData_s::height, pvf_CustomData_s::left, TAG_DONE, pvf_CustomData_s::top, TOSCR, u8, pvf_CustomData_s::window, and pvf_anchor::y. |
|
|
Definition at line 669 of file image_Pvf_mod.c. References debug_Begin, debug_End, Image_t, mem_free, and NULL. Referenced by pvf_Init. |
|
||||||||||||||||
|
Definition at line 639 of file image_Pvf_mod.c. References debug_Begin, debug_End, IMAGE_MAXIMUM_SIZE, Image_t, pvf_CustomData_s::img, mem_calloc, and NULL. Referenced by pvf_Init. |
|
||||||||||||||||||||||||
|
Definition at line 689 of file image_Pvf_mod.c. References pvf_CustomData_s::anchors, COMMAND_COUNT, pvf_CustomData_s::curr_col, pvf_CustomData_s::curr_x, pvf_CustomData_s::curr_y, debug_Begin, debug_End, pvf_command::execute, pvf_CustomData_s::height, Image_t, pvf_command::len, NULL, pvf_CustomData_s::pixels, u32, u8, pvf_CustomData_s::width, pvf_anchor::x, and pvf_anchor::y. Referenced by pvf_Init. |
|
|
Definition at line 795 of file image_Pvf_mod.c. References bases_modules_s::img_Call, IMG_REGISTERFORMATCODE, pvf_CleanUp, pvf_ImgCleanUp, pvf_ImgInit, pvf_ImgRender, pvf_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. |
|
||||||||||||||||
|
Definition at line 743 of file image_Pvf_mod.c. References pvf_CustomData_s::anchors, COMMAND_COUNT, pvf_CustomData_s::curr_col, pvf_CustomData_s::curr_x, pvf_CustomData_s::curr_y, debug_Begin, debug_End, pvf_command::execute, pvf_CustomData_s::height, Rect_t::height, Image_t, Rect_t::left, pvf_CustomData_s::left, pvf_command::len, NULL, Rect_t::top, pvf_CustomData_s::top, u32, pvf_CustomData_s::width, Rect_t::width, pvf_CustomData_s::window, pvf_anchor::x, and pvf_anchor::y. Referenced by pvf_Init. |
|
||||||||||||||||||||||||
|
|
|
|
Definition at line 101 of file image_Pvf_mod.c. |
|
|
Initial value:
{
{"nop",pvf_dnop,1},
{"set",pvf_dset,6},
{"col",pvf_dcol,5},
{"mov",pvf_dmov,6},
{"lin",pvf_dlin,6},
{"rec",pvf_drec,6},
{"cir",pvf_dcir,4},
{"fil",pvf_dfil,6},
{"hln",pvf_dhln,4},
{"vln",pvf_dvln,4},
{NULL,NULL}
}Definition at line 120 of file image_Pvf_mod.c. |
|
|
Initial value:
{
{"nop",pvf_cnop,1},
{"set",pvf_cset,6},
{"col",pvf_ccol,5},
{"mov",pvf_cmov,6},
{"lin",pvf_clin,6},
{"rec",pvf_crec,6},
{"cir",pvf_ccir,4},
{"fil",pvf_cfil,6},
{"hln",pvf_chln,4},
{"vln",pvf_cvln,4},
{NULL,NULL}
}Definition at line 105 of file image_Pvf_mod.c. |
1.2.14 written by Dimitri van Heesch,
© 1997-2002