list color spaces supported

This commit is contained in:
jfmcarreira committed 2015-03-26 02:13:56 +00:00
1 parent c46ab5a0ac
commit 94a5b4d275
2 files changed
+13

No files matched your search

+12
View File
@@ -62,6 +62,18 @@ std::vector<std::string> PlaYUVerFrame::supportedPixelFormatListNames()
return formatsList;
}
std::vector<std::string> PlaYUVerFrame::supportedPixelFormatListNames( Int colorSpace )
{
std::vector<std::string> formatsList;
Int numberFormats = PLAYUVER_NUMBER_FORMATS;
for( Int i = 0; i < numberFormats; i++ )
{
if( g_PlaYUVerPixFmtDescriptorsList[i].colorSpace == colorSpace )
formatsList.push_back( g_PlaYUVerPixFmtDescriptorsList[i].name );
}
return formatsList;
}
PlaYUVerFrame::Pixel PlaYUVerFrame::ConvertPixel( Pixel inputPixel, ColorSpace eOutputSpace )
{
Int outA, outB, outC;
+1
View File
@@ -151,6 +151,7 @@ public:
* @return vector of strings with pixel formats names
*/
static std::vector<std::string> supportedPixelFormatListNames();
static std::vector<std::string> supportedPixelFormatListNames( Int colorSpace );
/**
* Get number of bytes per frame of a specific