Create new class PlaYUVerFrame to handle video frames
This commit is contained in:
1 parent
831ea939a5
commit
87cd3fe5e5
4 files changed
+299
-182
No files matched your search
+5
-11
@@ -38,6 +38,7 @@
|
||||
|
||||
#include "TypeDef.h"
|
||||
#include "LibAvContextHandle.h"
|
||||
#include "PlaYUVerFrame.h"
|
||||
|
||||
namespace plaYUVer
|
||||
{
|
||||
@@ -47,7 +48,6 @@ enum InputStream_Errors
|
||||
NO_ERROR = 0, READING = 1,
|
||||
};
|
||||
|
||||
|
||||
class InputStream
|
||||
{
|
||||
private:
|
||||
@@ -64,14 +64,15 @@ private:
|
||||
Int m_iFileFormat;
|
||||
Int m_iPixelFormat;
|
||||
|
||||
Pel* m_pInputBuffer;
|
||||
|
||||
PlaYUVerFrame *m_cCurrFrame;
|
||||
|
||||
UInt m_uiWidth;
|
||||
UInt m_uiHeight;
|
||||
UInt m_uiTotalFrameNum;
|
||||
UInt m_uiCurrFrameNum;
|
||||
|
||||
Pel** m_pppcInputPel[3];
|
||||
Pel*** m_pppcRGBPel;
|
||||
|
||||
public:
|
||||
InputStream();
|
||||
~InputStream();
|
||||
@@ -83,11 +84,6 @@ public:
|
||||
|
||||
static QStringList supportedPixelFormatList();
|
||||
|
||||
enum InputStreamColorSpace
|
||||
{
|
||||
YUV420, YUV400,
|
||||
};
|
||||
|
||||
enum InputStreamFormats
|
||||
{
|
||||
INVALID = -1, YUVFormat = 0, // Use color space.
|
||||
@@ -97,8 +93,6 @@ public:
|
||||
|
||||
Void init( QString filename, UInt width, UInt height, Int input_format );
|
||||
|
||||
Void YUV420toRGB();
|
||||
|
||||
Void readFrame();
|
||||
|
||||
Bool writeFrame( const QString& filename );
|
||||
|
||||
Reference in new issue
Block a user