Project Name  Version 1.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
jh_tonemap.h
Go to the documentation of this file.
1 /******************************************************************************
2  * This program is protected under international and U.S. copyright laws as *
3  * an unpublished work. This program is confidential and proprietary to the *
4  * copyright owners. Reproduction or disclosure, in whole or in part, or the *
5  * production of derivative works therefrom without the express permission of *
6  * the copyright owners is prohibited. *
7  * *
8  * Copyright (C) 2011-2012 by Dolby Laboratories. *
9  * All rights reserved. *
10  ******************************************************************************/
11 
23 #ifndef _JH_TONEMAP_H
24 #define _JH_TONEMAP_H
25 
26 #include "jh_datatypes.h"
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
34 typedef enum jh_exposure_method_ts {
37 
40 typedef enum jh_tmo_selector_ts {
41  JH_SIMPLE = 1,
43  JH_HAMS = 3,
44  JH_CPT = 4,
46 
51 typedef struct jh_tmo_description_ts {
55 
59 typedef struct jh_tmo_params_ts {
60 
66  float ec;
67  float contrast;
68  float minmax[2];
75  float brightness;
76  float weights[8];
77  int scaler;
78  int msf_radius;
79  float sigma;
80  float drout;
82  float *post_lut;
86  long int reserved;
89 
90 
97 int jh_get_tmo_list (
98  jh_tmo_description_t tmo_list[]
99 );
100 
104 int jh_tonemap(
105  const jh_tmo_params_t *tmo_params,
106  jh_monitor_t *monitor,
107  const jh_image_t *hdri,
108  const jh_rect_t *r_in,
110  jh_image_t *sdri,
112  jh_error_t* error
114 );
115 
120  const int pixels,
121  const jh_tmo_params_t *tmo_params,
122  int *mem,
124  jh_error_t *error
126 );
127 
132  const jh_tmo_selector_t tmo,
133  jh_tmo_params_t *params,
134  jh_error_t *error
136 );
137  /* end of defgroup tmoint */
139 
140 #ifdef __cplusplus
141 }
142 #endif
143 
144 #endif /*_JH_TONEMAP_H*/