Re: [Q] media: V4L2 compressed frames and s_fmt.

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

 



Hi Javier,

(Cc Kamil.)

On Wed, Mar 14, 2012 at 12:22:43PM +0100, javier Martin wrote:
> Hi,
> I'm developing a V4L2 mem2mem driver for the codadx6 IP video codec
> which is included in the i.MX27 chip.
> 
> The capture interface of this driver can therefore return h.264 or
> mpeg4 video frames.
> 
> Provided that the size of each frame varies and is unknown to the
> user, how is the driver supposed to react to a S_FMT when it comes to
> parameters such as the following?
> 
> pix->width
> pix->height
> pix->bytesperline
> pix->sizeimage
> 
> According to the documentation [1] I understand that the driver can
> just ignore 'bytesperline' and should return in 'sizeimage' the
> maximum buffer size to store a compressed frame. However, it does not
> mention anything special about width and height. Does it make sense
> setting width and height for h.264/mpeg4 formats?

It does. This has been recently discussed, and there were a few ideas how to
do this. But no final conclusion AFAIR.

<URL:http://www.spinics.net/lists/linux-media/msg40905.html>

Kamil: do you have plans to update the RFC?

Kind regards,

-- 
Sakari Ailus
e-mail: sakari.ailus@xxxxxx	jabber/XMPP/Gmail: sailus@xxxxxxxxxxxxxx
--
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