driver/camera: support UYVY camera

This commit is contained in:
Atsushi Watanabe
2020-03-30 15:07:14 +09:00
committed by Lukas Herman
parent fa1fd13422
commit a3dae07854
8 changed files with 123 additions and 0 deletions
+1
View File
@@ -58,6 +58,7 @@ func init() {
func newCamera(path string) *camera {
formats := map[webcam.PixelFormat]frame.Format{
webcam.PixelFormat(C.V4L2_PIX_FMT_YUYV): frame.FormatYUYV,
webcam.PixelFormat(C.V4L2_PIX_FMT_UYVY): frame.FormatUYVY,
webcam.PixelFormat(C.V4L2_PIX_FMT_NV12): frame.FormatNV21,
webcam.PixelFormat(C.V4L2_PIX_FMT_MJPEG): frame.FormatMJPEG,
}