Prefer YUV/YUY detail

This commit is contained in:
Eduardo Ramos 2023-07-05 17:51:05 +02:00
parent 055cdd61ca
commit d2279aa02a
1 changed files with 1 additions and 1 deletions

View File

@ -204,7 +204,7 @@ public class CaptureManagerVideoDevice implements WebcamDeviceExtended {
bestMediaType = mediaType;
} else if (pixels == maxPixels && mediaType.getSubType().contains("NV12")) {//Prefer NV12
bestMediaType = mediaType;
} else if (pixels == maxPixels && mediaType.getSubType().contains("YUV")) {//Prefer YUV if no NV12
} else if (pixels == maxPixels && (mediaType.getSubType().contains("YUV") || mediaType.getSubType().contains("YUY"))) {//Prefer YUV/YUY if no NV12
bestMediaType = mediaType;
}
}