From: Kostya Shishkov <kostya.shishkov@gmail.com>
Date: Thu, 14 Feb 2019 15:13:35 +0000 (+0100)
Subject: formats: change RGB24 formaton from BGR to RGB
X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=c6297d1f0324638b5d9d818b57c53f626a4e5493;p=nihav.git

formats: change RGB24 formaton from BGR to RGB
---

diff --git a/nihav-core/src/formats.rs b/nihav-core/src/formats.rs
index 20404bd..69293c6 100644
--- a/nihav-core/src/formats.rs
+++ b/nihav-core/src/formats.rs
@@ -420,9 +420,9 @@ pub const RGB565_FORMAT: NAPixelFormaton = NAPixelFormaton { model: ColorModel::
 
 pub const RGB24_FORMAT: NAPixelFormaton = NAPixelFormaton { model: ColorModel::RGB(RGBSubmodel::RGB), components: 3,
                                         comp_info: [
-                                            chromaton!(packrgb; 8, 0, 2, 3),
-                                            chromaton!(packrgb; 8, 0, 1, 3),
                                             chromaton!(packrgb; 8, 0, 0, 3),
+                                            chromaton!(packrgb; 8, 0, 1, 3),
+                                            chromaton!(packrgb; 8, 0, 2, 3),
                                             None, None],
                                         elem_size: 3, be: false, alpha: false, palette: false };