|
本帖最后由 佰锐科技-李永星 于 2015-12-23 11:46 编辑
是的,你加到枚举里,参考C++头文件中定义:- // 视频图像格式定义
- enum BRAC_PixelFormat{
- BRAC_PIX_FMT_RGB24 = 0, ///< Packed RGB 8:8:8, 24bpp, RGBRGB...(MEDIASUBTYPE_RGB24)
- BRAC_PIX_FMT_RGB32, ///< 对应于:MEDIASUBTYPE_RGB32,Packed RGB 8:8:8, 32bpp, (msb)8A 8R 8G 8B(lsb), in cpu endianness
- BRAC_PIX_FMT_YV12, ///< 对应于:MEDIASUBTYPE_YV12,Planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
- BRAC_PIX_FMT_YUY2, ///< 对应于:MEDIASUBTYPE_YUY2,Packed YUV 4:2:2, 16bpp, Y0 Cb Y1 Cr
- BRAC_PIX_FMT_YUV420P, ///< Planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
- BRAC_PIX_FMT_RGB565, ///< 对应于:MEDIASUBTYPE_RGB565
- BRAC_PIX_FMT_RGB555, ///< 对应于:MEDIASUBTYPE_RGB555
- BRAC_PIX_FMT_NV12, ///< Planar YUV 4:2:0, 12bpp, Two arrays, one is all Y, the other is U and V
- BRAC_PIX_FMT_NV21, ///< Planar YUV 4:2:0, 12bpp, Two arrays, one is all Y, the other is V and U
- BRAC_PIX_FMT_NV16, ///< YUV422SP
-
- BRAC_PIX_FMT_MJPEG = 200,
- BRAC_PIX_FMT_H264,
- };
复制代码 |
|