|
VPI - Vision Programming Interface
0.4.4 Release
|
Go to the documentation of this file.
56 #ifndef NV_VPI_FORMAT_H
57 #define NV_VPI_FORMAT_H
60 #include "detail/FormatUtils.h"
145 VPI_DETAIL_FORMAT_SET_BPP_CHCOUNT(8, 3),
158 VPI_DETAIL_FORMAT_SET_BPP_CHCOUNT(16, 3),
162 VPI_DETAIL_FORMAT_SET_BPP_CHCOUNT(16, 4),
170 VPI_DETAIL_FORMAT_SET_BPP_CHCOUNT(24, 3),
174 VPI_DETAIL_FORMAT_SET_BPP_CHCOUNT(32, 2),
178 VPI_DETAIL_FORMAT_SET_BPP_CHCOUNT(32, 3),
181 VPI_DETAIL_FORMAT_SET_BPP_CHCOUNT(32, 4),
190 VPI_DETAIL_FORMAT_SET_BPP_CHCOUNT(48, 3),
194 VPI_DETAIL_FORMAT_SET_BPP_CHCOUNT(64, 2),
196 VPI_DETAIL_FORMAT_SET_BPP_CHCOUNT(64, 4),
201 VPI_DETAIL_FORMAT_SET_BPP_CHCOUNT(96, 3),
205 VPI_DETAIL_FORMAT_SET_BPP_CHCOUNT(128, 4),
278 VPI_DETAIL_DEF_SWIZZLE_ENUM(0, 0, 0, 0),
279 VPI_DETAIL_DEF_SWIZZLE_ENUM(1, 0, 0, 0),
280 VPI_DETAIL_DEF_SWIZZLE_ENUM(0, 0, 0, 1),
281 VPI_DETAIL_DEF_SWIZZLE_ENUM(X, Y, Z, W),
282 VPI_DETAIL_DEF_SWIZZLE_ENUM(Z, Y, X, W),
283 VPI_DETAIL_DEF_SWIZZLE_ENUM(W, X, Y, Z),
284 VPI_DETAIL_DEF_SWIZZLE_ENUM(W, Z, Y, X),
285 VPI_DETAIL_DEF_SWIZZLE_ENUM(Y, Z, W, X),
286 VPI_DETAIL_DEF_SWIZZLE_ENUM(X, Y, Z, 1),
287 VPI_DETAIL_DEF_SWIZZLE_ENUM(X, Y, Z, 0),
288 VPI_DETAIL_DEF_SWIZZLE_ENUM(Y, Z, W, 1),
289 VPI_DETAIL_DEF_SWIZZLE_ENUM(X, X, X, 1),
290 VPI_DETAIL_DEF_SWIZZLE_ENUM(X, Z, Y, 1),
291 VPI_DETAIL_DEF_SWIZZLE_ENUM(Z, Y, X, 1),
292 VPI_DETAIL_DEF_SWIZZLE_ENUM(Z, Y, X, 0),
293 VPI_DETAIL_DEF_SWIZZLE_ENUM(W, Z, Y, 1),
294 VPI_DETAIL_DEF_SWIZZLE_ENUM(X, 0, 0, 0),
295 VPI_DETAIL_DEF_SWIZZLE_ENUM(0, X, 0, 0),
296 VPI_DETAIL_DEF_SWIZZLE_ENUM(0, 0, X, 0),
297 VPI_DETAIL_DEF_SWIZZLE_ENUM(0, 0, 0, X),
298 VPI_DETAIL_DEF_SWIZZLE_ENUM(Y, 0, 0, 0),
299 VPI_DETAIL_DEF_SWIZZLE_ENUM(0, Y, 0, 0),
300 VPI_DETAIL_DEF_SWIZZLE_ENUM(0, 0, Y, 0),
301 VPI_DETAIL_DEF_SWIZZLE_ENUM(0, 0, 0, Y),
302 VPI_DETAIL_DEF_SWIZZLE_ENUM(0, X, Y, 0),
303 VPI_DETAIL_DEF_SWIZZLE_ENUM(X, X, X, Y),
304 VPI_DETAIL_DEF_SWIZZLE_ENUM(Y, Y, Y, X),
305 VPI_DETAIL_DEF_SWIZZLE_ENUM(0, Y, X, 0),
306 VPI_DETAIL_DEF_SWIZZLE_ENUM(X, 0, 0, Y),
307 VPI_DETAIL_DEF_SWIZZLE_ENUM(Y, 0, 0, X),
308 VPI_DETAIL_DEF_SWIZZLE_ENUM(X, 0, 0, 1),
309 VPI_DETAIL_DEF_SWIZZLE_ENUM(X, Y, 0, 1),
310 VPI_DETAIL_DEF_SWIZZLE_ENUM(X, Y, 0, 0),
311 VPI_DETAIL_DEF_SWIZZLE_ENUM(0, X, Z, 0),
312 VPI_DETAIL_DEF_SWIZZLE_ENUM(0, Z, X, 0),
313 VPI_DETAIL_DEF_SWIZZLE_ENUM(X, Z, Y, 0),
314 VPI_DETAIL_DEF_SWIZZLE_ENUM(Y, Z, X, 1),
315 VPI_DETAIL_DEF_SWIZZLE_ENUM(Z, Y, W, 1)
334 #define VPI_MAKE_SWIZZLE(x, y, z, w) ((VPISwizzle)VPI_DETAIL_MAKE_SWIZZLE(x, y, z, w))
358 VPI_DETAIL_FORMAT_SET_COLOR_MODEL(OTHER),
386 VPI_DETAIL_FORMAT_SET_COLOR_MODEL(YUV),
484 #define vpiMakeSwizzle VPI_APINAME(vpiMakeSwizzle, 004)
485 #define vpiMakeChromaSubsampling VPI_APINAME(vpiMakeChromaSubsampling, 004)
486 #define vpiMakeFormatPacking VPI_APINAME(vpiMakeFormatPacking, 004)
487 #define vpiFormatPackingGetParams VPI_APINAME(vpiFormatPackingGetParams, 004)
488 #define vpiFormatPackingGetChannelCount VPI_APINAME(vpiFormatPackingGetChannelCount, 004)
489 #define vpiFormatPackingGetBitsPerPixel VPI_APINAME(vpiFormatPackingGetBitsPerPixel, 004)
515 int centerSampleVert);
564 #endif // NV_VPI_FORMAT_H