void YCbCrLabView::setViewerPlane(ffViewer::ViewerPlane planeType) { if ((getState() == isValid) && (planeType != m_viewerPlane)) { m_viewerPlane = planeType; emit onFrameChanged(m_pffSequence->getCurrentFrame(), this); m_pGraphicsView->setSceneRect(m_pGraphicsPixmapItem->boundingRect()); } }
void PhMediaPanel::setClock(PhClock *clock) { _clock = clock; if(_clock) { setTCType(_clock->timeCodeType()); ui->_timecodeLabel->setText(PhTimeCode::stringFromFrame(_clock->frame(), _clock->timeCodeType())); connect(_clock, SIGNAL(frameChanged(PhFrame, PhTimeCodeType)), this, SLOT(onFrameChanged(PhFrame, PhTimeCodeType))); connect(_clock, SIGNAL(rateChanged(PhRate)), this, SLOT(onRateChanged(PhRate))); connect(_clock, SIGNAL(tcTypeChanged(PhTimeCodeType)), this, SLOT(onTimeCodeTypeChanged(PhTimeCodeType))); } }
GraphicStripSyncTestWindow::GraphicStripSyncTestWindow(GraphicStripSyncTestSettings *settings) : PhDocumentWindow(settings), ui(new Ui::GraphicStripSyncTestWindow), _settings(settings), _sonySlave(PhTimeCodeType25, _settings) { ui->setupUi(this); _strip = ui->stripView->strip(); _strip->setSettings(_settings); _doc = _strip->doc(); _clock = _strip->clock(); _clockSynchroniser.setStripClock(_clock); connect(ui->actionOpen, SIGNAL(triggered()), this, SLOT(onOpenFile())); connect(_clock, SIGNAL(frameChanged(PhFrame, PhTimeCodeType)), this, SLOT(onFrameChanged(PhFrame, PhTimeCodeType))); connect(_clock, SIGNAL(rateChanged(PhRate)), this, SLOT(onRateChanged(PhRate))); if(_sonySlave.open()) { _clock = _sonySlave.clock(); _clockSynchroniser.setSonyClock(_clock); connect(ui->stripView, SIGNAL(beforePaint(int)), &_sonySlave, SLOT(checkVideoSync(int))); }