summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a2f483e)
raw | patch | inline | side by side (parent: a2f483e)
author | Nikhil Devshatwar <nikhil.nd@ti.com> | |
Mon, 3 Aug 2015 04:52:45 +0000 (10:22 +0530) | ||
committer | Nikhil Devshatwar <nikhil.nd@ti.com> | |
Mon, 3 Aug 2015 04:52:49 +0000 (10:22 +0530) |
Without passing correct colorspace, the RGB formats will not work.
This would lead to image corruption when displaying in the RGB format.
The colorspace is derived from the fourcc, but not passed to the s_fmt ioctl.
Correct this.
Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
This would lead to image corruption when displaying in the RGB format.
The colorspace is derived from the fourcc, but not passed to the s_fmt ioctl.
Correct this.
Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
util/vpe-common.c | patch | blob | history |
diff --git a/util/vpe-common.c b/util/vpe-common.c
index 576addf194bf579ad5815efb47b7adea5db32db3..048de7c2944e5b22d1bb4cc11838f339074baf24 100755 (executable)
--- a/util/vpe-common.c
+++ b/util/vpe-common.c
fmt.fmt.pix_mp.width = vpe->src.width;
fmt.fmt.pix_mp.height = vpe->src.height;
fmt.fmt.pix_mp.pixelformat = vpe->src.fourcc;
+ fmt.fmt.pix_mp.colorspace = vpe->src.clrspc;
switch (vpe->deint) {
case 1:
fmt.fmt.pix_mp.height = vpe->dst.height;
fmt.fmt.pix_mp.pixelformat = vpe->dst.fourcc;
fmt.fmt.pix_mp.field = V4L2_FIELD_ANY;
+ fmt.fmt.pix_mp.colorspace = vpe->dst.clrspc;
ret = ioctl(vpe->fd, VIDIOC_S_FMT, &fmt);
if (ret < 0)