mac-virtualcam: Avoid conversion of P010

master
gxalpha 2022-08-11 14:23:41 +02:00 committed by Jim
parent 535d4141cb
commit d9c4c0f5da
1 changed files with 2 additions and 0 deletions

View File

@ -116,6 +116,8 @@ FourCharCode convert_video_format_to_mac(enum video_format format)
return kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange;
case VIDEO_FORMAT_UYVY:
return kCVPixelFormatType_422YpCbCr8;
case VIDEO_FORMAT_P010:
return kCVPixelFormatType_420YpCbCr10BiPlanarVideoRange;
default:
// Zero indicates that the format is not supported on macOS
// Note that some formats do have an associated constant, but