Project Name
Version 1.0
Main Page
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Groups
Pages
src
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
{
35
JH_EX_MODE_MEDIAN
= 1
36
}
jh_exposure_method_t
;
37
40
typedef
enum
jh_tmo_selector_ts
{
41
JH_SIMPLE
= 1,
42
JH_EXP_GAMMA
= 2,
43
JH_HAMS
= 3,
44
JH_CPT
= 4,
45
}
jh_tmo_selector_t
;
46
51
typedef
struct
jh_tmo_description_ts
{
52
jh_tmo_selector_t
tmo
;
53
char
*
tmo_description
;
54
}
jh_tmo_description_t
;
55
59
typedef
struct
jh_tmo_params_ts
{
60
64
jh_exposure_method_t
em
;
65
jh_tmo_selector_t
selected_tmo
;
66
float
ec
;
67
float
contrast
;
68
float
minmax
[2];
74
jh_rect_t
ex_rect
;
75
float
brightness
;
76
float
weights
[8];
77
int
scaler
;
78
int
msf_radius
;
79
float
sigma
;
80
float
drout
;
81
int
post_lut_size
;
82
float
*
post_lut
;
86
long
int
reserved
;
88
}
jh_tmo_params_t
;
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
119
int
jh_tonemap_memory_estimate
(
120
const
int
pixels,
121
const
jh_tmo_params_t
*tmo_params,
122
int
*mem,
124
jh_error_t
*error
126
);
127
131
int
jh_tonemap_set_default
(
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*/
Generated on Wed Jul 18 2012 17:06:52 for Project Name by
1.8.1.2