public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* libv4l2 library problem
@ 2009-02-13 12:57 Hans Verkuil
  2009-02-14  8:52 ` Mauro Carvalho Chehab
  2009-02-14 23:22 ` Hans Verkuil
  0 siblings, 2 replies; 12+ messages in thread
From: Hans Verkuil @ 2009-02-13 12:57 UTC (permalink / raw)
  To: linux-media; +Cc: Hans de Goede

Hi Hans,

I've developed a converter for the HM12 format (produced by Conexant MPEG 
encoders as used in the ivtv and cx18 drivers).

But libv4l2 has a problem in its implementation of v4l2_read: it assumes 
that the driver can always do streaming. However, that is not the case for 
some drivers, including cx18 and ivtv. These drivers only implement read() 
functionality and no streaming.

Can you as a minimum modify libv4l2 so that it will check for this case? The 
best solution would be that libv4l2 can read HM12 from the driver and 
convert it on the fly. But currently it tries to convert HM12 by starting 
to stream, and that produces an error.

This bug needs to be fixed first before I can contribute my HM12 converter.

A second question is if it is possible to let the code conform to 
checkpatch? A tabsize of 2 is rather hard to read IMHO. And it avoids the 
checkpatch errors as well when you do a make commit. I'm willing to do a 
pass over the code to clean it up if you want.

Regards,

	Hans

-- 
Hans Verkuil - video4linux developer - sponsored by TANDBERG

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

end of thread, other threads:[~2009-02-15  8:59 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-13 12:57 libv4l2 library problem Hans Verkuil
2009-02-14  8:52 ` Mauro Carvalho Chehab
2009-02-14  9:08   ` Hans Verkuil
2009-02-14 10:32     ` Mauro Carvalho Chehab
2009-02-14 11:06       ` Hans Verkuil
2009-02-14 14:05         ` Andy Walls
2009-02-14 14:11           ` Hans Verkuil
2009-02-14 18:58             ` Mauro Carvalho Chehab
2009-02-14 19:57               ` Hans Verkuil
2009-02-14 20:26             ` Andy Walls
2009-02-14 23:22 ` Hans Verkuil
2009-02-15  9:03   ` 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