Re: [RFC PATCH] Docbook/media: improve data_offset/bytesused documentation

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

 



Le lundi 21 juillet 2014 à 15:16 +0200, Hans Verkuil a écrit :
> +             Note that data_offset is included in <structfield>bytesused</structfield>.
> +             So the size of the image in the plane is
> +             <structfield>bytesused</structfield>-<structfield>data_offset</structfield> at
> +             offset <structfield>data_offset</structfield> from the start of the plane.

This seem like messing applications a lot. Let's say you have a well
known format, NV12, but your driver add some customer header at the
beginning. Pretty much all the application in the world would work just
fine ignoring that header, but in fact most of them will not work,
because bytesused is including the header. Considering this wasn't
documented before, I would strongly suggest to keep the bytesused as
being the size for the format know by everyone.


--
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