Mercurial > hg > minimon
comparison common.h @ 10:078dc69945ad
working: libjpeg-turbo support, handle fb and monitor with different size
author | Peter Meerwald <pmeerw@pmeerw.net> |
---|---|
date | Sun, 15 May 2011 17:48:57 +0200 |
parents | 66c77f9ba9b9 |
children |
comparison
equal
deleted
inserted
replaced
9:c7af696b6221 | 10:078dc69945ad |
---|---|
1 #ifndef COMMON_H | 1 #ifndef COMMON_H |
2 #define COMMON_H | 2 #define COMMON_H |
3 | |
4 #ifndef MIN | |
5 #define MIN(x, y) ((x < y) ? (x) : (y)) | |
6 #endif | |
3 | 7 |
4 typedef struct { | 8 typedef struct { |
5 unsigned long size; | 9 unsigned long size; |
6 unsigned char *ptr; | 10 unsigned char *ptr; |
7 } jpg_buf_t; | 11 } jpg_buf_t; |
8 | 12 |
9 jpg_buf_t build_jpg_from_fb(unsigned char *fb_mem, int width, int height, int bits_per_pixel); | 13 jpg_buf_t build_jpg_from_fb(unsigned char *fb_mem, int fb_width, int fb_height, int bits_per_pixel, int mon_width, int mon_height); |
10 | 14 |
11 #endif | 15 #endif |