1 | // Provides an implementation of jpeg_source_mgr for in-memory data sources. |
2 | |
3 | #ifndef __dng_jpeg_memory_source__ |
4 | #define __dng_jpeg_memory_source__ |
5 | |
6 | #if qDNGUseLibJPEG |
7 | |
8 | #include "dng_tag_types.h" |
9 | #include "dng_jpeglib.h" |
10 | |
11 | #include <limits> |
12 | |
13 | // Creates a jpeg_source_mgr for an in-memory data source based on the given |
14 | // buffer with length 'size'. |
15 | jpeg_source_mgr CreateJpegMemorySource(const uint8 *buffer, size_t size); |
16 | |
17 | #endif // qDNGUseLibJPEG |
18 | |
19 | #endif // __dng_jpeg_memory_source__ |
20 | |