aboutsummaryrefslogtreecommitdiff
path: root/src/jpeg.h
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2010-07-30 13:07:08 -0400
committerKevin O'Connor <kevin@koconnor.net>2010-07-30 13:07:08 -0400
commitbbc4722277845fbe190fc997f3a2eb2408f6152e (patch)
tree98596ca31bee8a28b8e98e6b638640ebe06fe0c9 /src/jpeg.h
parent2976dd4204405cd9b1296732a5a7ad6d67d8dd73 (diff)
downloadseabios-hppa-bbc4722277845fbe190fc997f3a2eb2408f6152e.zip
seabios-hppa-bbc4722277845fbe190fc997f3a2eb2408f6152e.tar.gz
seabios-hppa-bbc4722277845fbe190fc997f3a2eb2408f6152e.tar.bz2
Breakup jpeg_decode into parsing and displaying phases.
Split the screen display code out of the jpeg parsing code. Allow ability for caller to obtain jpeg dimensions.
Diffstat (limited to 'src/jpeg.h')
-rw-r--r--src/jpeg.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/jpeg.h b/src/jpeg.h
index 44c83d7..a2ac501 100644
--- a/src/jpeg.h
+++ b/src/jpeg.h
@@ -3,8 +3,9 @@
struct jpeg_decdata;
struct jpeg_decdata *jpeg_alloc(void);
-int jpeg_decode(unsigned char *, unsigned char *, int, int, int,
- struct jpeg_decdata *);
-int jpeg_check_size(struct jpeg_decdata *, unsigned char *, int, int);
+int jpeg_decode(struct jpeg_decdata *jpeg, unsigned char *buf);
+void jpeg_get_size(struct jpeg_decdata *jpeg, int *width, int *height);
+int jpeg_show(struct jpeg_decdata *jpeg, unsigned char *pic
+ , int width, int height, int depth);
#endif