void DisplayManager::ToggleFS() { if (fullscreen) { fullscreen = 0; } else { fullscreen = SDL_WINDOW_FULLSCREEN_DESKTOP; } setVideo(); }
BuzzerModule::BuzzerModule() { setTitle("Buzzer"); setControlWidget(new BuzzerControl); setLiveWidget(new BuzzerLive); BaseControl *control = getControlWidget(); BaseLive *live = getLiveWidget(); serial = new QSerialPort(); teamLocked = false; connect(control, SIGNAL(sendTeamWin(QString)), live, SLOT(teamWin(QString))); connect(control, SIGNAL(openSerialPort(QString&)), this, SLOT(openSerialPort(QString&))); connect(control, SIGNAL(closeSerialPort()), this, SLOT(closeSerialPort())); connect(this, SIGNAL(teamWin(int)), control, SLOT(teamWin(int))); connect(serial, SIGNAL(readyRead()), this, SLOT(readSerialPort())); connect(live, SIGNAL(unlockTeam()), this, SLOT(unlockTeam())); connect(control, SIGNAL(setVideo(QString)), live, SLOT(setVideo(QString))); connect(control, SIGNAL(setVideoPlaying(bool)), live, SLOT(setVideoPlaying(bool))); connect(control, SIGNAL(toggleVideoPlaying()), live, SLOT(toggleVideoPlaying())); connect(live, SIGNAL(videoPlaying(bool)), control, SLOT(videoPlaying(bool))); connect(live, SIGNAL(videoFinished()), control, SLOT(videoFinished())); }
void DisplayManager::Init(bool Fullscreen, bool UsingOpenGL) { FullScreen(Fullscreen); useOpengGL(UsingOpenGL); setVideo(); if(!openGL) { renderer = SDL_CreateRenderer(mainWindow, -1, 0); } else { gl_context = SDL_GL_CreateContext(mainWindow); SDL_GL_MakeCurrent(mainWindow, gl_context); } assert(mainWindow); }
void LiveVideoFileLayer::initDrawable(GLDrawable *drawable, bool isFirst) { //qDebug() << "LiveVideoFileLayer::setupDrawable: drawable:"<<drawable<<", copyFrom:"<<copyFrom; LiveVideoLayer::initDrawable(drawable, isFirst); if(isFirst) { // nothing to do // Maybe in future set a static video source with a blue image? } if(m_video) { //qDebug() << "LiveVideoFileLayer::initDrawable: setting video:"<<m_video; setVideo(m_video); } else { qDebug() << "LiveVideoFileLayer::initDrawable: m_video is null"; } }
void DisplayManager::setBPP(int i) { bpp = i; setVideo(); }
void InspectorLayerTreeAgent::reasonsForCompositingLayer(ErrorString& errorString, const String& layerId, RefPtr<Inspector::Protocol::LayerTree::CompositingReasons>& compositingReasonsResult) { const RenderLayer* renderLayer = m_idToLayer.get(layerId); if (!renderLayer) { errorString = ASCIILiteral("Could not find a bound layer for the provided id"); return; } CompositingReasons reasonsBitmask = renderLayer->compositor().reasonsForCompositing(*renderLayer); auto compositingReasons = Inspector::Protocol::LayerTree::CompositingReasons::create().release(); if (reasonsBitmask & CompositingReason3DTransform) compositingReasons->setTransform3D(true); if (reasonsBitmask & CompositingReasonVideo) compositingReasons->setVideo(true); else if (reasonsBitmask & CompositingReasonCanvas) compositingReasons->setCanvas(true); else if (reasonsBitmask & CompositingReasonPlugin) compositingReasons->setPlugin(true); else if (reasonsBitmask & CompositingReasonIFrame) compositingReasons->setIFrame(true); if (reasonsBitmask & CompositingReasonBackfaceVisibilityHidden) compositingReasons->setBackfaceVisibilityHidden(true); if (reasonsBitmask & CompositingReasonClipsCompositingDescendants) compositingReasons->setClipsCompositingDescendants(true); if (reasonsBitmask & CompositingReasonAnimation) compositingReasons->setAnimation(true); if (reasonsBitmask & CompositingReasonFilters) compositingReasons->setFilters(true); if (reasonsBitmask & CompositingReasonPositionFixed) compositingReasons->setPositionFixed(true); if (reasonsBitmask & CompositingReasonPositionSticky) compositingReasons->setPositionSticky(true); if (reasonsBitmask & CompositingReasonOverflowScrollingTouch) compositingReasons->setOverflowScrollingTouch(true); if (reasonsBitmask & CompositingReasonStacking) compositingReasons->setStacking(true); if (reasonsBitmask & CompositingReasonOverlap) compositingReasons->setOverlap(true); if (reasonsBitmask & CompositingReasonNegativeZIndexChildren) compositingReasons->setNegativeZIndexChildren(true); if (reasonsBitmask & CompositingReasonTransformWithCompositedDescendants) compositingReasons->setTransformWithCompositedDescendants(true); if (reasonsBitmask & CompositingReasonOpacityWithCompositedDescendants) compositingReasons->setOpacityWithCompositedDescendants(true); if (reasonsBitmask & CompositingReasonMaskWithCompositedDescendants) compositingReasons->setMaskWithCompositedDescendants(true); if (reasonsBitmask & CompositingReasonReflectionWithCompositedDescendants) compositingReasons->setReflectionWithCompositedDescendants(true); if (reasonsBitmask & CompositingReasonFilterWithCompositedDescendants) compositingReasons->setFilterWithCompositedDescendants(true); if (reasonsBitmask & CompositingReasonBlendingWithCompositedDescendants) compositingReasons->setBlendingWithCompositedDescendants(true); if (reasonsBitmask & CompositingReasonIsolatesCompositedBlendingDescendants) compositingReasons->setIsolatesCompositedBlendingDescendants(true); if (reasonsBitmask & CompositingReasonPerspective) compositingReasons->setPerspective(true); if (reasonsBitmask & CompositingReasonPreserve3D) compositingReasons->setPreserve3D(true); if (reasonsBitmask & CompositingReasonWillChange) compositingReasons->setWillChange(true); if (reasonsBitmask & CompositingReasonRoot) compositingReasons->setRoot(true); compositingReasonsResult = WTF::move(compositingReasons); }
void BuzzerControl::startNewVideo() { int vidItem = videoPlaylist->currentRow(); QString path = videoFiles[vidItem].absoluteFilePath(); emit setVideo(path); }