GstPushSrc
This class is mostly useful for elements that cannot do random access, or at least very slowly. The source usually prefers to push out a fixed size buffer.
Subclasses usually operate in a format that is different from the default GST_FORMAT_BYTES format of GstBaseSrc.
Classes extending this base class will usually be scheduled in a push based mode. If the peer accepts to operate without offsets and within the limits of the allowed block size, this class can operate in getrange based mode automatically. To make this possible, the subclass should implement and override the SCHEDULING query.
The subclass should extend the methods from the baseclass in addition to the ::create method.
Seeking, flushing, scheduling and sync is all handled by this base class.
GstPushSrc
GObject ╰──GInitiallyUnowned ╰──GstObject ╰──GstElement ╰──GstBaseSrc ╰──GstPushSrc
The opaque GstPushSrc data structure.
Members
parent
(GstBaseSrc)
–
Class structure
GstPushSrc
GObject ╰──GInitiallyUnowned ╰──GstObject ╰──GstElement ╰──GstBaseSrc ╰──GstPushSrc
The opaque GstPushSrc data structure.
Members
parent
(GstBaseSrc)
–
GstPushSrc
GObject ╰──GInitiallyUnowned ╰──GstObject ╰──GstElement ╰──GstBaseSrc ╰──GstPushSrc
The opaque GstPushSrc data structure.
Members
parent
(GstBaseSrc)
–
Virtual Methods
alloc
GstFlowReturn alloc (GstPushSrc * src, GstBuffer ** buf)
Parameters:
src
–
buf
–
do_alloc
def do_alloc (src, buf):
#python implementation of the 'alloc' virtual method
Parameters:
src
(
GstBase.PushSrc
)
–
buf
(
Gst.Buffer
)
–
vfunc_alloc
function vfunc_alloc(src: GstBase.PushSrc, buf: Gst.Buffer): {
// javascript implementation of the 'alloc' virtual method
}
Parameters:
src
(
GstBase.PushSrc
)
–
buf
(
Gst.Buffer
)
–
create
GstFlowReturn create (GstPushSrc * src, GstBuffer ** buf)
Parameters:
src
–
buf
–
do_create
def do_create (src, buf):
#python implementation of the 'create' virtual method
Parameters:
src
(
GstBase.PushSrc
)
–
buf
(
Gst.Buffer
)
–
vfunc_create
function vfunc_create(src: GstBase.PushSrc, buf: Gst.Buffer): {
// javascript implementation of the 'create' virtual method
}
Parameters:
src
(
GstBase.PushSrc
)
–
buf
(
Gst.Buffer
)
–
fill
GstFlowReturn fill (GstPushSrc * src, GstBuffer * buf)
Parameters:
src
–
buf
–
do_fill
def do_fill (src, buf):
#python implementation of the 'fill' virtual method
Parameters:
src
(
GstBase.PushSrc
)
–
buf
(
Gst.Buffer
)
–
vfunc_fill
function vfunc_fill(src: GstBase.PushSrc, buf: Gst.Buffer): {
// javascript implementation of the 'fill' virtual method
}
Parameters:
src
(
GstBase.PushSrc
)
–
buf
(
Gst.Buffer
)
–
The results of the search are