From c6297d1f0324638b5d9d818b57c53f626a4e5493 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Thu, 14 Feb 2019 16:13:35 +0100 Subject: [PATCH] formats: change RGB24 formaton from BGR to RGB --- nihav-core/src/formats.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }; -- 2.30.2