SDRAngel  4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
Public Member Functions | Private Attributes | List of all members
DATVideoRenderThread Class Reference

#include <datvideorender.h>

Inherits QThread.

+ Collaboration diagram for DATVideoRenderThread:

Public Member Functions

 DATVideoRenderThread ()
 
 DATVideoRenderThread (DATVideoRender *renderer, DATVideostream *stream)
 
void setStreamAndRenderer (DATVideoRender *renderer, DATVideostream *stream)
 
void run ()
 
void stopRendering ()
 

Private Attributes

DATVideoRenderm_renderer
 
DATVideostreamm_stream
 
bool m_renderingVideo
 

Detailed Description

Definition at line 167 of file datvideorender.h.

Constructor & Destructor Documentation

◆ DATVideoRenderThread() [1/2]

DATVideoRenderThread::DATVideoRenderThread ( )
inline

Definition at line 170 of file datvideorender.h.

171  {
172  m_renderer = nullptr;
173  m_stream = nullptr;
174  m_renderingVideo = false;
175  }
DATVideoRender * m_renderer
DATVideostream * m_stream

◆ DATVideoRenderThread() [2/2]

DATVideoRenderThread::DATVideoRenderThread ( DATVideoRender renderer,
DATVideostream stream 
)
inline

Definition at line 177 of file datvideorender.h.

178  {
179  m_renderer = renderer;
180  m_stream = stream;
181  m_renderingVideo = false;
182  }
DATVideoRender * m_renderer
DATVideostream * m_stream

Member Function Documentation

◆ run()

void DATVideoRenderThread::run ( )
inline

Definition at line 191 of file datvideorender.h.

192  {
193  if (m_renderingVideo)
194  {
195  return;
196  }
197 
198  if ((m_renderer == nullptr) || (m_stream == nullptr))
199  {
200  return;
201  }
202 
204 
205  if (!m_renderingVideo)
206  {
207  return;
208  }
209 
210  while ((m_renderer->RenderStream()) && (m_renderingVideo == true))
211  {
212  }
213 
215  m_renderingVideo = false;
216  }
bool OpenStream(DATVideostream *objDevice)
DATVideoRender * m_renderer
bool CloseStream(QIODevice *objDevice)
DATVideostream * m_stream

◆ setStreamAndRenderer()

void DATVideoRenderThread::setStreamAndRenderer ( DATVideoRender renderer,
DATVideostream stream 
)
inline

Definition at line 184 of file datvideorender.h.

Referenced by DATVDemod::PlayVideo().

185  {
186  m_renderer = renderer;
187  m_stream = stream;
188  m_renderingVideo = false;
189  }
DATVideoRender * m_renderer
DATVideostream * m_stream
+ Here is the caller graph for this function:

◆ stopRendering()

void DATVideoRenderThread::stopRendering ( )
inline

Definition at line 218 of file datvideorender.h.

Referenced by DATVDemod::PlayVideo(), and DATVDemod::~DATVDemod().

219  {
220  m_renderingVideo = false;
221  }
+ Here is the caller graph for this function:

Member Data Documentation

◆ m_renderer

DATVideoRender* DATVideoRenderThread::m_renderer
private

Definition at line 224 of file datvideorender.h.

◆ m_renderingVideo

bool DATVideoRenderThread::m_renderingVideo
private

Definition at line 226 of file datvideorender.h.

◆ m_stream

DATVideostream* DATVideoRenderThread::m_stream
private

Definition at line 225 of file datvideorender.h.


The documentation for this class was generated from the following file: