]> git.nihav.org Git - nihav.git/commitdiff
formats: change RGB24 formaton from BGR to RGB
authorKostya Shishkov <kostya.shishkov@gmail.com>
Thu, 14 Feb 2019 15:13:35 +0000 (16:13 +0100)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Mon, 29 Apr 2019 12:36:21 +0000 (14:36 +0200)
nihav-core/src/formats.rs

index 20404bdfc7391855109e1658c2e9cc746e0a3e58..69293c68958e6b13a5f2701249a8f8b6984f4310 100644 (file)
@@ -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 };