1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
#ifndef __SH7722__SH7722_JPEGLIB_H__
#define __SH7722__SH7722_JPEGLIB_H__
#include <jpeglib.h>
typedef struct {
DirectStream *stream;
int width;
int height;
bool mode420;
bool mode444;
struct jpeg_decompress_struct cinfo;
} SH7722_JPEG_context;
DirectResult SH7722_JPEG_Initialize( void );
DirectResult SH7722_JPEG_Shutdown( void );
DirectResult SH7722_JPEG_Open ( DirectStream *stream,
SH7722_JPEG_context *context );
DirectResult SH7722_JPEG_Decode( SH7722_JPEG_context *context,
const DFBRectangle *rect,
const DFBRegion *clip,
DFBSurfacePixelFormat format,
unsigned long phys,
void *addr,
int pitch,
unsigned int width,
unsigned int height );
DirectResult SH7722_JPEG_Close ( SH7722_JPEG_context *context );
DirectResult SH7722_JPEG_Encode( const char *filename,
const DFBRectangle *srcrect,
DFBSurfacePixelFormat srcformat,
unsigned long srcphys,
int srcpitch,
unsigned int width,
unsigned int height,
unsigned int tmpphys );
#endif
|