#include <stdlib.h>
#include <math.h>
#include "rfb/rfb.h"
#include "rfb/rfbregion.h"
Include dependency graph for rotate.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Functions | |
unsigned short int | notEqual (unsigned short int *fbbuf, unsigned short int *cmpbuf, unsigned long int size) |
void | rotate0 (rfbScreenInfoPtr rfbScreen, unsigned short int *fbbuf, unsigned short int *cmpbuf) |
void | rotate180 (rfbScreenInfoPtr rfbScreen, unsigned short int *fbbuf, unsigned short int *cmpbuf) |
void | rotate270 (rfbScreenInfoPtr rfbScreen, unsigned short int *fbbuf, unsigned short int *cmpbuf) |
void | rotate90 (rfbScreenInfoPtr rfbScreen, unsigned short int *fbbuf, unsigned short int *cmpbuf) |
supported C-PreProcessor directives
Definition in file rotate.h.
unsigned short int notEqual | ( | unsigned short int * | fbbuf, | |
unsigned short int * | cmpbuf, | |||
unsigned long int | size | |||
) |
... did the PDA screen change?
*fbbuf | pointer to mmap'ed framebuffer | |
*cmpbuf | pointer to a copy of the previous framebuffer contents | |
size | size |
Definition at line 5 of file rotate.c.
Referenced by main().
00007 { 00008 unsigned short int 00009 nCounter, 00010 returnValue = 0; 00011 for (nCounter = 0; nCounter < size; nCounter++) { 00012 if (*cmpbuf++ != *fbbuf++) { 00013 returnValue = 1; 00014 break; 00015 }; // end of [if] 00016 }; // end of [for] 00017 return returnValue; 00018 }; // end of [notEqual]
void rotate0 | ( | rfbScreenInfoPtr | rfbScreen, | |
unsigned short int * | fbbuf, | |||
unsigned short int * | cmpbuf | |||
) |
...reads the HW framebuffer with a 0 degree rotation. The result is stored in the remote-framebuffer structure. This function is implemented for 0,90,180 and 270 degrees (rotate0, rotate90, rotate180 & rotate270)
rfbScreen | pointer to a rfbScreenInfoPtr structur as defined in rfb.h (LibVNCServer). | |
fbbuf | pointer to a mem-mapped iPAQ framebuffer | |
cmpbuf | pointer to the compare buffer |
Referenced by main().
void rotate180 | ( | rfbScreenInfoPtr | rfbScreen, | |
unsigned short int * | fbbuf, | |||
unsigned short int * | cmpbuf | |||
) |
Referenced by main().
void rotate270 | ( | rfbScreenInfoPtr | rfbScreen, | |
unsigned short int * | fbbuf, | |||
unsigned short int * | cmpbuf | |||
) |
Referenced by main().
void rotate90 | ( | rfbScreenInfoPtr | rfbScreen, | |
unsigned short int * | fbbuf, | |||
unsigned short int * | cmpbuf | |||
) |
Referenced by main().