mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 20:42:30 +00:00
shm: add minimal doc blobs
This commit is contained in:
parent
e012ea80ff
commit
4565bb1c01
2 changed files with 27 additions and 3 deletions
|
@ -18,8 +18,18 @@
|
||||||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
* Boston, MA 02111-1307, USA.
|
* Boston, MA 02111-1307, USA.
|
||||||
*/
|
*/
|
||||||
|
/**
|
||||||
|
* SECTION:element-shmsink
|
||||||
|
*
|
||||||
|
* Send data over shared memory to the matching source.
|
||||||
|
*
|
||||||
|
* <refsect2>
|
||||||
|
* <title>Example launch lines</title>
|
||||||
|
* |[
|
||||||
|
* gst-launch -v videotestsrc ! shmsink socket-path=/tmp/blah shm-size=1000000
|
||||||
|
* ]| Send video to shm buffers.
|
||||||
|
* </refsect2>
|
||||||
|
*/
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -18,6 +18,20 @@
|
||||||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
* Boston, MA 02111-1307, USA.
|
* Boston, MA 02111-1307, USA.
|
||||||
*/
|
*/
|
||||||
|
/**
|
||||||
|
* SECTION:element-shmsrc
|
||||||
|
*
|
||||||
|
* Receive data from the shared memory sink.
|
||||||
|
*
|
||||||
|
* <refsect2>
|
||||||
|
* <title>Example launch lines</title>
|
||||||
|
* |[
|
||||||
|
* gst-launch shmsrc socket-path=/tmp/blah ! \
|
||||||
|
* "video/x-raw-yuv, format=(fourcc)YUY2, color-matrix=(string)sdtv, \
|
||||||
|
* chroma-site=(string)mpeg2, width=(int)320, height=(int)240, framerate=(fraction)30/1" ! autovideosink
|
||||||
|
* ]| Render video from shm buffers.
|
||||||
|
* </refsect2>
|
||||||
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
@ -90,7 +104,7 @@ gst_shm_src_base_init (gpointer g_class)
|
||||||
gst_element_class_set_details_simple (element_class,
|
gst_element_class_set_details_simple (element_class,
|
||||||
"Shared Memory Source",
|
"Shared Memory Source",
|
||||||
"Source",
|
"Source",
|
||||||
"Receive data from the sharem memory sink",
|
"Receive data from the shared memory sink",
|
||||||
"Olivier Crete <olivier.crete@collabora.co.uk>");
|
"Olivier Crete <olivier.crete@collabora.co.uk>");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue