view 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 source

#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 fb_width, int fb_height, int bits_per_pixel, int mon_width, int mon_height);

#endif

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