Improve the usage of different structs for each pixel format. Change how PlaYUVerFrame return the pixel value (make it less dependent of Qt)

This commit is contained in:
jfmcarreira committed 2014-10-13 00:56:21 +01:00
1 parent b547d2bda4
commit ef8a8b6038
5 files changed
+304 -308

No files matched your search

+10 -2
View File
@@ -47,11 +47,19 @@ typedef struct
{
const Char* name;
Int colorSpace;
UInt numberChannels;
Int ratioChromaWidth;
Int ratioChromaHeight;
Void (*init)( UInt Width, UInt Height );
Pixel (*getPixelValue) ( Pel ***Img, Int xPos, Int yPos );
Void (*frameFromBuffer)( Pel *in, Pel*** out );
Void (*bufferFromFrame)( Pel ***in, Pel* out );
Void (*fillRGBbuffer)( Pel*** in, UChar* out );
} PlaYUVerFramePelFormat;
#define PLAYUVER_NUMBER_FORMATS 6
extern PlaYUVerFramePelFormat g_PlaYUVerFramePelFormatsList[PLAYUVER_NUMBER_FORMATS];
class PlaYUVerFrame
{
public:
@@ -129,7 +137,7 @@ public:
return m_pppcInputPel;
}
Pixel getPixelValue( const QPoint&, Int );
Pixel getPixelValue( Int xPos, Int yPos, Int eColorSpace );
UChar* getQImageBuffer() const
{