xine-lib: xine-lib-1.2.12/src/post/goom/drawmethods.c File Reference

xine-lib 1.2.12

Macros | Functions
drawmethods.c File Reference
`#include "drawmethods.h"`

## Macros
#define | DRAWMETHOD_PLUS(_out, _backbuf, _col)
#define | DRAWMETHOD DRAWMETHOD_PLUS(*p,*p,col)

## Functions
void | draw_line (Pixel *data, int x1, int y1, int x2, int y2, int col, int screenx, int screeny)

## Macro Definition Documentation

## ◆ DRAWMETHOD

#define DRAWMETHOD DRAWMETHOD_PLUS(*p,*p,col)

## ◆ DRAWMETHOD_PLUS

#define DRAWMETHOD_PLUS | ( |  | _out,
|  |  | _backbuf,
|  |  | _col
| ) |  |

Value:
{\
int tra=0,i=0;\
unsigned char *bra = (unsigned char*)&(_backbuf);\
unsigned char *dra = (unsigned char*)&(_out);\
unsigned char *cra = (unsigned char*)&(_col);\
for (;i<4;i++) {\
tra = *cra;\
tra += *bra;\
if (tra>255) tra=255;\
*dra = tra;\
++dra;++cra;++bra;\
}\
}

## Function Documentation

## ◆ draw_line()

void draw_line | ( | Pixel * | data,
|  | int | x1,
|  | int | y1,
|  | int | x2,
|  | int | y2,
|  | int | col,
|  | int | screenx,
|  | int | screeny
| ) |  |

References DRAWMETHOD.

Referenced by setOptimizedMethods().