From 50467a8f0d4f42c19c2d039b41bba2f71eb31d7a Mon Sep 17 00:00:00 2001 From: Joao Carreira Date: Mon, 15 Dec 2014 01:26:30 +0000 Subject: [PATCH] Add rgb24 format --- lib/PlaYUVerFramePixelFormats.cpp | 4 ++-- lib/PlaYUVerFramePixelFormats.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/PlaYUVerFramePixelFormats.cpp b/lib/PlaYUVerFramePixelFormats.cpp index 7079789..6af1a00 100644 --- a/lib/PlaYUVerFramePixelFormats.cpp +++ b/lib/PlaYUVerFramePixelFormats.cpp @@ -299,7 +299,7 @@ Void bufferFromFrameRGB24( Pel ***in, Pel* out, UInt width, UInt height ) bufferFromFrameRGB( in, out, width * height, in[COLOR_R][0], in[COLOR_G][0], in[COLOR_B][0] ); } -PlaYUVerFramePelFormat rgb24 = +PlaYUVerFramePelFormat RGB24 = { "RGB24", PlaYUVerFrame::COLOR_RGB, @@ -340,7 +340,7 @@ PlaYUVerFramePelFormat g_PlaYUVerFramePelFormatsList[PLAYUVER_NUMBER_FORMATS] = yuv422p, yuyv422, gray, - /*rgb24,*/ + RGB24, BGR24, }; diff --git a/lib/PlaYUVerFramePixelFormats.h b/lib/PlaYUVerFramePixelFormats.h index 5e8dfe0..27951fa 100644 --- a/lib/PlaYUVerFramePixelFormats.h +++ b/lib/PlaYUVerFramePixelFormats.h @@ -102,7 +102,7 @@ struct structPlaYUVerFramePelFormat typedef struct structPlaYUVerFramePelFormat PlaYUVerFramePelFormat; -#define PLAYUVER_NUMBER_FORMATS 6 +#define PLAYUVER_NUMBER_FORMATS 7 extern PlaYUVerFramePelFormat g_PlaYUVerFramePelFormatsList[PLAYUVER_NUMBER_FORMATS]; } // NAMESPACE