Laurent, > Would it make sense to split the calculation from v4l2_fill_pixfmt() to > a helper function that the UVC driver could call ? It would of course be possible, and would benefit v4l2-common.c as it would be common between v4l2_fill_pixfmt() and v4l2_fill_pixfmt_mp(), but as I noted before that approach would leave the bpp struct member, used elsewhere, possibly incorrect. I'm also not sure where multi-planar formats fit in (probably not related to the problem at hand). > > I'm going to send v3 in an hour unless there are other suggestions. Till tomorrow, then... Best regards, -- Sergey Zakharchenko Digital Loggers, Inc.