TobiiGlasses2SDK
Classes | Typedefs | Functions
sources/TobiiSDK/TobiiGlasses2SDK/src/Streamer.h File Reference

{This class handles the GStreamer stream capture in order to get the video frames from the Tobii} More...

#include <string>
#include <functional>
#include <string.h>
#include <opencv2/opencv.hpp>
#include <gst/gst.h>
#include <gst/app/gstappsink.h>

Go to the source code of this file.

Classes

struct  _CustomData
class  Streamer
 Streamer handles the video streaming input. More...

Typedefs

typedef struct _CustomData CustomData

Functions

void cb_message (GstBus *bus, GstMessage *msg, CustomData *data)
 Callback that will retrieve pipeline messages.

Detailed Description

{This class handles the GStreamer stream capture in order to get the video frames from the Tobii}

Author:
Pierre-Marie Plans
Date:
12/08/2015

Function Documentation

void cb_message ( GstBus *  bus,
GstMessage *  msg,
CustomData data 
)

Callback that will retrieve pipeline messages.

This callback is called when a new GStreamer pipeline message is received. This callback is used internally and should be removed from the header lately.

Parameters:
GstBus* bus : GstBus pipeline reference.
GstMessage* msg : message received.
CustomData* data : shared data.
Returns:
GST_FLOW_OK if everything goes fine, GST_FLOW_ERROR if not.
 All Classes Namespaces Files Functions Variables