You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In UVCPreview.cpp function
void UVCPreview::uvc_preview_frame_callback(uvc_frame_t *frame, void *vptr_args)
you do the check
if (UNLIKELY(
((frame->frame_format != UVC_FRAME_FORMAT_MJPEG) && (frame->actual_bytes < preview->frameBytes))
|| (frame->width != preview->frameWidth) || (frame->height != preview->frameHeight) ))
The problem that in case of "frame_format" equal UVC_FRAME_FORMAT_I420 the "actual_bytes" is not equal "frameBytes" but it is not MJPEG format so the function returns without continue getting or adding any frames below
The text was updated successfully, but these errors were encountered:
In UVCPreview.cpp function
void UVCPreview::uvc_preview_frame_callback(uvc_frame_t *frame, void *vptr_args)
you do the check
if (UNLIKELY(
((frame->frame_format != UVC_FRAME_FORMAT_MJPEG) && (frame->actual_bytes < preview->frameBytes))
|| (frame->width != preview->frameWidth) || (frame->height != preview->frameHeight) ))
The problem that in case of "frame_format" equal UVC_FRAME_FORMAT_I420 the "actual_bytes" is not equal "frameBytes" but it is not MJPEG format so the function returns without continue getting or adding any frames below
The text was updated successfully, but these errors were encountered: