Remove dependencies to Qt libs from PlaYUVStream. Only save frame depends on QString and QImage
This commit is contained in:
1 parent
60bc2953ed
commit
e751c5469e
8 files changed
+106
-139
No files matched your search
@@ -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 );
|
||||
|
||||
|
||||
@@ -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
@@ -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 )
|
||||
|
||||
Reference in new issue
Block a user