80 for (
j = 0;
j < 80;
j++)
105 for (
j = 0;
j < 256;
j++)
108 (((
j >> 0) & 0x1) << 7) |
109 (((
j >> 1) & 0x1) << 6) |
110 (((
j >> 2) & 0x1) << 5) |
111 (((
j >> 3) & 0x1) << 4) |
112 (((
j >> 4) & 0x1) << 3) |
113 (((
j >> 5) & 0x1) << 2) |
114 (((
j >> 6) & 0x1) << 1) |
115 (((
j >> 7) & 0x1) << 0);
118 for (
j = 0;
j < 256;
j++)
121 (((
j >> 0) & 0x1) << 4) |
122 (((
j >> 1) & 0x1) << 0) |
123 (((
j >> 2) & 0x1) << 12) |
124 (((
j >> 3) & 0x1) << 8) |
125 (((
j >> 4) & 0x1) << 20) |
126 (((
j >> 5) & 0x1) << 16) |
127 (((
j >> 6) & 0x1) << 28) |
128 (((
j >> 7) & 0x1) << 24);
228 return (
b + 2 *
g + 4 *
r + 8 *
i);
233 ULONG orgx, pre1, midpre1;
235 LONG ileftpix, imidpix, irightpix;
248 ileftpix = 7 -
mod8(
x-1);
250 imidpix = (
len-ileftpix-irightpix) / 8;
256 if ( (ileftpix+irightpix) >
len )
295 x = orgx +
len - irightpix;
315 vgaSetBitMaskRegister (
maskbit[
x] );
357 UCHAR pixel, nextpixel;
372 rightcount = (rightcount + 1) / 2;
375 for (
j = 0;
j <
h;
j++)
386 for (
j = 0;
j <
h;
j++)
399 pixel |= (nextpixel << (8 -
shift));
414 pixel |= (nextpixel << (8 -
shift));
419 for (
i = 0;
i < rightcount;
i++)
430 for (
j = 0;
j <
h;
j++)
432 for (
i = 0;
i <
w;
i += 2)
438 c2 = ((
PUCHAR)
b)[(
j * Dest_lDelta) + (
i >> 1)];
463 if (StartMod == ((
i -
x) % 2))
484 if (StartMod != ((
i -
x) % 2))
507 if (0 == ((
i -
x) % 2))
528 if (0 != ((
i -
x) % 2))
557 b1 = (*pb & 0xf0) >> 4;
571 opb += Source_lDelta;
581 unsigned char *vp, *vpP;
584 unsigned char plane_mask;
618 if (
data & 0x80) *bp |= plane_mask;
621 if (
data & 0x40) *bp |= plane_mask;
623 if (
data & 0x20) *bp |= plane_mask;
625 if (
data & 0x10) *bp |= plane_mask;
627 if (
data & 0x08) *bp |= plane_mask;
629 if (
data & 0x04) *bp |= plane_mask;
631 if (
data & 0x02) *bp |= plane_mask;
633 if (
data & 0x01) *bp |= plane_mask;
660 volatile unsigned char dummy;
662 int i,
j, off, init_off =
x&7;
675 for (
j = 0;
j < 8;
j++)
677 unsigned int mask = 0x80 >>
j;
711 unsigned char *vp, *vpY, *vpP;
713 unsigned char *bp, *bpY;
714 unsigned char plane_mask;
727 for (
j =
h;
j > 0;
j--)
738 for (
j =
h;
j > 0;
j--)
759 if (
data & 0x80) *bp |= plane_mask;
761 if (
data & 0x40) *bp |= plane_mask;
763 if (
data & 0x20) *bp |= plane_mask;
765 if (
data & 0x10) *bp |= plane_mask;
767 if (
data & 0x08) *bp |= plane_mask;
769 if (
data & 0x04) *bp |= plane_mask;
771 if (
data & 0x02) *bp |= plane_mask;
773 if (
data & 0x01) *bp |= plane_mask;
789 vpY += byte_per_line;
804 unsigned char *bp, *bpX;
805 unsigned char *vp, *vpX;
827 for (
j =
h;
j > 0;
j--)
835 if ((
mask >>= 1) == 0)
847 unsigned char *bp, *bpX;
848 unsigned char *vp, *vpX;
881 if ((
mask >>= 1) == 0)
893 unsigned char *bp, *bpX, *
dib, *dibTmp;
897 dib = (
unsigned char *)bdib +
y * dibw + (
x / 2);
908 for (
j =
h;
j > 0;
j--)
910 *dibTmp = *bp << dib_shift | *(bp + 1);
923 unsigned char *bp, *bpX, *
dib, *dibTmp;
924 int i,
j, dib_shift, dib_and;
927 dib = (
unsigned char *)bdib +
y * dibw + (
x / 2);
949 *bp = (*dibTmp & dib_and) >> dib_shift;
#define ASSIGNMK4(x, y, mask)
#define ASSIGNVP4(x, y, vp)
struct png_info_def *typedef unsigned char **typedef struct png_info_def *typedef struct png_info_def *typedef struct png_info_def *typedef unsigned char ** row
GLint GLint GLint GLint GLint x
GLint GLint GLint GLint GLint GLint y
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLdouble GLdouble GLdouble r
GLboolean GLboolean GLboolean b
GLubyte GLubyte GLubyte GLubyte w
GLfloat GLfloat GLfloat GLfloat h
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint GLint GLint j
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint GLint GLint GLenum GLenum GLenum GLint GLuint GLenum GLenum GLfloat GLenum GLfloat GLenum GLint const GLfloat GLenum GLint const GLushort GLint GLint GLsizei GLsizei GLenum GLsizei GLsizei GLenum GLenum const GLvoid GLenum plane
VOID NTAPI WRITE_PORT_USHORT(IN PUSHORT Port, IN USHORT Value)
static CRYPT_DATA_BLOB b2[]
static CRYPT_DATA_BLOB b1[]
#define WRITE_PORT_UCHAR(p, d)
void DIB_BltToVGA(int x, int y, int w, int h, void *b, int Source_lDelta, int StartMod)
UCHAR bytesPerPixel(ULONG Format)
static ULONG UnpackPixel[256]
INT vgaGetPixel(IN INT x, IN INT y)
void get_masks(int x, int w)
void DIB_TransparentBltToVGA(int x, int y, int w, int h, void *b, int Source_lDelta, ULONG trans)
void DIB_BltFromVGA(int x, int y, int w, int h, void *b, int Dest_lDelta)
static const RECTL rclEmpty
void FASTCALL vgaWriteScan(int x, int y, int w, void *b)
void FASTCALL vgaReadScan(int x, int y, int w, void *b)
BOOL vgaVLine(INT x, INT y, INT len, UCHAR c)
VOID vgaPutByte(INT x, INT y, UCHAR c)
void DFB_BltFromVGA(int x, int y, int w, int h, void *b, int bw)
static unsigned char rightMask
void DIB_BltToDFB(int x, int y, int w, int h, void *b, int bw, void *bdib, int dibw)
void DFB_BltToVGA_Transparent(int x, int y, int w, int h, void *b, int bw, char Trans)
BOOL VGADDIIntersectRect(PRECTL prcDst, PRECTL prcSrc1, PRECTL prcSrc2)
void DFB_BltToDIB(int x, int y, int w, int h, void *b, int bw, void *bdib, int dibw)
VOID vgaGetByte(IN ULONG offset, OUT UCHAR *b, OUT UCHAR *g, OUT UCHAR *r, OUT UCHAR *i)
VOID vgaPutPixel(INT x, INT y, UCHAR c)
static unsigned char leftMask
void DFB_BltToVGA(int x, int y, int w, int h, void *b, int bw)
UCHAR PreCalcReverseByte[256]
void DIB_BltToVGAWithXlate(int x, int y, int w, int h, void *b, int Source_lDelta, XLATEOBJ *Xlate)
BOOL vgaHLine(INT x, INT y, INT len, UCHAR c)
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG _In_ LONG x2
ENGAPI ULONG APIENTRY XLATEOBJ_iXlate(_In_ XLATEOBJ *pxlo, _In_ ULONG iColor)
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG _In_ LONG _In_ LONG y2
_Analysis_noreturn_ ENGAPI VOID APIENTRY EngDebugBreak(VOID)
NTKERNELAPI VOID NTAPI WRITE_REGISTER_UCHAR(IN PUCHAR Register, IN UCHAR Value)
NTKERNELAPI UCHAR NTAPI READ_REGISTER_UCHAR(IN PUCHAR Register)