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

+3 -1
View File
@@ -29,6 +29,8 @@
#include "PlaYUVerFrame.h"
#include "PlaYUVerPixel.h"
#include <map>
#define CHROMA_RESAMPLING( X ) ( ( ( X + 1 ) >> 1 ) << 1 )
#define CHROMARATIO( SIZE, RATIO ) ( RATIO > 1 ? ( ( SIZE + 1 ) / RATIO ) : SIZE )
@@ -109,6 +111,6 @@ typedef struct PlaYUVerPixFmtDescriptor
#define MAX_NUMBER_PLANES 3
extern const PlaYUVerPixFmtDescriptor g_PlaYUVerPixFmtDescriptorsList[];
extern const std::map<int, PlaYUVerPixFmtDescriptor> g_PlaYUVerPixFmtDescriptorsMap;
#endif // __PLAYUVERFRAMEPIXELFORMATS_H__