Re: Pixel Formats

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Christian

On Wed, 6 Mar 2013, Christian Rhodin wrote:

> Hi,
> 
> I'm looking for some guidance on the correct way to handle a new pixel
> format.  What I'm dealing with is a CMOS image sensor that supports
> dynamic switching between linear and iHDR modes.  iHDR stands for
> "interlaced High Dynamic Range" and is a mode where odd and even lines
> have different exposure times, typically with an 8:1 ratio.  When I
> started implementing a driver for this sensor I used
> "V4L2_MBUS_FMT_SGRBG10_1X10" as the format for the linear mode and
> defined a new format "V4L2_MBUS_FMT_SGRBG10_IHDR_1X10" for the iHDR
> mode.  I used the format to control which mode I put the sensor in.  But
> now I'm having trouble switching modes without reinitializing the
> sensor.  Does anyone (everyone?) have an opinion about the correct way
> to implement this?  I'm thinking that the format is overloaded because
> it represents both the size and type of the data.  Should I use a single
> format and add a control to switch the mode?

I would vote for a single format with a control, maybe even somehow 
cluster it with the normal exposure, but I'm not an expert in that, not 
sure if it would make sense.

Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux