list color spaces supported
This commit is contained in:
1 parent
c46ab5a0ac
commit
94a5b4d275
2 files changed
+13
No files matched your search
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user