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:
jfmcarreira committed 2018-02-03 02:12:39 +00:00
1 parent 0b1e4574e6
commit 5b91c91b90
6 files changed
+170 -100

No files matched your search

+6
View File
@@ -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__