From: Kostya Shishkov 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/?p=nihav.git;a=commitdiff_plain;h=c6297d1f0324638b5d9d818b57c53f626a4e5493 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 };