Defines the API for the JPEG-HDR mobile encoder library.
More...
Detailed Description
Defines the API for the JPEG-HDR mobile encoder library.
Function Documentation
Provides the memory requirements estimate for the encoder and tonemapper.
- Returns
- 0 if the function does not succeed.
- Parameters
-
[in] | pixels | Image size, in pixels. |
[in] | encoder_params | Encoder parameters. Can be NULL to exclude encoder memory. |
[in,out] | mem | User-allocated variable that returns the amount of required memory, in bytes. |
[in,out] | error | User-allocated error-reporting structure that contains information about the error. |
Encodes the HDR data into JPEG-HDR.
- Returns
- 0 if the function does not succeed.
- Parameters
-
[in] | encoder_params | Encoder parameters. |
[in] | monitor | Progress status of the function. The initial value of jh_monitor_ts cancel field must be 0. |
[in] | hdri | Input HDR image. If specified, the memory can be reused during encoding. |
[in] | sdri | Input tone-mapped SDRI image. |
[out] | stream | Output data stream. |
[in,out] | error | User-allocated error-reporting structure that contains information about the error. |
Sets the default value of the encoder parameters.
- Returns
- 0 if the function does not succeed.
- Parameters
-
[out] | params | User-allocated encoder parameters. |
[in,out] | error | User-allocated error-reporting structure that contains information about the error. |
const char* jh_encoder_version |
( |
| ) |
|
Returns the encoder library version in a formatted string of major.minor.build
.
- Returns
- The library version in a null-terminated character string.