Music Hub  ..
A session-wide music playback service
video::EglSink::Private Struct Reference
+ Collaboration diagram for video::EglSink::Private:

Public Member Functions

bool find_extension (const string &extensions, const string &ext)
 
 Private (uint32_t gl_texture, const media::Player::PlayerKey key)
 
 ~Private ()
 
bool import_buffer (const BufferData *buf_data)
 

Static Public Member Functions

static bool receive_buff (int socket, BufferData *data)
 
static void read_sock_events (const media::Player::PlayerKey key, int sock_fd, promise< BufferData > &prom_buff, core::Signal< void > &frame_available)
 

Public Attributes

uint32_t gl_texture
 
promise< BufferData > prom_buff
 
future< BufferData > fut_buff
 
core::Signal< void > frame_available
 
int sock_fd
 
thread sock_thread
 
EGLImageKHR egl_image
 
int buf_fd
 
PFNEGLCREATEIMAGEKHRPROC _eglCreateImageKHR
 
PFNEGLDESTROYIMAGEKHRPROC _eglDestroyImageKHR
 
PFNGLEGLIMAGETARGETTEXTURE2DOESPROC _glEGLImageTargetTexture2DOES
 

Detailed Description

Definition at line 44 of file egl_sink.cpp.

Constructor & Destructor Documentation

◆ Private()

video::EglSink::Private::Private ( uint32_t  gl_texture,
const media::Player::PlayerKey  key 
)
inline

Definition at line 153 of file egl_sink.cpp.

References MH_DEBUG.

◆ ~Private()

video::EglSink::Private::~Private ( )
inline

Definition at line 211 of file egl_sink.cpp.

Member Function Documentation

◆ find_extension()

bool video::EglSink::Private::find_extension ( const string &  extensions,
const string &  ext 
)
inline

Definition at line 137 of file egl_sink.cpp.

◆ import_buffer()

bool video::EglSink::Private::import_buffer ( const BufferData *  buf_data)
inline

Definition at line 230 of file egl_sink.cpp.

References MH_DEBUG, MH_ERROR, and MH_WARNING.

◆ read_sock_events()

static void video::EglSink::Private::read_sock_events ( const media::Player::PlayerKey  key,
int  sock_fd,
promise< BufferData > &  prom_buff,
core::Signal< void > &  frame_available 
)
inlinestatic

Definition at line 83 of file egl_sink.cpp.

References MH_DEBUG, and MH_ERROR.

◆ receive_buff()

static bool video::EglSink::Private::receive_buff ( int  socket,
BufferData *  data 
)
inlinestatic

Definition at line 47 of file egl_sink.cpp.

References MH_DEBUG, and MH_ERROR.

Member Data Documentation

◆ _eglCreateImageKHR

PFNEGLCREATEIMAGEKHRPROC video::EglSink::Private::_eglCreateImageKHR

Definition at line 272 of file egl_sink.cpp.

◆ _eglDestroyImageKHR

PFNEGLDESTROYIMAGEKHRPROC video::EglSink::Private::_eglDestroyImageKHR

Definition at line 273 of file egl_sink.cpp.

◆ _glEGLImageTargetTexture2DOES

PFNGLEGLIMAGETARGETTEXTURE2DOESPROC video::EglSink::Private::_glEGLImageTargetTexture2DOES

Definition at line 274 of file egl_sink.cpp.

◆ buf_fd

int video::EglSink::Private::buf_fd

Definition at line 271 of file egl_sink.cpp.

◆ egl_image

EGLImageKHR video::EglSink::Private::egl_image

Definition at line 270 of file egl_sink.cpp.

◆ frame_available

core::Signal<void> video::EglSink::Private::frame_available

Definition at line 267 of file egl_sink.cpp.

◆ fut_buff

future<BufferData> video::EglSink::Private::fut_buff

Definition at line 266 of file egl_sink.cpp.

◆ gl_texture

uint32_t video::EglSink::Private::gl_texture

Definition at line 264 of file egl_sink.cpp.

◆ prom_buff

promise<BufferData> video::EglSink::Private::prom_buff

Definition at line 265 of file egl_sink.cpp.

◆ sock_fd

int video::EglSink::Private::sock_fd

Definition at line 268 of file egl_sink.cpp.

◆ sock_thread

thread video::EglSink::Private::sock_thread

Definition at line 269 of file egl_sink.cpp.


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