Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 199945
b: refs/heads/master
c: 3a21cee
h: refs/heads/master
i:
  199943: 6ec107d
v: v3
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Jun 1, 2010
1 parent 2fc77f4 commit 65675f7
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 66e9df07d362b63a594e8663260e0430ba4a17bf
refs/heads/master: 3a21ceed7f373894a7c537b4dbbe484f36e7ae24
20 changes: 20 additions & 0 deletions trunk/include/media/v4l2-mediabus.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,24 @@ struct v4l2_mbus_framefmt {
enum v4l2_colorspace colorspace;
};

static inline void v4l2_fill_pix_format(struct v4l2_pix_format *pix_fmt,
const struct v4l2_mbus_framefmt *mbus_fmt)
{
pix_fmt->width = mbus_fmt->width;
pix_fmt->height = mbus_fmt->height;
pix_fmt->field = mbus_fmt->field;
pix_fmt->colorspace = mbus_fmt->colorspace;
}

static inline void v4l2_fill_mbus_format(struct v4l2_mbus_framefmt *mbus_fmt,
const struct v4l2_pix_format *pix_fmt,
enum v4l2_mbus_pixelcode code)
{
mbus_fmt->width = pix_fmt->width;
mbus_fmt->height = pix_fmt->height;
mbus_fmt->field = pix_fmt->field;
mbus_fmt->colorspace = pix_fmt->colorspace;
mbus_fmt->code = code;
}

#endif

0 comments on commit 65675f7

Please sign in to comment.