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
+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