Modification of files location

This commit is contained in:
jfmcarreira committed 2014-03-26 05:04:03 +00:00
1 parent 74f74fec61
commit 875ebfd79a
27 files changed
+41 -44

No files matched your search

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -270,7 +270,7 @@ Void InputStream::readNextFrame()
Bool InputStream::writeFrame( const QString& filename )
{
m_pcCurrFrame->getQimage().save( filename );
//m_pcCurrFrame->getQimage().save( filename );
return true;
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -241,7 +241,7 @@ Void SubWindowHandle::normalSize()
Void SubWindowHandle::zoomToFit()
{
// Scale to a smaller size that the real to a nicer look
QSize niceFit( m_cScrollArea->viewport()->size().width() - 10, m_cScrollArea->viewport()->size().height() - 10 );
QSize niceFit( m_cScrollArea->viewport()->size().width() - 5, m_cScrollArea->viewport()->size().height() - 5 );
if( (Int)m_pCurrStream->getWidth() <= niceFit.width() && (Int)m_pCurrStream->getHeight() <= niceFit.height() )
{
normalSize();
@@ -316,7 +316,7 @@ QSize SubWindowHandle::sizeHint() const
return maxSize;
}
Void SubWindowHandle::closeEvent( QCloseEvent *event )
void SubWindowHandle::closeEvent( QCloseEvent *event )
{
event->accept();
}
@@ -142,7 +142,7 @@ public:
}
protected:
Void closeEvent( QCloseEvent *event );
void closeEvent( QCloseEvent *event );
public Q_SLOTS:
bool playEvent();
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -81,15 +81,33 @@ plaYUVerApp::plaYUVerApp()
Void plaYUVerApp::closeEvent( QCloseEvent *event )
{
mdiArea->closeAllSubWindows();
if( mdiArea->currentSubWindow() )
Int msgBoxCloseRet = QMessageBox::Yes;
if( mdiArea->subWindowList().size() >= 1 )
{
event->ignore();
QMessageBox msgBoxClose;
msgBoxClose.setText( "There are sub windows opened." );
msgBoxClose.setInformativeText( "Close all?" );
msgBoxClose.setStandardButtons( QMessageBox::Yes | QMessageBox::No );
msgBoxClose.setDefaultButton( QMessageBox::No );
msgBoxCloseRet = msgBoxClose.exec();
}
else
switch( msgBoxCloseRet )
{
writeSettings();
event->accept();
case QMessageBox::Yes:
mdiArea->closeAllSubWindows();
if( mdiArea->subWindowList().isEmpty() )
{
writeSettings();
event->accept();
}
else
{
event->ignore();
}
break;
case QMessageBox::No:
default:
event->ignore();
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -26,8 +26,6 @@
#include "LibMemAlloc.h"
#include "LibMemory.h"
#include <QImage>
namespace plaYUVer
{
@@ -368,28 +366,6 @@ Void PlaYUVerFrame::CopyFrom( PlaYUVerFrame* input_frame )
}
QImage PlaYUVerFrame::getQimage()
{
QImage img( m_uiWidth, m_uiHeight, QImage::Format_RGB888 );
Pel*** bufferRGB = getPelBufferRGB();
if( sizeof(Pel) == sizeof(unsigned char) )
{
for( UInt y = 0; y < m_uiHeight; y++ )
{
for( UInt x = 0; x < m_uiWidth; x++ )
{
img.setPixel( x, y, qRgb( bufferRGB[COLOR_R][y][x], bufferRGB[COLOR_G][y][x], bufferRGB[COLOR_B][y][x] ) );
}
}
}
else
{
Q_ASSERT( 0 );
}
return img;
}
UInt64 PlaYUVerFrame::getBytesPerFrame()
{
switch( m_iPixelFormat )
@@ -65,8 +65,6 @@ public:
static Pixel ConvertPixel( Pixel sInputPixel, ColorSpace eOutputSpace );
Pixel getPixelValue(const QPoint &pos, ColorSpace color);
QImage getQimage();
UChar* getQImageBuffer()
{
return m_pcRGBPelInterlaced;