diff 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
line wrap: on
line diff
--- a/common.h	Sat May 14 23:08:11 2011 +0200
+++ b/common.h	Sun May 15 17:48:57 2011 +0200
@@ -1,11 +1,15 @@
 #ifndef COMMON_H
 #define COMMON_H
 
+#ifndef MIN
+#define MIN(x, y) ((x < y) ? (x) : (y))
+#endif
+
 typedef struct {
   unsigned long size;
   unsigned char *ptr;
 } jpg_buf_t;
 
-jpg_buf_t build_jpg_from_fb(unsigned char *fb_mem, int width, int height, int bits_per_pixel);
+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);
 
 #endif

Repositories maintained by Peter Meerwald, pmeerw@pmeerw.net.