Add support to copy only a region of a PlaYUVerFrame and implement histogram from the selection

This commit is contained in:
jfmcarreira committed 2014-05-19 00:16:30 +01:00
1 parent ed92ae419f
commit a528b686ec
5 files changed
+120 -72

No files matched your search

+3 -8
View File
@@ -158,8 +158,8 @@ Void plaYUVerApp::loadFile( QString fileName )
interfaceChild->show();
connect( interfaceChild->getViewArea(), SIGNAL( positionChanged(const QPoint &, PlaYUVerFrame *) ), this,
SLOT( updatePixelValueStatusBar(const QPoint &, PlaYUVerFrame *) ) );
// connect( interfaceChild->getViewArea(), SIGNAL( selectionChanged( QRect ) ), this,
// SLOT( updatePixelValueStatusBar(const QPoint &, PlaYUVerFrame *) ) );
connect( interfaceChild->getViewArea(), SIGNAL( selectionChanged( QRect ) ), this,
SLOT( updatePropertiesSelectedArea( QRect ) ) );
interfaceChild->zoomToFit();
interfaceChild->getViewArea()->setTool( m_appTool );
@@ -282,12 +282,7 @@ Void plaYUVerApp::updatePropertiesSelectedArea( QRect area )
{
if( m_pcCurrentSubWindow )
{
if( area.isNull() )
{
m_pcFrameProperties->setData( m_pcCurrentSubWindow->getInputStream()->getCurrFrame() );
m_pcFrameProperties->setSelection( area );
}
else
if( area.isValid() )
{
m_pcFrameProperties->setSelection( area );
}