GObject.Object
GstBase.Adapter
Import line: | GstBase = imports.gi.GstBase; |
GIR File: | GstBase-0.10.gir |
C documentation: | GstAdapter |
Class : | Adapter |
Extends: | GObject.Object |
Show / Hide Inherited methods, properties and signals |
Properties | Defined By | |
---|---|---|
_gst_reserved : Array
read only
|
GstBase.Adapter | |
assembled_data : void*
read only
|
GstBase.Adapter | |
assembled_len : Number
read only
|
GstBase.Adapter | |
assembled_size : Number
read only
|
GstBase.Adapter | |
buflist : Array
read only
|
GstBase.Adapter | |
buflist_end : Array
read only
|
GstBase.Adapter | |
object : GObject.Object
read only
|
GstBase.Adapter | |
priv : GstBase.AdapterPrivate
read only
|
GstBase.Adapter | |
size : Number
read only
|
GstBase.Adapter | |
skip : Number
read only
|
GstBase.Adapter |
Method / Constructor | Defined By | |
---|---|---|
new GstBase.Adapter
(Object properties)
Create a new GstBase.Adapter
Create a new GstBase.Adapter
|
||
available
()
:
Number
Gets the maximum amount of bytes available, that is it returns the maximum value that can be supplied to gst_adapter_peek() without that function returning NULL.
Gets the maximum amount of bytes available, that is it returns the maximum value that can be supplied to gst_adapter_peek() without that function returning NULL.
|
GstBase.Adapter | |
available_fast
()
:
Number
Gets the maximum number of bytes that are immediately available without requiring any expensive operations (like copying the data into a temporary buffer).
Gets the maximum number of bytes that are immediately available without requiring any expensive operations (like copying the data into a temporary buffer). operations
|
GstBase.Adapter | |
clear
()
:
none
Removes all buffers from adapter.
Removes all buffers from adapter.
|
GstBase.Adapter | |
Copies size bytes of data starting at offset out of the buffers contained in GstAdapter into an array dest provided by the caller.
Copies size bytes of data starting at offset out of the buffers contained in GstAdapter into an array dest provided by the caller. The array dest should be large enough to contain size bytes. The user should check that the adapter has (offset + size) bytes available before calling this function.
|
GstBase.Adapter | |
flush
(Number flush)
:
none
Flushes the first flush bytes in the adapter.
Flushes the first flush bytes in the adapter. The caller must ensure that at least this many bytes are available.
|
GstBase.Adapter | |
Scan for pattern pattern with applied mask mask in the adapter data, starting from offset offset.
Scan for pattern pattern with applied mask mask in the adapter data, starting from offset offset. The bytes in pattern and mask are interpreted left-to-right, regardless of endianness. All four bytes of the pattern must be present in the adapter for it to match, even if the first or last bytes are masked out. It is an error to call this function without making sure that there is enough data (offset+size bytes) in the adapter. Example:
|
GstBase.Adapter | |
Gets the first size bytes stored in the adapter.
Gets the first size bytes stored in the adapter. The returned pointer is valid until the next function is called on the adapter. Note that setting the returned pointer as the data of a GstBuffer is incorrect for general-purpose plugins. The reason is that if a downstream element stores the buffer so that it has access to it outside of the bounds of its chain function, the buffer will have an invalid data pointer after your element flushes the bytes. In that case you should use gst_adapter_take(), which returns a freshly-allocated buffer that you can set as GstBuffer malloc_data or the potentially more performant gst_adapter_take_buffer(). Returns NULL if size bytes are not available.
|
GstBase.Adapter | |
Get the timestamp that was before the current byte in the adapter.
|
GstBase.Adapter | |
push
(Buffer buf)
:
none
Adds the data from buf to the data stored inside adapter and takes ownership of the buffer.
Adds the data from buf to the data stored inside adapter and takes ownership of the buffer. Empty buffers will be automatically dereferenced and not stored in the
|
GstBase.Adapter | |
GstBase.Adapter | ||
take_buffer
(Number nbytes)
:
Gst.Buffer
Returns a GstBuffer containing the first nbytes bytes of the This function is potentially more performant than gst_adapter_take() since it can reuse the memory in pushed buffers by subbuffering or merging.
Returns a GstBuffer containing the first nbytes bytes of the This function is potentially more performant than gst_adapter_take() since it can reuse the memory in pushed buffers by subbuffering or merging. Caller owns returned value. gst_buffer_unref() after usage. or NULL if nbytes bytes are not available
|
GstBase.Adapter |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
GstRtp.BaseRTPAudioPayload
Method |
get_adapter
()
:
GstBase.Adapter
Gets the internal adapter used by the depayloader.
|