Refactor and add new support in LibAvHandler
Refactor list of pixel formats Add support for custom pixel formats by converting it to YUV444p
This commit is contained in:
6 files changed
+170
-100
No files matched your search
@@ -42,6 +42,7 @@ extern "C" {
|
||||
#include <libavutil/avutil.h>
|
||||
#include <libavutil/imgutils.h>
|
||||
#include <libavutil/samplefmt.h>
|
||||
#include <libswscale/swscale.h>
|
||||
}
|
||||
|
||||
#include "PlaYUVerDefs.h"
|
||||
@@ -78,6 +79,8 @@ private:
|
||||
AVStream* m_cStream;
|
||||
Int m_iStreamIdx;
|
||||
|
||||
struct SwsContext* m_ScalerCtx;
|
||||
|
||||
AVCodecContext* m_cCodedCtx;
|
||||
|
||||
Int m_ffPixFmt;
|
||||
@@ -89,6 +92,9 @@ private:
|
||||
|
||||
UInt64 m_uiSecs;
|
||||
UInt64 m_uiMicroSec;
|
||||
|
||||
Bool m_bRequiresConvertion;
|
||||
AVFrame* m_cConvertedFrame;
|
||||
};
|
||||
|
||||
#endif // __STREAMHANDLERLIBAV_H__
|
||||
Reference in new issue
Block a user