Refactor pixel formats enum

This commit is contained in:
jfmcarreira committed 2021-10-27 23:07:46 +01:00
1 parent 90a5c32bb6
commit bb2a1ac228
35 files changed
+289 -277

No files matched your search

+3 -2
View File
@@ -688,9 +688,10 @@ bool CalypOptions::checkListingOpts()
if( hasOpt( "pel_fmts" ) )
{
std::cout << "Calyp supported pixel formats:" << std::endl;
for( unsigned int i = 0; i < CalypFrame::supportedPixelFormatListNames().size(); i++ )
const auto& fmt_list = CalypFrame::supportedPixelFormatListNames();
for( const auto& [key, name] : fmt_list )
{
std::cout << " " << CalypFrame::supportedPixelFormatListNames()[i] << std::endl;
std::cout << " " << name << std::endl;
}
bRet |= true;
}