list color spaces supported

This commit is contained in:
jfmcarreira committed 2015-03-26 02:09:59 +00:00
1 parent 8353c7bddd
commit c46ab5a0ac
2 files changed
+19 -3

No files matched your search

+9
View File
@@ -42,6 +42,15 @@
namespace plaYUVer
{
std::vector<std::string> PlaYUVerFrame::supportedColorSpacesListNames()
{
std::vector<std::string> colorSpaceList;
colorSpaceList.push_back( "YUV" );
colorSpaceList.push_back( "RGB" );
colorSpaceList.push_back( "GRAY" );
return colorSpaceList;
}
std::vector<std::string> PlaYUVerFrame::supportedPixelFormatListNames()
{
std::vector<std::string> formatsList;
+10 -3
View File
@@ -117,9 +117,9 @@ public:
{
COLOR_INVALID = -1, //!< Invalid
COLOR_YUV = 0, //!< YUV
COLOR_RGB, //!< RGB
COLOR_ARGB, //!< RGB + Alpha
COLOR_GRAY, //!< Grayscale
COLOR_RGB = 1, //!< RGB
COLOR_ARGB = 3, //!< RGB + Alpha
COLOR_GRAY = 2, //!< Grayscale
};
/** ColorSpace Enum
@@ -138,6 +138,13 @@ public:
NUMBER_FORMATS
};
/**
* Function that handles the supported color space
* of PlaYUVerFrame
* @return vector of strings with pixel formats names
*/
static std::vector<std::string> supportedColorSpacesListNames();
/**
* Function that handles the supported pixel formats
* of PlaYUVerFrame