mirror of
https://github.com/pion/mediadevices.git
synced 2026-04-23 00:07:29 +08:00
driver/camera: support UYVY camera
This commit is contained in:
committed by
Lukas Herman
parent
fa1fd13422
commit
a3dae07854
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user