summaryrefslogtreecommitdiff
path: root/jhead.h
diff options
context:
space:
mode:
authorTyler Luu <tluu@ti.com>2011-08-24 20:53:34 -0500
committerIliyan Malchev <malchev@google.com>2011-09-07 20:18:32 -0700
commit24757b4e0fdd25e118ca322a1243c1dbe060955d (patch)
treeca6744b1d79649b3929e9a370af4aa8562c5a927 /jhead.h
parentc7f0656886586f88dc9bf5b3a2bcacc0bd17f018 (diff)
downloadjhead-24757b4e0fdd25e118ca322a1243c1dbe060955d.tar.gz
Add API for jhead to use a JPEG buffer
Previously, jhead API only supports reading and saving a JPEG from/to a file. This patch adds functionality to use the jhead library with a JPEG buffer from memory. Signed-off-by: Tyler Luu <tluu@ti.com> Change-Id: I18be11c8255fcdcc38f49167853c5b9690448557 Signed-off-by: Iliyan Malchev <malchev@google.com>
Diffstat (limited to 'jhead.h')
-rw-r--r--jhead.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/jhead.h b/jhead.h
index 59130cf..6a71745 100644
--- a/jhead.h
+++ b/jhead.h
@@ -237,6 +237,8 @@ int WriteJpegFile(const char * FileName);
Section_t * FindSection(int SectionType);
Section_t * CreateSection(int SectionType, unsigned char * Data, int size);
void ResetJpgfile(void);
+int ReadJpegSectionsFromBuffer (unsigned char* buffer, unsigned int buffer_size, ReadMode_t ReadMode);
+int WriteJpegToBuffer(unsigned char* buffer, unsigned int buffer_size);
// Variables from jhead.c used by exif.c
extern ImageInfo_t ImageInfo;