diff options
author | Hans de Goede <hdegoede@redhat.com> | 2010-03-30 20:25:54 +0000 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2010-03-30 20:25:54 +0000 |
commit | b83e8cbbf8ae5b9978d0da01aa90d056e5ad205f (patch) | |
tree | 62b0668fdc99421c701916c67cdb17b529d9ad3d /camlibs/ax203/jpeg_memsrcdest.h | |
parent | e0c906db7eccdf0299e1b39be2faaf37770c0f80 (diff) | |
download | libgphoto2-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.h | 9 |
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); |