public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* Capturing video and still images using one driver
@ 2009-11-03  0:21 Neil Johnson
  2009-11-03 22:02 ` Guennadi Liakhovetski
  0 siblings, 1 reply; 10+ messages in thread
From: Neil Johnson @ 2009-11-03  0:21 UTC (permalink / raw)
  To: video4linux-list

video4linux-list,

I am developing on the OMAP3 system using a micron/aptina mt9p031
5-megapixel imager.  This CMOs imager supports full image capture at 5 fps
(2592x1944 pixels) or you can capture subregions using skipping and
binning.  We have proven both capabilities, but would like to be able to
capture both VGA sized video and still images without using separate
drivers.

So far, I have not found any support for capturing large images and video
through a single driver interface.  Does such a capability exist within
v4l2?  One possible way to solve the problem is to allocate N buffers of the
full 5-megapixel size (they end up being 10-MB for each buffer since I'm
using 16-bits per pixel), and then using a small portion of that for video.
These is less desirable since when I'm capturing video, I only need 640x480
size buffers, and I should only need one snapshot buffer at a time (I'm not
streaming them in, just take a snapshot and go back to live video capture).
Is there a way to allocate a side-buffer for the 5-megapixel image and also
allocate "normal" sized buffers for video within the same driver?  Any
recommendations on how to accomplish such a thing?  I would think that
camera-phones using linux would have run up against this.  Thanks,

Neil Johnson
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: Capturing video and still images using one driver
@ 2009-11-05 20:38 Guennadi Liakhovetski
  0 siblings, 0 replies; 10+ messages in thread
From: Guennadi Liakhovetski @ 2009-11-05 20:38 UTC (permalink / raw)
  To: Linux Media Mailing List

(forwarding to the new v4l list)

---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/

---------- Forwarded message ----------
Date: Thu, 5 Nov 2009 21:37:46 +0100 (CET)
From: Guennadi Liakhovetski <lyakh@axis700.grange>
To: Robert Jarzmik <robert.jarzmik@free.fr>
Cc: Neil Johnson <realdealneil@gmail.com>, video4linux-list@redhat.com
Subject: Re: Capturing video and still images using one driver

On Wed, 4 Nov 2009, Robert Jarzmik wrote:

> Guennadi Liakhovetski <g.liakhovetski@gmx.de> writes:
> 
> > I came across the same problem when working on the rj54n1cb0c driver. 
> > What's even more exciting with that sensor, is that it has separate 
> > frame-size settings for preview (video) and still capture.
> 
> It seems this behaviour is generic across several sensors. As far as I know, the
> mt9m111 has 2 modes : low power low resolution, and high power high resolution,
> and both are programmable apart (in terms of resolution, zoom, etc ...)
> 
> What this makes me think is that a sensor could provide several "contexts" of
> use, as :
>  - full resolution still image context
>  - low resolution still image context
>  - full resolution video context
>  - low resolution video context

Why fixed resolutions? Just make it possible to issue S_FMT for video or 
for still imaging... That would work seamlessly with several inputs 
(S_INPUT, S_FMT...).

> Then, a new/existing v4l2 call would switch the context (perhaps based on buffer
> type ?) of the sensor.

...on a second thought, it doesn't seem that smart to me any more to tie 
the streaming vs. still mode distinction to a specific buffer type...

> Well, that's just some junk I've been thinking over lately.

Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/

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

end of thread, other threads:[~2010-04-17 23:26 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-03  0:21 Capturing video and still images using one driver Neil Johnson
2009-11-03 22:02 ` Guennadi Liakhovetski
2009-11-03 22:13   ` Neil Johnson
2009-11-11 23:56     ` Neil Johnson
2009-11-12  7:21       ` Guennadi Liakhovetski
2010-04-17 23:26       ` Leon Woestenberg
2009-11-04 19:57   ` Robert Jarzmik
2009-11-05 20:37     ` Guennadi Liakhovetski
2009-11-06 17:11       ` Robert Jarzmik
  -- strict thread matches above, loose matches on Subject: below --
2009-11-05 20:38 Guennadi Liakhovetski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox