Further development to support different formats. Currently only YUV420

is supported
This commit is contained in:
jfmcarreira committed 2014-01-30 01:17:56 +00:00
1 parent f82a625790
commit eff1e41cea
4 files changed
+85 -55

No files matched your search

+15 -8
View File
@@ -35,11 +35,6 @@
namespace plaYUVer
{
typedef enum YUV_FILE_FORMATS
{
INVALID = 0, YUV_420p = 1,
} YUVFileFormats;
enum InputStream_Errors
{
NO_ERROR = 0, READING = 1,
@@ -54,8 +49,8 @@ private:
QString m_cFilename;
FILE* m_pFile; /**< The input file pointer >*/
YUVFileFormats m_eFormat;
Int m_iFileFormat;
Int m_iPixelFormat;
UInt m_uiWidth;
UInt m_uiHeight;
@@ -73,7 +68,19 @@ public:
static QStringList supportedReadFormatsList();
static QStringList supportedPixelFormatList();
Void init( QString filename, UInt width, UInt height );
enum InputStreamColorSpace
{
YUV420,
YUV400,
};
enum InputStreamFormats
{
INVALID = -1,
YUVFormat = 0, // Use color space.
};
Void init( QString filename, UInt width, UInt height, Int input_format );
Void YUV420toRGB();