Put formats definition in Types.h
This commit is contained in:
1 parent
4d76624d6b
commit
4b2d81d3c4
2 files changed
+18
-8
No files matched your search
@@ -34,13 +34,10 @@ namespace plaYUVer
|
||||
QStringList PlaYUVerFrame::supportedPixelFormatList()
|
||||
{
|
||||
QStringList formats;
|
||||
formats << "yuv420p"
|
||||
<< "yuv444p"
|
||||
<< "yuv422p"
|
||||
<< "yuv410p"
|
||||
<< "yuv411p"
|
||||
<< "gray"
|
||||
<< "rgb24";
|
||||
for( Int i = 0; i < NUMBER_FORMATS; i++ )
|
||||
{
|
||||
formats.append(gInputStreamFormatsNames[i].data());
|
||||
}
|
||||
return formats;
|
||||
}
|
||||
|
||||
|
||||
+14
-1
@@ -27,6 +27,7 @@
|
||||
#ifndef __MAKE_LIB__
|
||||
#include "config.h"
|
||||
#endif
|
||||
#include <string>
|
||||
|
||||
namespace plaYUVer
|
||||
{
|
||||
@@ -110,7 +111,7 @@ typedef UChar Pel; ///< 8-bit pixel type
|
||||
// PlaYUVer definitions
|
||||
// ====================================================================================================================
|
||||
|
||||
enum InputStreamColorSpace
|
||||
enum InputStreamFormats
|
||||
{
|
||||
NO_FMT = -1,
|
||||
YUV420p,
|
||||
@@ -120,6 +121,18 @@ enum InputStreamColorSpace
|
||||
YUV410p,
|
||||
GRAY,
|
||||
RGB8,
|
||||
NUMBER_FORMATS
|
||||
};
|
||||
|
||||
const std::string gInputStreamFormatsNames[] =
|
||||
{
|
||||
"YUV420p",
|
||||
"YUV444p",
|
||||
"YUV422p",
|
||||
"YUV411p",
|
||||
"YUV410p",
|
||||
"GRAY",
|
||||
"RGB8",
|
||||
};
|
||||
|
||||
enum ColorSpace
|
||||
|
||||
Reference in new issue
Block a user