All of lore.kernel.org
 help / color / mirror / Atom feed
* Query regarding the support and testing of MJPEG frame type in the UVC webcam gadget
@ 2012-08-01  6:26 Bhupesh SHARMA
  2012-08-01 13:15 ` Laurent Pinchart
  0 siblings, 1 reply; 5+ messages in thread
From: Bhupesh SHARMA @ 2012-08-01  6:26 UTC (permalink / raw)
  To: Laurent Pinchart; +Cc: linux-usb@vger.kernel.org, linux-media@vger.kernel.org

Hi Laurent,

I have a query for you regarding the support and testing of MJPEG frame type in the UVC webcam gadget.

I see that in the webcam.c gadget, the 720p and VGA MJPEG uvc formats are supported. I was trying the same
out and got confused because the data arriving from a real video capture video supporting JPEG will have no
fixed size. We will have the JPEG defined Start-of-Frame and End-of-Frame markers defining the boundary
of the JPEG frame.

But for almost all JPEG video capture devices even if we have kept a frame size of VGA initially, the final
frame size will be a compressed version (with the compression depending on the nature of the scene, so a flat
scene will have high compression and hence less frame size) of VGA and will not be equal to 640 * 480.

So I couldn't exactly get why the dwMaxVideoFrameBufferSize is kept as 614400 in webcam.c (see [1]).

Can you please let me know your opinions and how you tested the UVC gadget's MJPEG frame format.

[1] http://lxr.linux.no/linux+v3.5/drivers/usb/gadget/webcam.c#L232

Thanks,
Bhupesh

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-08-03 16:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-01  6:26 Query regarding the support and testing of MJPEG frame type in the UVC webcam gadget Bhupesh SHARMA
2012-08-01 13:15 ` Laurent Pinchart
2012-08-01 13:29   ` Bhupesh SHARMA
2012-08-03  8:15     ` Laurent Pinchart
2012-08-03 16:25       ` Bhupesh SHARMA

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.