Project Name  Version 1.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Data Structures | Macros | Typedefs | Enumerations
Shared Data Types

Declares data types shared by the JPEG-HDR mobile libraries. More...

Data Structures

struct  jh_rect_ts
 Defines the coordinates and dimensions of the rectangle. More...
struct  jh_error_ts
 Defines the error reporting structure. The structure should be allocated by the user. More...
struct  jh_image_ts
 Defines the structure that holds the image data. More...
struct  jh_monitor_ts
 Defines the progress status of a library function, allowing both progress monitoring and encoding canceling. More...

Macros

#define MSG_SIZE   200
 Maximum size of the string in the jh_error_ts description field.

Typedefs

typedef enum jh_pixel_type_ts jh_pixel_type_t
 Defines the pixel type of an image.
typedef struct jh_rect_ts jh_rect_t
 Defines the coordinates and dimensions of the rectangle.
typedef enum jh_result_ts jh_result_t
 Defines result codes, which are provided for debugging purposes.
typedef struct jh_error_ts jh_error_t
 Defines the error reporting structure. The structure should be allocated by the user.
typedef struct jh_image_ts jh_image_t
 Defines the structure that holds the image data.
typedef struct jh_monitor_ts jh_monitor_t
 Defines the progress status of a library function, allowing both progress monitoring and encoding canceling.

Enumerations

enum  jh_pixel_type_ts {
  JH_RGB8 = 1, JH_RGBA8 = 2, JH_RGB16 = 3, JH_RGBF = 4,
  JH_YUV444I8 = 5, JH_YUV420CH8 = 6
}
 Defines the pixel type of an image. More...
enum  jh_result_ts {
  JH_OK = 0, JH_MEMORY = 1, JH_CANCELED = 2, JH_INVALID_ARGUMENT = 3,
  JH_JPEG_ERROR = 4, JH_JPEG_FORMAT_ERROR = 5, JH_UNSUPPORTED = 6, JH_NOT_IMPLEMENTED = 7,
  JH_USER_STREAM_ERROR = 8, JH_M11_FORMAT_ERROR = 9, JH_M11_VERSION_ERROR = 10, JH_ERROR = 11,
  JH_ENCODER_ERROR = 12
}
 Defines result codes, which are provided for debugging purposes. More...

Detailed Description

Declares data types shared by the JPEG-HDR mobile libraries.

Typedef Documentation

typedef struct jh_monitor_ts jh_monitor_t

Defines the progress status of a library function, allowing both progress monitoring and encoding canceling.

Note
The variables of type jh_monitor_ts serve both caller (a consumer of the requested service) and callee (the provider of the requested service). When the caller decides to stop the callee, it sets the value of cancel to 1. The callee is supposed to watch this variable. When the value of cancel becomes non-zero, the callee shuts down nicely whatever it is doing.
The value of progress must be in the range 0 to 1, indicating the percentage of the work completed by the callee. When the progress is reported to the caller, the caller is allowed to update a progress indicator. The caller is responsible for setting the correct values of the variables.
At the moment the callee is called, the value of cancel must be 0.

Enumeration Type Documentation

Defines the pixel type of an image.

Enumerator:
JH_RGB8 

Interleaved (packed) RGB 8-bit data.

JH_RGBA8 

Interleaved (packed) RGBA 8-bit data.

JH_RGB16 

Interleaved (packed) RGB 16-bit data.

JH_RGBF 

Interleaved (packed) RGB 32-bit floating point data.

JH_YUV444I8 

Interleaved (packed) YUV 4:4:4 8-bit data

JH_YUV420CH8 

Hybrid YUV 8-bit data. Y and UV are in plain layout. U and V are interleaved.

Definition at line 33 of file jh_datatypes.h.

Defines result codes, which are provided for debugging purposes.

Enumerator:
JH_OK 

The operation completed successfully.

JH_MEMORY 

Memory allocation failed.

JH_CANCELED 

The operation was canceled.

JH_INVALID_ARGUMENT 

One or more input arguments are not valid.

JH_JPEG_ERROR 

An error occurred in the JPEG library.

JH_JPEG_FORMAT_ERROR 

The file is not in JPEG format or is corrupted.

JH_UNSUPPORTED 

The requested functionality is not supported.

JH_NOT_IMPLEMENTED 

The requested functionality has not yet been implemented.

JH_USER_STREAM_ERROR 

An error occurred in a user-provided stream.

JH_M11_FORMAT_ERROR 

An error occurred during parsing of the APP11 data.

JH_M11_VERSION_ERROR 

The version number of the DD HDR APP11 is not valid. The current version is 2.0

JH_ERROR 

An unclassified error occurred.

JH_ENCODER_ERROR 

An encoder error occurred.

Definition at line 53 of file jh_datatypes.h.