![]() |
![]() |
![]() |
GStreamer Core Plugins 1.0 Plugins Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties | Signals |
struct GstFakeSrc; enum GstFakeSrcDataType; enum GstFakeSrcFillType; enum GstFakeSrcOutputType; enum GstFakeSrcSizeType;
GObject +----GInitiallyUnowned +----GstObject +----GstElement +----GstBaseSrc +----GstFakeSrc
"can-activate-pull" gboolean : Read / Write / Construct "can-activate-push" gboolean : Read / Write / Construct "data" GstFakeSrcDataType : Read / Write "datarate" gint : Read / Write "dump" gboolean : Read / Write "filltype" GstFakeSrcFillType : Read / Write "format" GstFormat : Read / Write "is-live" gboolean : Read / Write / Construct "last-message" gchar* : Read "parentsize" gint : Read / Write "pattern" gchar* : Read / Write "signal-handoffs" gboolean : Read / Write "silent" gboolean : Read / Write "sizemax" gint : Read / Write "sizemin" gint : Read / Write "sizetype" GstFakeSrcSizeType : Read / Write "sync" gboolean : Read / Write
The fakesrc element is a multipurpose element that can generate a wide range of buffers and can operate in various scheduling modes.
It is mostly used as a testing element, one trivial example for testing basic GStreamer core functionality is:
1 |
gst-launch -v fakesrc num-buffers=5 ! fakesink |
Last reviewed on 2008-06-20 (0.10.21)
plugin |
coreelements |
author |
Erik Walthinsen <omega@cse.ogi.edu>, Wim Taymans <wim@fluendo.com> |
class |
Source |
typedef enum { FAKE_SRC_DATA_ALLOCATE = 1, FAKE_SRC_DATA_SUBBUFFER } GstFakeSrcDataType;
The different ways buffers are allocated.
typedef enum { FAKE_SRC_FILLTYPE_NOTHING = 1, FAKE_SRC_FILLTYPE_ZERO, FAKE_SRC_FILLTYPE_RANDOM, FAKE_SRC_FILLTYPE_PATTERN, FAKE_SRC_FILLTYPE_PATTERN_CONT } GstFakeSrcFillType;
The different ways of filling the buffers.
typedef enum { FAKE_SRC_FIRST_LAST_LOOP = 1, FAKE_SRC_LAST_FIRST_LOOP, FAKE_SRC_PING_PONG, FAKE_SRC_ORDERED_RANDOM, FAKE_SRC_RANDOM, FAKE_SRC_PATTERN_LOOP, FAKE_SRC_PING_PONG_PATTERN, FAKE_SRC_GET_ALWAYS_SUCEEDS } GstFakeSrcOutputType;
The different output types. Unused currently.
first pad then last pad | |
last pad then first pad | |
ping pong between pads | |
ordered random pad | |
random pad | |
loop between pads in a particular pattern | |
ping pong based on a pattern | |
a get always succeeds on a pad |
"can-activate-pull"
property"can-activate-pull" gboolean : Read / Write / Construct
Can activate in pull mode.
Default value: TRUE
"can-activate-push"
property"can-activate-push" gboolean : Read / Write / Construct
Can activate in push mode.
Default value: TRUE
"data"
property"data" GstFakeSrcDataType : Read / Write
Data allocation method.
Default value: Allocate data
"datarate"
property"datarate" gint : Read / Write
Timestamps buffers with number of bytes per second (0 = none).
Allowed values: >= 0
Default value: 0
"dump"
property"dump" gboolean : Read / Write
Dump buffer contents to stdout.
Default value: FALSE
"filltype"
property"filltype" GstFakeSrcFillType : Read / Write
How to fill the buffer, if at all.
Default value: Fill buffers with zeros
"format"
property"format" GstFormat : Read / Write
Set the format of the newsegment events to produce.
Default value: GST_FORMAT_BYTES
"is-live"
property"is-live" gboolean : Read / Write / Construct
True if the element cannot produce data in PAUSED.
Default value: FALSE
"last-message"
property"last-message" gchar* : Read
The last status message.
Default value: NULL
"parentsize"
property"parentsize" gint : Read / Write
Size of parent buffer for sub-buffered allocation.
Allowed values: >= 0
Default value: 40960
"signal-handoffs"
property"signal-handoffs" gboolean : Read / Write
Send a signal before pushing the buffer.
Default value: FALSE
"silent"
property"silent" gboolean : Read / Write
Don't produce last_message events.
Default value: TRUE
"sizemax"
property"sizemax" gint : Read / Write
Maximum buffer size.
Allowed values: >= 0
Default value: 4096
"sizemin"
property"sizemin" gint : Read / Write
Minimum buffer size.
Allowed values: >= 0
Default value: 0
"sizetype"
property"sizetype" GstFakeSrcSizeType : Read / Write
How to determine buffer sizes.
Default value: Send empty buffers
"sync"
property"sync" gboolean : Read / Write
Sync to the clock to the datarate.
Default value: FALSE
"handoff"
signalvoid user_function (GstFakeSrc *fakesrc,
GstBuffer *buffer,
GstPad *pad,
gpointer user_data) : Run Last
This signal gets emitted before sending the buffer.
|
the fakesrc instance |
|
the buffer that will be pushed |
|
the pad that will sent it |
|
user data set when the signal handler was connected. |