Re: [PATCH v5 4/4] media-ctl: List supported media bus formats

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

 



Hi Laurent,

On Thu, Feb 25, 2016 at 11:38:02PM +0200, Laurent Pinchart wrote:
...
> > +static void list_known_mbus_formats(void)
> > +{
> > +	unsigned int ncodes;
> > +	const unsigned int *code = v4l2_subdev_pixelcode_list(&ncodes);
> > +
> > +	while (ncodes--) {
> > +		const char *str = v4l2_subdev_pixelcode_to_string(*code);
> > +		int spaces = 30 - (int)strlen(str);
> > +
> > +		if (*code == 0)
> > +			break;
> > +
> > +		if (spaces < 0)
> > +			spaces = 0;
> > +
> > +		printf("%s %*c 0x%8.8x\n", str, spaces, ' ', *code);
> > +
> > +		code++;
> > +	}
> > +}

I remember I intended to change s/8\.8/4.4/ but I forgot to do that to this
version. I'll resubmit.

-- 
Sakari Ailus
e-mail: sakari.ailus@xxxxxx	XMPP: 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