Skip to content
This repository was archived by the owner on May 6, 2021. It is now read-only.

Commit ad35436

Browse files
committed
V4L2: Fix error with byte order of RGB32
1 parent ab98c7b commit ad35436

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

deploy/hyperion.tar.gz

-3 Bytes
Binary file not shown.

libsrc/grabber/v4l2/V4L2Grabber.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -737,9 +737,9 @@ void V4L2Grabber::process_image(const uint8_t * data)
737737
case PIXELFORMAT_RGB32:
738738
{
739739
int index = (_width * ySource + xSource) * 4;
740-
rgb.red = data[index+1];
741-
rgb.green = data[index+2];
742-
rgb.blue = data[index+3];
740+
rgb.red = data[index ];
741+
rgb.green = data[index+1];
742+
rgb.blue = data[index+2];
743743
}
744744
break;
745745
default:

0 commit comments

Comments
 (0)