From d102ffd0432897a9545a346b0d161e47f012c8a9 Mon Sep 17 00:00:00 2001 From: johan Date: Tue, 15 Apr 2014 20:44:16 +0200 Subject: [PATCH] V4L2: Fix error with byte order of RGB32 Former-commit-id: ad354369b22d4e85b0b2fbf2d1c33611632d7014 --- deploy/hyperion.tar.gz.REMOVED.git-id | 2 +- libsrc/grabber/v4l2/V4L2Grabber.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/deploy/hyperion.tar.gz.REMOVED.git-id b/deploy/hyperion.tar.gz.REMOVED.git-id index 91855036..a3a391be 100644 --- a/deploy/hyperion.tar.gz.REMOVED.git-id +++ b/deploy/hyperion.tar.gz.REMOVED.git-id @@ -1 +1 @@ -62843d7b04fbbe0a2ae994531100d2f3f3d73b11 \ No newline at end of file +d61b685eca164580cb39eb5bc3cf65b89afad410 \ No newline at end of file diff --git a/libsrc/grabber/v4l2/V4L2Grabber.cpp b/libsrc/grabber/v4l2/V4L2Grabber.cpp index b3517dac..2df80524 100644 --- a/libsrc/grabber/v4l2/V4L2Grabber.cpp +++ b/libsrc/grabber/v4l2/V4L2Grabber.cpp @@ -737,9 +737,9 @@ void V4L2Grabber::process_image(const uint8_t * data) case PIXELFORMAT_RGB32: { int index = (_width * ySource + xSource) * 4; - rgb.red = data[index+1]; - rgb.green = data[index+2]; - rgb.blue = data[index+3]; + rgb.red = data[index ]; + rgb.green = data[index+1]; + rgb.blue = data[index+2]; } break; default: