Remove dependencies to Qt libs from PlaYUVStream. Only save frame depends on QString and QImage

This commit is contained in:
jfmcarreira committed 2015-02-21 15:26:42 +00:00
1 parent 60bc2953ed
commit e751c5469e
8 files changed
+106 -139

No files matched your search

+1 -1
View File
@@ -159,7 +159,7 @@ ConfigureFormatDialog::ConfigureFormatDialog( QWidget *parent ) :
m_comboBoxPixelFormat->clear();
for( UInt i = 0; i < PlaYUVerFrame::supportedPixelFormatListNames().size(); i++ )
{
m_comboBoxPixelFormat->insertItem( i, PlaYUVerFrame::supportedPixelFormatListNames()[i].data() );
m_comboBoxPixelFormat->insertItem( i, PlaYUVerFrame::supportedPixelFormatListNames()[i].c_str() );
}
m_comboBoxPixelFormat->setCurrentIndex( 1 );
+7 -6
View File
@@ -452,22 +452,23 @@ Void ModulesHandle::applyAllModuleIf( PlaYUVerAppModuleIf *pcCurrModuleIf )
QString supported = tr( "Supported Files (" );
QStringList formatsList;
QStringList formatsExt = PlaYUVerStream::supportedWriteFormatsExt();
QStringList formatsName = PlaYUVerStream::supportedWriteFormatsName();
std::vector<std::string> formatsExt = PlaYUVerStream::supportedWriteFormatsExt();
std::vector<std::string> formatsName = PlaYUVerStream::supportedWriteFormatsName();
for( Int i = 0; i < formatsName.size(); i++ )
for( UInt i = 0; i < formatsName.size(); i++ )
{
QString currFmt;
supported.append( " *." );
supported.append( formatsExt[i] );
currFmt.append( formatsName[i] );
supported.append( QString::fromStdString( formatsExt[i] ) );
currFmt.append( QString::fromStdString( formatsName[i] ) );
currFmt.append( " (*." );
currFmt.append( formatsExt[i] );
currFmt.append( QString::fromStdString( formatsExt[i] ) );
currFmt.append( ")" );
formatsList << currFmt;
}
supported.append( " )" );
QStringList filter;
filter << supported
<< formatsList
+12 -13
View File
@@ -218,17 +218,17 @@ Void plaYUVerApp::open()
{
QString supported = tr( "Supported Files (" );
QStringList formatsList;
QStringList formatsExt = PlaYUVerStream::supportedReadFormatsExt();
QStringList formatsName = PlaYUVerStream::supportedReadFormatsName();
std::vector<std::string> formatsExt = PlaYUVerStream::supportedReadFormatsExt();
std::vector<std::string> formatsName = PlaYUVerStream::supportedReadFormatsName();
for( Int i = 0; i < formatsName.size(); i++ )
for( UInt i = 0; i < formatsName.size(); i++ )
{
QString currFmt;
supported.append( " *." );
supported.append( formatsExt[i] );
currFmt.append( formatsName[i] );
supported.append( QString::fromStdString( formatsExt[i] ) );
currFmt.append( QString::fromStdString( formatsName[i] ) );
currFmt.append( " (*." );
currFmt.append( formatsExt[i] );
currFmt.append( QString::fromStdString( formatsExt[i] ) );
currFmt.append( ")" );
formatsList << currFmt;
}
@@ -265,17 +265,17 @@ Void plaYUVerApp::save()
VideoSubWindow *saveWindow = m_pcCurrentVideoSubWindow;
QString supported = tr( "Supported Files (" );
QStringList formatsList;
QStringList formatsExt = PlaYUVerStream::supportedSaveFormatsExt();
QStringList formatsName = PlaYUVerStream::supportedSaveFormatsName();
std::vector<std::string> formatsExt = PlaYUVerStream::supportedSaveFormatsExt();
std::vector<std::string> formatsName = PlaYUVerStream::supportedSaveFormatsName();
for( Int i = 0; i < formatsName.size(); i++ )
for( UInt i = 0; i < formatsName.size(); i++ )
{
QString currFmt;
supported.append( " *." );
supported.append( formatsExt[i] );
currFmt.append( formatsName[i] );
supported.append( QString::fromStdString( formatsExt[i] ) );
currFmt.append( QString::fromStdString( formatsName[i] ) );
currFmt.append( " (*." );
currFmt.append( formatsExt[i] );
currFmt.append( QString::fromStdString( formatsExt[i] ) );
currFmt.append( ")" );
formatsList << currFmt;
}
@@ -409,7 +409,6 @@ Void plaYUVerApp::zoomToFitAll()
updateZoomFactorSBox();
}
Void plaYUVerApp::scaleFrame( int ratio )
{
if( m_pcCurrentSubWindow )