@@ -25,7 +25,7 @@ extern "C" {
25
25
*/
26
26
enum {
27
27
/*!
28
- This extended buffer is mandatory for camera raw acclerator initialization. See the mfxExtCamPipeControl structure for details.
28
+ This extended buffer is mandatory for camera raw accelerator initialization. See the mfxExtCamPipeControl structure for details.
29
29
The application should attach this extended buffer to the mfxVideoParam structure to configure camera processing initialization.
30
30
*/
31
31
MFX_EXTBUF_CAM_PIPECONTROL = MFX_MAKEFOURCC ('C' , 'P' , 'P' , 'C' ),
@@ -106,13 +106,11 @@ MFX_PACK_BEGIN_USUAL_STRUCT()
106
106
A hint structure that configures Camera White Balance filter.
107
107
*/
108
108
typedef struct {
109
- mfxExtBuffer
110
- Header ; /*!< Extension buffer header. Header.BufferId must be equal to MFX_EXTBUF_CAM_WHITE_BALANCE. */
111
- mfxU32
112
- Mode ; /*!< Specifies one of White Balance operation modes defined in enumeration mfxCamWhiteBalanceMode. */
113
- mfxF64 R ; /*!< White Balance Red correction. */
114
- mfxF64 G0 ; /*!< White Balance Green Top correction. */
115
- mfxF64 B ; /*!< White Balance Blue correction.*/
109
+ mfxExtBuffer Header ; /*!< Extension buffer header. Header.BufferId must be equal to MFX_EXTBUF_CAM_WHITE_BALANCE. */
110
+ mfxU32 Mode ; /*!< Specifies one of White Balance operation modes defined in enumeration mfxCamWhiteBalanceMode. */
111
+ mfxF64 R ; /*!< White Balance Red correction.*/
112
+ mfxF64 G0 ; /*!< White Balance Green Top correction.*/
113
+ mfxF64 B ; /*!< White Balance Blue correction.*/
116
114
mfxF64 G1 ; /*!< White Balance Green Bottom correction. */
117
115
mfxU32 reserved [8 ]; /*!< Reserved for future extension. */
118
116
} mfxExtCamWhiteBalance ;
@@ -123,8 +121,7 @@ MFX_PACK_BEGIN_USUAL_STRUCT()
123
121
A hint structure that configures Camera Total Color Control filter.
124
122
*/
125
123
typedef struct {
126
- mfxExtBuffer
127
- Header ; /*!< Extension buffer header. Header.BufferId must be equal to MFX_EXTBUF_CAM_TOTAL_COLOR_CONTROL. */
124
+ mfxExtBuffer Header ; /*!< Extension buffer header. Header.BufferId must be equal to MFX_EXTBUF_CAM_TOTAL_COLOR_CONTROL. */
128
125
mfxU16 R ; /*!< Red element.*/
129
126
mfxU16 G ; /*!< Green element.*/
130
127
mfxU16 B ; /*!< Blue element.*/
@@ -140,15 +137,11 @@ MFX_PACK_BEGIN_USUAL_STRUCT()
140
137
A hint structure that configures Camera YUV to RGB format conversion.
141
138
*/
142
139
typedef struct {
143
- mfxExtBuffer
144
- Header ; /*!< Extension buffer header. Header.BufferId must be equal to MFX_EXTBUF_CAM_CSC_YUV_RGB. */
145
- mfxF32 PreOffset
146
- [3 ]; /*!< Specifies offset for conversion from full range RGB input to limited range YUV for input color coordinate.*/
147
- mfxF32 Matrix [3 ]
148
- [3 ]; /*!< Specifies conversion matrix with CSC coefficients.*/
149
- mfxF32 PostOffset
150
- [3 ]; /*!< Specifies offset for conversion from full range RGB input to limited range YUV for output color coordinate.*/
151
- mfxU16 reserved [30 ]; /*!< Reserved for future extension.*/
140
+ mfxExtBuffer Header ; /*!< Extension buffer header. Header.BufferId must be equal to MFX_EXTBUF_CAM_CSC_YUV_RGB. */
141
+ mfxF32 PreOffset [3 ]; /*!< Specifies offset for conversion from full range RGB input to limited range YUV for input color coordinate.*/
142
+ mfxF32 Matrix [3 ][3 ]; /*!< Specifies conversion matrix with CSC coefficients.*/
143
+ mfxF32 PostOffset [3 ]; /*!< Specifies offset for conversion from full range RGB input to limited range YUV for output color coordinate.*/
144
+ mfxU16 reserved [30 ]; /*!< Reserved for future extension.*/
152
145
} mfxExtCamCscYuvRgb ;
153
146
MFX_PACK_END ()
154
147
@@ -157,24 +150,22 @@ MFX_PACK_BEGIN_USUAL_STRUCT()
157
150
A hint structure that configures Camera Hot Pixel Removal filter.
158
151
*/
159
152
typedef struct {
160
- mfxExtBuffer
161
- Header ; /*!< Extension buffer header. Header.BufferId must be equal to MFX_EXTBUF_CAM_HOT_PIXEL_REMOVAL. */
153
+ mfxExtBuffer Header ; /*!< Extension buffer header. Header.BufferId must be equal to MFX_EXTBUF_CAM_HOT_PIXEL_REMOVAL. */
162
154
mfxU16 PixelThresholdDifference ; /*!< Threshold for Hot Pixel difference. */
163
- mfxU16 PixelCountThreshold ; /*!< Count pixel detection.*/
164
- mfxU16 reserved [32 ]; /*!< Reserved for future extension.*/
155
+ mfxU16 PixelCountThreshold ; /*!< Count pixel detection.*/
156
+ mfxU16 reserved [32 ]; /*!< Reserved for future extension.*/
165
157
} mfxExtCamHotPixelRemoval ;
166
158
MFX_PACK_END ()
167
159
168
160
MFX_PACK_BEGIN_USUAL_STRUCT ()
169
161
typedef struct {
170
- /*!
162
+ /*!
171
163
A hint structure that configures Camera black level correction.
172
164
*/
173
- mfxExtBuffer
174
- Header ; /*!< Extension buffer header. Header.BufferId must be equal to MFX_EXTBUF_CAM_BLACK_LEVEL_CORRECTION. */
175
- mfxU16 R ; /*!< Black Level Red correction.*/
165
+ mfxExtBuffer Header ; /*!< Extension buffer header. Header.BufferId must be equal to MFX_EXTBUF_CAM_BLACK_LEVEL_CORRECTION. */
166
+ mfxU16 R ; /*!< Black Level Red correction.*/
176
167
mfxU16 G0 ; /*!< Black Level Green Top correction.*/
177
- mfxU16 B ; /*!< Black Level Blue correction.*/
168
+ mfxU16 B ; /*!< Black Level Blue correction.*/
178
169
mfxU16 G1 ; /*!< Black Level Green Bottom correction.*/
179
170
mfxU32 reserved [4 ]; /*!< Reserved for future extension.*/
180
171
} mfxExtCamBlackLevelCorrection ;
@@ -185,8 +176,8 @@ MFX_PACK_BEGIN_USUAL_STRUCT()
185
176
A structure that defines Camera Vignette Correction Element.
186
177
*/
187
178
typedef struct {
188
- mfxU8 integer ; /*!< Integer part of correction element.*/
189
- mfxU8 mantissa ; /*!< Fractional part of correction element.*/
179
+ mfxU8 integer ; /*!< Integer part of correction element.*/
180
+ mfxU8 mantissa ; /*!< Fractional part of correction element.*/
190
181
mfxU8 reserved [6 ]; /*!< Reserved for future extension.*/
191
182
} mfxCamVignetteCorrectionElement ;
192
183
MFX_PACK_END ()
@@ -196,9 +187,9 @@ MFX_PACK_BEGIN_USUAL_STRUCT()
196
187
A structure that defines Camera Vignette Correction Parameters.
197
188
*/
198
189
typedef struct {
199
- mfxCamVignetteCorrectionElement R ; /*!< Red correction element.*/
190
+ mfxCamVignetteCorrectionElement R ; /*!< Red correction element.*/
200
191
mfxCamVignetteCorrectionElement G0 ; /*!< Green top correction element.*/
201
- mfxCamVignetteCorrectionElement B ; /*!< Blue Correction element.*/
192
+ mfxCamVignetteCorrectionElement B ; /*!< Blue Correction element.*/
202
193
mfxCamVignetteCorrectionElement G1 ; /*!< Green bottom correction element.*/
203
194
mfxU32 reserved [4 ]; /*!< Reserved for future extension.*/
204
195
} mfxCamVignetteCorrectionParam ;
@@ -209,20 +200,15 @@ MFX_PACK_BEGIN_STRUCT_W_PTR()
209
200
A hint structure that configures Camera Vignette Correction filter.
210
201
*/
211
202
typedef struct {
212
- mfxExtBuffer
213
- Header ; /*!< Extension buffer header. Header.BufferId must be equal to MFX_EXTBUF_CAM_VIGNETTE_CORRECTION. */
214
- mfxU32
215
- Width ; /*!< Width of Correction Map 2D buffer in mfxCamVignetteCorrectionParam elements. */
216
- mfxU32
217
- Height ; /*!< Height of Correction Map 2D buffer in mfxCamVignetteCorrectionParam elements. */
218
- mfxU32
219
- Pitch ; /*!< Pitch of Correction Map 2D buffer in mfxCamVignetteCorrectionParam elements. */
220
- mfxU32 reserved [7 ]; /*!< Reserved for future extension.*/
203
+ mfxExtBuffer Header ; /*!< Extension buffer header. Header.BufferId must be equal to MFX_EXTBUF_CAM_VIGNETTE_CORRECTION. */
204
+ mfxU32 Width ; /*!< Width of Correction Map 2D buffer in mfxCamVignetteCorrectionParam elements. */
205
+ mfxU32 Height ; /*!< Height of Correction Map 2D buffer in mfxCamVignetteCorrectionParam elements. */
206
+ mfxU32 Pitch ; /*!< Pitch of Correction Map 2D buffer in mfxCamVignetteCorrectionParam elements. */
207
+ mfxU32 reserved [7 ]; /*!< Reserved for future extension.*/
221
208
222
209
union {
223
- mfxCamVignetteCorrectionParam *
224
- CorrectionMap ; /*!< 2D buffer of mfxCamVignetteCorrectionParam elements.*/
225
- mfxU64 reserved1 ; /*!< Reserved for alignment on 32bit and 64bit.*/
210
+ mfxCamVignetteCorrectionParam * CorrectionMap ; /*!< 2D buffer of mfxCamVignetteCorrectionParam elements.*/
211
+ mfxU64 reserved1 ; /*!< Reserved for alignment on 32bit and 64bit.*/
226
212
};
227
213
} mfxExtCamVignetteCorrection ;
228
214
MFX_PACK_END ()
@@ -232,9 +218,8 @@ MFX_PACK_BEGIN_USUAL_STRUCT()
232
218
A hint structure that configures Camera Bayer denoise filter.
233
219
*/
234
220
typedef struct {
235
- mfxExtBuffer
236
- Header ; /*!< Extension buffer header. Header.BufferId must be equal to MFX_EXTBUF_CAM_BAYER_DENOISE. */
237
- mfxU16 Threshold ; /*!< Level of denoise, legal values: [0:63].*/
221
+ mfxExtBuffer Header ; /*!< Extension buffer header. Header.BufferId must be equal to MFX_EXTBUF_CAM_BAYER_DENOISE. */
222
+ mfxU16 Threshold ; /*!< Level of denoise, legal values: [0:63].*/
238
223
mfxU16 reserved [27 ]; /*!< Reserved for future extension.*/
239
224
} mfxExtCamBayerDenoise ;
240
225
MFX_PACK_END ()
@@ -244,11 +229,8 @@ MFX_PACK_BEGIN_STRUCT_W_L_TYPE()
244
229
A hint structure that configures Camera Color correction filter.
245
230
*/
246
231
typedef struct {
247
- mfxExtBuffer
248
- Header ; /*!< Extension buffer header. Header.BufferId must be equal to MFX_EXTBUF_CAM_COLOR_CORRECTION_3X3. */
249
- mfxF32 CCM
250
- [3 ]
251
- [3 ]; /*!< 3x3 dimension matrix providing RGB Color Correction coefficients.*/
232
+ mfxExtBuffer Header ; /*!< Extension buffer header. Header.BufferId must be equal to MFX_EXTBUF_CAM_COLOR_CORRECTION_3X3. */
233
+ mfxF32 CCM [3 ][3 ]; /*!< 3x3 dimension matrix providing RGB Color Correction coefficients.*/
252
234
mfxU32 reserved [32 ]; /*!< Reserved for future extension.*/
253
235
} mfxExtCamColorCorrection3x3 ;
254
236
MFX_PACK_END ()
@@ -258,17 +240,12 @@ MFX_PACK_BEGIN_USUAL_STRUCT()
258
240
A hint structure that configures Camera Padding.
259
241
*/
260
242
typedef struct {
261
- mfxExtBuffer
262
- Header ; /*!< Extension buffer header. Header.BufferId must be equal to MFX_EXTBUF_CAM_PADDING. */
263
- mfxU16
264
- Top ; /*!< Specify number of padded columns respectively. Currently only 8 pixels supported for all dimensions. */
265
- mfxU16
266
- Bottom ; /*!< Specify number of padded columns respectively. Currently only 8 pixels supported for all dimensions. */
267
- mfxU16
268
- Left ; /*!< Specify number of padded rows respectively. Currently only 8 pixels supported for all dimensions. */
269
- mfxU16
270
- Right ; /*!< Specify number of padded rows respectively. Currently only 8 pixels supported for all dimensions. */
271
- mfxU32 reserved [4 ]; /*!< Reserved for future extension.*/
243
+ mfxExtBuffer Header ; /*!< Extension buffer header. Header.BufferId must be equal to MFX_EXTBUF_CAM_PADDING. */
244
+ mfxU16 Top ; /*!< Specify number of padded columns respectively. Currently only 8 pixels supported for all dimensions. */
245
+ mfxU16 Bottom ; /*!< Specify number of padded columns respectively. Currently only 8 pixels supported for all dimensions. */
246
+ mfxU16 Left ; /*!< Specify number of padded rows respectively. Currently only 8 pixels supported for all dimensions. */
247
+ mfxU16 Right ; /*!< Specify number of padded rows respectively. Currently only 8 pixels supported for all dimensions. */
248
+ mfxU32 reserved [4 ]; /*!< Reserved for future extension.*/
272
249
} mfxExtCamPadding ;
273
250
MFX_PACK_END ()
274
251
@@ -303,12 +280,10 @@ MFX_PACK_BEGIN_USUAL_STRUCT()
303
280
A hint structure that configures camera pipe control.
304
281
*/
305
282
typedef struct {
306
- mfxExtBuffer
307
- Header ; /*!< Extension buffer header. Header.BufferId must be equal to MFX_EXTBUF_CAM_PIPECONTROL. */
308
- mfxU16
309
- RawFormat ; /*!< Specifies one of the four Bayer patterns defined in mfxCamBayerFormat enumeration.*/
310
- mfxU16 reserved1 ; /*!< Reserved for future extension.*/
311
- mfxU32 reserved [5 ]; /*!< Reserved for future extension.*/
283
+ mfxExtBuffer Header ; /*!< Extension buffer header. Header.BufferId must be equal to MFX_EXTBUF_CAM_PIPECONTROL. */
284
+ mfxU16 RawFormat ; /*!< Specifies one of the four Bayer patterns defined in mfxCamBayerFormat enumeration. */
285
+ mfxU16 reserved1 ; /*!< Reserved for future extension.*/
286
+ mfxU32 reserved [5 ]; /*!< Reserved for future extension.*/
312
287
} mfxExtCamPipeControl ;
313
288
MFX_PACK_END ()
314
289
@@ -318,9 +293,9 @@ MFX_PACK_BEGIN_USUAL_STRUCT()
318
293
*/
319
294
typedef struct {
320
295
mfxU16 Pixel ; /*!< Pixel value.*/
321
- mfxU16 Red ; /*!< Corrected Red value.*/
296
+ mfxU16 Red ; /*!< Corrected Red value.*/
322
297
mfxU16 Green ; /*!< Corrected Green value.*/
323
- mfxU16 Blue ; /*!< Corrected Blue value.*/
298
+ mfxU16 Blue ; /*!< Corrected Blue value.*/
324
299
} mfxCamFwdGammaSegment ;
325
300
MFX_PACK_END ()
326
301
@@ -329,14 +304,13 @@ MFX_PACK_BEGIN_STRUCT_W_L_TYPE()
329
304
A hint structure that configures Camera Forward Gamma Correction filter.
330
305
*/
331
306
typedef struct {
332
- mfxExtBuffer
333
- Header ; /*!< Extension buffer header. Header.BufferId must be equal to MFX_EXTBUF_CAM_FORWARD_GAMMA_CORRECTION. */
307
+ mfxExtBuffer Header ; /*!< Extension buffer header. Header.BufferId must be equal to MFX_EXTBUF_CAM_FORWARD_GAMMA_CORRECTION. */
334
308
335
309
mfxU16 reserved [19 ]; /*!< Reserved for future extension.*/
336
- mfxU16 NumSegments ; /*!< Number of Gamma segments.*/
310
+ mfxU16 NumSegments ; /*!< Number of Gamma segments.*/
337
311
union {
338
312
mfxCamFwdGammaSegment * Segment ; /*!< Pointer to Gamma segments array.*/
339
- mfxU64 reserved1 ; /*!< Reserved for future extension.*/
313
+ mfxU64 reserved1 ; /*!< Reserved for future extension.*/
340
314
};
341
315
} mfxExtCamFwdGamma ;
342
316
MFX_PACK_END ()
@@ -363,7 +337,7 @@ MFX_PACK_END()
363
337
enum {
364
338
MFX_CAM_3DLUT17_SIZE = (17 * 17 * 17 ), /*!< 17^3 LUT size*/
365
339
MFX_CAM_3DLUT33_SIZE = (33 * 33 * 33 ), /*!< 33^3 LUT size*/
366
- MFX_CAM_3DLUT65_SIZE = (65 * 65 * 65 ) /*!< 65^3 LUT size*/
340
+ MFX_CAM_3DLUT65_SIZE = (65 * 65 * 65 ) /*!< 65^3 LUT size*/
367
341
};
368
342
369
343
MFX_PACK_BEGIN_USUAL_STRUCT ()
@@ -383,15 +357,12 @@ MFX_PACK_BEGIN_STRUCT_W_L_TYPE()
383
357
A hint structure that configures Camera 3DLUT filter.
384
358
*/
385
359
typedef struct {
386
- mfxExtBuffer
387
- Header ; /*!< Extension buffer header. Header.BufferId must be equal to MFX_EXTBUF_CAM_3DLUT. */
360
+ mfxExtBuffer Header ; /*!< Extension buffer header. Header.BufferId must be equal to MFX_EXTBUF_CAM_3DLUT. */
388
361
389
362
mfxU16 reserved [10 ]; /*!< Reserved for future extension.*/
390
- mfxU32
391
- Size ; /*!< LUT size, defined in MFX_CAM_3DLUT17/33/65_SIZE enumeration.*/
363
+ mfxU32 Size ; /*!< LUT size, defined in MFX_CAM_3DLUT17/33/65_SIZE enumeration.*/
392
364
union {
393
- mfxCam3DLutEntry *
394
- Table ; /*!< Pointer to mfxCam3DLutEntry, size of each dimension depends on LUT size, e.g. LUT[17][17][17] for 17x17x17 look up table.*/
365
+ mfxCam3DLutEntry * Table ; /*!< Pointer to mfxCam3DLutEntry, size of each dimension depends on LUT size, e.g. LUT[17][17][17] for 17x17x17 look up table.*/
395
366
mfxU64 reserved1 ; /*!< Reserved for future extension.*/
396
367
};
397
368
} mfxExtCam3DLut ;
0 commit comments