Add support to parse just a specific region of the image

Currently incomplete due to the lack of copy region in PlaYUVer frame
This commit is contained in:
jfmcarreira committed 2014-04-16 00:01:28 +01:00
1 parent 9c20af5d1a
commit 15130c8911
3 files changed
+47 -9

No files matched your search

+25
View File
@@ -149,6 +149,9 @@ Void plaYUVerApp::loadFile( QString fileName )
interfaceChild->show();
connect( interfaceChild->getViewArea(), SIGNAL( positionChanged(const QPoint &, InputStream *) ), this,
SLOT( updatePixelValueStatusBar(const QPoint &, InputStream *) ) );
// connect( interfaceChild->getViewArea(), SIGNAL( selectionChanged( QRect ) ), this,
// SLOT( updatePixelValueStatusBar(const QPoint &, InputStream *) ) );
interfaceChild->zoomToFit();
interfaceChild->getViewArea()->setTool( m_appTool );
}
@@ -239,11 +242,33 @@ void plaYUVerApp::updateProperties()
{
m_pcStreamProperties->setData( m_pcCurrentSubWindow->getInputStream() );
m_pcFrameProperties->setData( m_pcCurrentSubWindow->getInputStream()->getCurrFrame() );
//m_pcFrameProperties->setSelection( m_pcCurrentSubWindow->getViewArea()->selectedArea() );
}
else
{
m_pcStreamProperties->setData( m_pcCurrentSubWindow->getInputStream() );
m_pcFrameProperties->setData( m_pcCurrentSubWindow->getInputStream()->getCurrFrame() );
//m_pcFrameProperties->setSelection( m_pcCurrentSubWindow->getViewArea()->selectedArea() );
}
}
void plaYUVerApp::updatePropertiesSelectedArea( QRect area )
{
if( m_pcCurrentSubWindow )
{
if( area.isNull() )
{
m_pcFrameProperties->setData( m_pcCurrentSubWindow->getInputStream()->getCurrFrame() );
m_pcFrameProperties->setSelection( area );
}
else
{
m_pcFrameProperties->setSelection( area );
}
}
else
{
m_pcFrameProperties->setData( NULL );
}
}