summaryrefslogtreecommitdiff
path: root/camlibs/ax203/jpeg_memsrcdest.h
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2010-03-30 20:25:54 +0000
committerHans de Goede <hdegoede@redhat.com>2010-03-30 20:25:54 +0000
commitb83e8cbbf8ae5b9978d0da01aa90d056e5ad205f (patch)
tree62b0668fdc99421c701916c67cdb17b529d9ad3d /camlibs/ax203/jpeg_memsrcdest.h
parente0c906db7eccdf0299e1b39be2faaf37770c0f80 (diff)
downloadlibgphoto2-b83e8cbbf8ae5b9978d0da01aa90d056e5ad205f.tar.gz
ax203: Add support for firmware v3.5.x (ax206 based) frames
The ax206 based frames use a JPEG-ish compression, thus this patch includes a modified copy of tinyjpeg to decompress this, and some special libjpeg glue code for the compression side. See README.ax203-compression for details on the compressed format. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@12876 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'camlibs/ax203/jpeg_memsrcdest.h')
-rw-r--r--camlibs/ax203/jpeg_memsrcdest.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/camlibs/ax203/jpeg_memsrcdest.h b/camlibs/ax203/jpeg_memsrcdest.h
new file mode 100644
index 000000000..221491f02
--- /dev/null
+++ b/camlibs/ax203/jpeg_memsrcdest.h
@@ -0,0 +1,9 @@
+#include <jpeglib.h>
+
+void
+jpeg_mem_src (j_decompress_ptr cinfo, const JOCTET * buffer, size_t bufsize);
+
+void jpeg_mem_dest (j_compress_ptr cinfo);
+int jpeg_mem_dest_get_final_image_size (j_compress_ptr cinfo);
+JOCTET * jpeg_mem_dest_get_buffer (j_compress_ptr cinfo);
+void jpeg_mem_dest_free_buffer (j_compress_ptr cinfo);