void S60VideoDisplay::setAspectRatioMode(Qt::AspectRatioMode mode) { if (m_aspectRatioMode != mode) { m_aspectRatioMode = mode; emit aspectRatioModeChanged(m_aspectRatioMode); } }
void S60VideoPlayerSession::setVideoRenderer(QObject *videoOutput) { DP0("S60VideoPlayerSession::setVideoRenderer +++"); if (videoOutput != m_videoOutputControl) { if (m_videoOutputDisplay) { disconnect(m_videoOutputDisplay); m_videoOutputDisplay->disconnect(this); m_videoOutputDisplay = 0; } if (videoOutput) { if (S60VideoWidgetControl *control = qobject_cast<S60VideoWidgetControl *>(videoOutput)) m_videoOutputDisplay = control->display(); if (!m_videoOutputDisplay) return; m_videoOutputDisplay->setNativeSize(m_nativeSize); connect(this, SIGNAL(nativeSizeChanged(QSize)), m_videoOutputDisplay, SLOT(setNativeSize(QSize))); connect(m_videoOutputDisplay, SIGNAL(windowHandleChanged(RWindow *)), this, SLOT(windowHandleChanged())); connect(m_videoOutputDisplay, SIGNAL(displayRectChanged(QRect, QRect)), this, SLOT(displayRectChanged())); connect(m_videoOutputDisplay, SIGNAL(aspectRatioModeChanged(Qt::AspectRatioMode)), this, SLOT(aspectRatioChanged())); connect(m_videoOutputDisplay, SIGNAL(rotationChanged(qreal)), this, SLOT(rotationChanged())); #ifndef VIDEOOUTPUT_GRAPHICS_SURFACES connect(m_videoOutputDisplay, SIGNAL(beginVideoWindowNativePaint()), this, SLOT(suspendDirectScreenAccess())); connect(m_videoOutputDisplay, SIGNAL(endVideoWindowNativePaint()), this, SLOT(resumeDirectScreenAccess())); #endif } m_videoOutputControl = videoOutput; windowHandleChanged(); } DP0("S60VideoPlayerSession::setVideoRenderer ---"); }
void GameConsole::setAspectRatioMode( int aspectRatioMode ) { if( !dynamicPipelineReady() ) { qCDebug( phxControl ) << Q_FUNC_INFO << ": Dynamic pipeline not yet fully hooked up, caching change for later..."; pendingPropertyChanges[ "aspectRatioMode" ] = aspectRatioMode; return; } this->aspectRatioMode = aspectRatioMode; emit commandOut( Command::SetAspectRatioMode, aspectRatioMode, nodeCurrentTime() ); emit aspectRatioModeChanged(); }