Public Member Functions | |
void | exitOnMainThread (int code) |
void | publish (const audio_common_msgs::AudioData &msg) |
RosGstCapture () | |
~RosGstCapture () | |
Static Public Member Functions | |
static gboolean | onMessage (GstBus *bus, GstMessage *message, gpointer userData) |
static GstFlowReturn | onNewBuffer (GstAppSink *appsink, gpointer userData) |
Private Attributes | |
int | _bitrate |
GstBus * | _bus |
int | _channels |
GstElement * | _convert |
int | _depth |
GstElement * | _encode |
std::string | _format |
boost::thread | _gst_thread |
GMainLoop * | _loop |
ros::NodeHandle | _nh |
GstElement * | _pipeline |
ros::Publisher | _pub |
int | _sample_rate |
GstElement * | _sink |
GstElement * | _source |
Definition at line 12 of file audio_capture.cpp.
audio_transport::RosGstCapture::RosGstCapture | ( | ) | [inline] |
Definition at line 15 of file audio_capture.cpp.
audio_transport::RosGstCapture::~RosGstCapture | ( | ) | [inline] |
Definition at line 116 of file audio_capture.cpp.
void audio_transport::RosGstCapture::exitOnMainThread | ( | int | code | ) | [inline] |
Definition at line 124 of file audio_capture.cpp.
static gboolean audio_transport::RosGstCapture::onMessage | ( | GstBus * | bus, |
GstMessage * | message, | ||
gpointer | userData | ||
) | [inline, static] |
Definition at line 150 of file audio_capture.cpp.
static GstFlowReturn audio_transport::RosGstCapture::onNewBuffer | ( | GstAppSink * | appsink, |
gpointer | userData | ||
) | [inline, static] |
Definition at line 134 of file audio_capture.cpp.
void audio_transport::RosGstCapture::publish | ( | const audio_common_msgs::AudioData & | msg | ) | [inline] |
Definition at line 129 of file audio_capture.cpp.
int audio_transport::RosGstCapture::_bitrate [private] |
Definition at line 173 of file audio_capture.cpp.
GstBus* audio_transport::RosGstCapture::_bus [private] |
Definition at line 172 of file audio_capture.cpp.
int audio_transport::RosGstCapture::_channels [private] |
Definition at line 173 of file audio_capture.cpp.
GstElement * audio_transport::RosGstCapture::_convert [private] |
Definition at line 171 of file audio_capture.cpp.
int audio_transport::RosGstCapture::_depth [private] |
Definition at line 173 of file audio_capture.cpp.
GstElement * audio_transport::RosGstCapture::_encode [private] |
Definition at line 171 of file audio_capture.cpp.
std::string audio_transport::RosGstCapture::_format [private] |
Definition at line 175 of file audio_capture.cpp.
boost::thread audio_transport::RosGstCapture::_gst_thread [private] |
Definition at line 169 of file audio_capture.cpp.
GMainLoop* audio_transport::RosGstCapture::_loop [private] |
Definition at line 174 of file audio_capture.cpp.
Definition at line 166 of file audio_capture.cpp.
GstElement* audio_transport::RosGstCapture::_pipeline [private] |
Definition at line 171 of file audio_capture.cpp.
Definition at line 167 of file audio_capture.cpp.
int audio_transport::RosGstCapture::_sample_rate [private] |
Definition at line 173 of file audio_capture.cpp.
GstElement * audio_transport::RosGstCapture::_sink [private] |
Definition at line 171 of file audio_capture.cpp.
GstElement * audio_transport::RosGstCapture::_source [private] |
Definition at line 171 of file audio_capture.cpp.