diff options
author | Tyler Luu <tluu@ti.com> | 2011-08-24 20:53:34 -0500 |
---|---|---|
committer | Iliyan Malchev <malchev@google.com> | 2011-09-07 20:18:32 -0700 |
commit | 24757b4e0fdd25e118ca322a1243c1dbe060955d (patch) | |
tree | ca6744b1d79649b3929e9a370af4aa8562c5a927 /jhead.h | |
parent | c7f0656886586f88dc9bf5b3a2bcacc0bd17f018 (diff) | |
download | jhead-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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |