Project Name  Version 1.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Data Structures | Macros | Typedefs | Functions
jh_jpeg_wrap.h File Reference

Header file containing declarations of functions and data structures for the JPEG wrapper interface. This file contains declarations of the functions and data structure that are used by the JPEG wrapper interface. More...

#include "jh_datatypes.h"

Go to the source code of this file.

Data Structures

struct  jh_jpegwrap_params_ts
 Defines the parameter block passed to the JPEG library to decompress the JPEG image, which includes image size and scaling factors. More...

Macros

#define JH_FORMAT_VERSION_MAJOR   (2)
#define JH_FORMAT_VERSION_MINOR   (1)
#define JH_ID_STRING   "DD"
#define JH_PARAM_SEGMENT   "<ln0=%f><ln1=%f><s2n=%e><cb0=%f><cb1=%f><cr0=%f><cr1=%f><nf=%f>"
#define LIB_VERSION   "0.2.0"
#define JH_MAX_HEADER_SIZE   (1024*8)

Typedefs

typedef struct
jh_jpegwrap_params_ts 
jh_jpegwrap_params_t
 Defines the parameter block passed to the JPEG library to decompress the JPEG image, which includes image size and scaling factors.

Functions

int jh_jpeg_compress (const jh_image_t *sbi, unsigned qual, jh_stream_t *stream, jh_error_t *error, int debug)
 Compresses a residual image, also known as the subband image (SBI), in JPEG JFIF file format and stores the compressed image in memory.
int jh_jpeg_compress_and_attach (const jh_image_t *sdri, unsigned qual, unsigned char *m11, unsigned *m11_sizes, unsigned char *icc, unsigned icc_size, jh_stream_t *stream, jh_error_t *error, int debug)
 Compresses a standard dynamic range image (SDRI) in JPEG JFIF file format, attaches APP11 segments and an ICC profile, and stores the resulting image in memory.
void jh_jpeg_release (unsigned char **jpg_buffer)
 Releases the memory buffer created by jh_jpeg_compress() for the compressed SBI.
int jh_jpeg_decompress_jpeghdr (unsigned char *jpg, size_t jpg_size, int *width, int *height, unsigned char **icc, int *icc_size, unsigned char **tmi, unsigned char **sbi, char *header, int probe_header, jh_jpegwrap_params_t *opts, jh_error_t *error, jh_monitor_t *monitorv)
 Decompresses the JPEG-HDR file.
jh_result_t jh_jpeg_read_header_mem (void *inbuffer, int size, int *width, int *height, int *channels, char *message)
 Reads the JPEG-HDR file to get basic information about the image.

Detailed Description

Header file containing declarations of functions and data structures for the JPEG wrapper interface. This file contains declarations of the functions and data structure that are used by the JPEG wrapper interface.

Definition in file jh_jpeg_wrap.h.