public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* libv4l2 misbehavior after calling S_STD or S_DV_PRESET
@ 2011-10-06 11:13 Hans Verkuil
  2011-10-07  7:57 ` Hans de Goede
  0 siblings, 1 reply; 4+ messages in thread
From: Hans Verkuil @ 2011-10-06 11:13 UTC (permalink / raw)
  To: Hans de Goede; +Cc: linux-media

Hi Hans!

I've been looking into a problem with libv4l2 that occurs when you change TV 
standard or video preset using VIDIOC_S_STD or VIDIOC_S_DV_PRESET. These calls 
will change the format implicitly (e.g. if the current format is set for PAL 
at 720x576 and you select NTSC, then the format will be reset to 720x480).

However, libv4l2 isn't taking this into account and will keep using the cached 
dest_fmt value. It is easy to reproduce this using qv4l2.

The same problem is likely to occur with S_CROP (haven't tested that yet, 
though): calling S_CROP can also change the format.

To be precise: S_STD and S_DV_PRESET can change both the crop rectangle and 
the format, and S_CROP can change the format.

I've been trying to find a quick solution for this in libv4l2.c but without any 
luck.

Can you look at this? Or do you have ideas how this should be done?

Regards,

	Hans

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

end of thread, other threads:[~2011-10-07 11:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-06 11:13 libv4l2 misbehavior after calling S_STD or S_DV_PRESET Hans Verkuil
2011-10-07  7:57 ` Hans de Goede
2011-10-07  9:06   ` Hans Verkuil
2011-10-07 12:00     ` Hans de Goede

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