File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,7 @@ static NativeMethods_V4L2()
91
91
pixelFormats . Add ( Interop . V4L2_PIX_FMT_UYVY , PixelFormats . UYVY ) ;
92
92
pixelFormats . Add ( Interop . V4L2_PIX_FMT_YUYV , PixelFormats . YUYV ) ;
93
93
pixelFormats . Add ( Interop . V4L2_PIX_FMT_YUY2 , PixelFormats . YUYV ) ;
94
+ pixelFormats . Add ( Interop . V4L2_PIX_FMT_NV12 , PixelFormats . NV12 ) ;
94
95
}
95
96
96
97
public static bool IsKnownPixelFormat ( uint pix_fmt ) =>
@@ -324,6 +325,8 @@ public static uint[] GetPixelFormats(
324
325
return new [ ] { Interop . V4L2_PIX_FMT_UYVY } ;
325
326
case PixelFormats . YUYV :
326
327
return new [ ] { Interop . V4L2_PIX_FMT_YUYV , Interop . V4L2_PIX_FMT_YUY2 } ;
328
+ case PixelFormats . NV12 :
329
+ return new [ ] { Interop . V4L2_PIX_FMT_NV12 } ;
327
330
case PixelFormats . JPEG :
328
331
return new [ ] { Interop . V4L2_PIX_FMT_MJPEG , Interop . V4L2_PIX_FMT_JPEG , ( uint ) NativeMethods . Compression . BI_JPEG } ;
329
332
case PixelFormats . PNG :
You can’t perform that action at this time.
0 commit comments