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:
1 parent
b547d2bda4
commit
ef8a8b6038
5 files changed
+304
-308
No files matched your search
@@ -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
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user