-
Notifications
You must be signed in to change notification settings - Fork 1
/
omx_config.h
184 lines (140 loc) · 6.05 KB
/
omx_config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
#ifndef OMX_CONFIG_INC
#define OMX_CONFIG_INC
/*****************************************************************************/
#include <IL/OMX_Broadcom.h>
#include "error.h"
/*****************************************************************************/
WARN_UNUSED enum error_code
omx_config_sharpness(
OMX_IN OMX_HANDLETYPE hComponent,
OMX_IN OMX_U32 nPortIndex,
OMX_IN OMX_S32 nSharpness);
/*****************************************************************************/
WARN_UNUSED enum error_code
omx_config_contrast(
OMX_IN OMX_HANDLETYPE hComponent,
OMX_IN OMX_U32 nPortIndex,
OMX_IN OMX_S32 nContrast);
/*****************************************************************************/
WARN_UNUSED enum error_code
omx_config_saturation(
OMX_IN OMX_HANDLETYPE hComponent,
OMX_IN OMX_U32 nPortIndex,
OMX_IN OMX_S32 nSaturation);
/*****************************************************************************/
WARN_UNUSED enum error_code
omx_config_brightness(
OMX_IN OMX_HANDLETYPE hComponent,
OMX_IN OMX_U32 nPortIndex,
OMX_IN OMX_S32 nBrightness);
/*****************************************************************************/
WARN_UNUSED enum error_code
omx_config_exposure_value(
OMX_IN OMX_HANDLETYPE hComponent,
OMX_U32 nPortIndex,
OMX_IN OMX_METERINGTYPE eMetering,
OMX_IN OMX_S32 xEVCompensation,
OMX_IN OMX_U32 nApertureFNumber,
OMX_IN OMX_BOOL bAutoAperture,
OMX_IN OMX_U32 nShutterSpeedMsec,
OMX_IN OMX_BOOL bAutoShutterSpeed,
OMX_IN OMX_U32 nSensitivity,
OMX_IN OMX_BOOL bAutoSensitivity);
/*****************************************************************************/
WARN_UNUSED enum error_code
omx_config_exposure(
OMX_IN OMX_HANDLETYPE hComponent,
OMX_IN OMX_U32 nPortIndex,
OMX_IN OMX_EXPOSURECONTROLTYPE eExposureControl);
/*****************************************************************************/
WARN_UNUSED enum error_code
omx_config_frame_stabilisation(
OMX_IN OMX_HANDLETYPE hComponent,
OMX_IN OMX_U32 nPortIndex,
OMX_IN OMX_BOOL bStab);
/*****************************************************************************/
WARN_UNUSED enum error_code
omx_config_white_balance(
OMX_IN OMX_HANDLETYPE hComponent,
OMX_IN OMX_U32 nPortIndex,
OMX_WHITEBALCONTROLTYPE eWhiteBalControl);
/*****************************************************************************/
WARN_UNUSED enum error_code
omx_config_white_balance_gains(
OMX_IN OMX_HANDLETYPE hComponent,
OMX_IN OMX_U32 xGainR,
OMX_IN OMX_U32 xGainB);
/*****************************************************************************/
WARN_UNUSED enum error_code
omx_config_image_filter(
OMX_IN OMX_HANDLETYPE hComponent,
OMX_IN OMX_U32 nPortIndex,
OMX_IMAGEFILTERTYPE eImageFilter);
/*****************************************************************************/
WARN_UNUSED enum error_code
omx_config_mirror(
OMX_IN OMX_HANDLETYPE hComponent,
OMX_IN OMX_U32 nPortIndex,
OMX_MIRRORTYPE eMirror);
/*****************************************************************************/
WARN_UNUSED enum error_code
omx_config_rotation(
OMX_IN OMX_HANDLETYPE hComponent,
OMX_IN OMX_U32 nPortIndex,
OMX_IN OMX_S32 nRotation);
/*****************************************************************************/
WARN_UNUSED enum error_code
omx_config_color_enhancement(
OMX_IN OMX_HANDLETYPE hComponent,
OMX_IN OMX_U32 nPortIndex,
OMX_IN OMX_BOOL bColorEnhancement,
OMX_IN OMX_U8 nCustomizedU,
OMX_IN OMX_U8 nCustomizedV);
/*****************************************************************************/
WARN_UNUSED enum error_code
omx_config_denoise(
OMX_IN OMX_HANDLETYPE hComponent,
OMX_IN OMX_BOOL bEnabled);
/*****************************************************************************/
WARN_UNUSED enum error_code
omx_config_input_crop_percentage(
OMX_IN OMX_HANDLETYPE hComponent,
OMX_IN OMX_U32 nPortIndex,
OMX_IN OMX_U32 xLeft,
OMX_IN OMX_U32 xTop,
OMX_IN OMX_U32 xWidth,
OMX_IN OMX_U32 xHeight);
/*****************************************************************************/
WARN_UNUSED enum error_code
omx_config_dynamic_range_expansion(
OMX_IN OMX_HANDLETYPE hComponent,
OMX_IN OMX_DYNAMICRANGEEXPANSIONMODETYPE eMode);
/*****************************************************************************/
WARN_UNUSED enum error_code
omx_config_port_capturing(
OMX_IN OMX_HANDLETYPE hComponent,
OMX_IN OMX_U32 nPortIndex,
OMX_IN OMX_BOOL bEnabled);
/*****************************************************************************/
WARN_UNUSED enum error_code
omx_config_request_callback(
OMX_IN OMX_HANDLETYPE hComponent,
OMX_IN OMX_U32 nPortIndex,
OMX_IN OMX_INDEXTYPE nIndex,
OMX_IN OMX_BOOL bEnable);
/*****************************************************************************/
WARN_UNUSED enum error_code
omx_config_metadata_item(
OMX_IN OMX_HANDLETYPE hComponent,
OMX_IN OMX_METADATASCOPETYPE eScopeMode,
OMX_IN OMX_U32 nScopeSpecifier,
OMX_IN char *nKey,
OMX_IN char *nValue);
/*****************************************************************************/
WARN_UNUSED enum error_code
omx_config_singlestep(
OMX_IN OMX_HANDLETYPE hComponent,
OMX_IN OMX_U32 nPortIndex,
OMX_IN OMX_U32 nSteps);
/*****************************************************************************/
#endif