|
您好,想输入H.264编码后的视频,在初始化的时候AnyChatCoreSDK.SetInputVideoFormat(AnyChatCoreSDK.PixelFormat.BRAC_PIX_FMT_H264,320,240,25,0)其中并没有AnyChatCoreSDK.PixelFormat.BRAC_PIX_FMT_H264这个类型,需要- public enum 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
- }
复制代码 这里面加上这个类型吗?
|
|