Import line: | Gst = imports.gi.Gst; |
GIR File: | Gst-0.10.gir |
C documentation: | GstBuffer |
Struct : | Buffer |
Show / Hide Inherited methods, properties and signals |
Properties | Defined By | |
---|---|---|
_gst_reserved : Array
|
Gst.Buffer | |
caps : Gst.Caps
|
Gst.Buffer | |
data : void*
|
Gst.Buffer | |
duration : Number
|
Gst.Buffer | |
free_func : [object Object]
|
Gst.Buffer | |
malloc_data : void*
|
Gst.Buffer | |
mini_object : Gst.MiniObject
|
Gst.Buffer | |
offset : Number
|
Gst.Buffer | |
offset_end : Number
|
Gst.Buffer | |
parent : Gst.Buffer
|
Gst.Buffer | |
size : Number
|
Gst.Buffer | |
timestamp : Number
|
Gst.Buffer |
Method / Constructor | Defined By | |
---|---|---|
new Gst.Buffer
()
Create a new Gst.Buffer
Create a new Gst.Buffer
|
||
Create a new Gst.Buffer
Create a new Gst.Buffer
|
||
copy_metadata
(Buffer src, BufferCopyFlags flags)
:
none
Copies the metadata from src into dest.
Copies the metadata from src into dest. The data, size and mallocdata fields are not copied. all the metadata fields. This function is typically called from a custom buffer copy function after creating dest and setting the data, size, mallocdata.
|
Gst.Buffer | |
Creates a sub-buffer from parent at offset and size.
Creates a sub-buffer from parent at offset and size. This sub-buffer uses the actual memory space of the parent buffer. This function will copy the offset and timestamp fields when the offset is 0. If not, they will be set to GST_CLOCK_TIME_NONE and GST_BUFFER_OFFSET_NONE. If offset equals 0 and size equals the total size of buffer, the duration and offset end fields are also copied. If not they will be set to GST_CLOCK_TIME_NONE and GST_BUFFER_OFFSET_NONE. MT safe. Returns NULL if the arguments were invalid.
|
Gst.Buffer | |
get_caps
()
:
Gst.Caps
Gets the media type of the buffer.
Gets the media type of the buffer. This can be NULL if there is no media type attached to this buffer. Returns NULL if there were no caps on this buffer.
|
Gst.Buffer | |
is_metadata_writable
()
:
Boolean
Similar to gst_buffer_is_writable, but this only ensures that the refcount of the buffer is 1, indicating that the caller is the sole owner and can change the buffer metadata, such as caps and timestamps.
Similar to gst_buffer_is_writable, but this only ensures that the refcount of the buffer is 1, indicating that the caller is the sole owner and can change the buffer metadata, such as caps and timestamps.
|
Gst.Buffer | |
Determines whether a gst_buffer_span() can be done without copying the contents, that is, whether the data areas are contiguous sub-buffers of the same buffer.
Determines whether a gst_buffer_span() can be done without copying the contents, that is, whether the data areas are contiguous sub-buffers of the same buffer. MT safe. FALSE if a copy would be required.
|
Gst.Buffer | |
join
(Buffer buf2)
:
Gst.Buffer
Create a new buffer that is the concatenation of the two source buffers, and unrefs the original source buffers.
Create a new buffer that is the concatenation of the two source buffers, and unrefs the original source buffers. If the buffers point to contiguous areas of memory, the buffer is created without copying the data. This is a convenience function for C programmers. See also gst_buffer_merge(), which does the same thing without unreffing the input parameters. Language bindings without explicit reference counting should not wrap this function.
|
Gst.Buffer | |
make_metadata_writable
()
:
Gst.Buffer
Similar to gst_buffer_make_writable, but does not ensure that the buffer data array is writable.
Similar to gst_buffer_make_writable, but does not ensure that the buffer data array is writable. Instead, this just ensures that the returned buffer is solely owned by the caller, by creating a subbuffer of the original buffer if necessary. After calling this function, buf should not be referenced anymore. The result of this function has guaranteed writable metadata.
|
Gst.Buffer | |
merge
(Buffer buf2)
:
Gst.Buffer
Create a new buffer that is the concatenation of the two source buffers.
Create a new buffer that is the concatenation of the two source buffers. The original source buffers will not be modified or unref'd. Make sure you unref the source buffers if they are not used anymore afterwards. If the buffers point to contiguous areas of memory, the buffer is created without copying the data.
|
Gst.Buffer | |
set_caps
(Caps caps)
:
none
Sets the media type on the buffer.
Sets the media type on the buffer. The refcount of the caps will be increased and any previous caps on the buffer will be unreffed.
|
Gst.Buffer | |
buffer should start.
buffer should start. Creates a new buffer that consists of part of buf1 and buf2. Logically, buf1 and buf2 are concatenated into a single larger buffer, and a new buffer is created at the given offset inside this space, with a given length. If the two source buffers are children of the same larger buffer, and are contiguous, the new buffer will be a child of the shared parent, and thus no copying is necessary. you can use gst_buffer_is_span_fast() to determine if a memcpy will be needed. MT safe. Returns NULL if the arguments are invalid.
|
Gst.Buffer | |
stamp
(Buffer src)
:
none
Copies additional information (the timestamp, duration, and offset start and end) from one buffer to the other.
Copies additional information (the timestamp, duration, and offset start and end) from one buffer to the other. This function does not copy any buffer flags or caps and is equivalent to gst_buffer_copy_metadata(dest, src, GST_BUFFER_COPY_TIMESTAMPS). control.
|
Gst.Buffer |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
Gst
Method |
Tries to create a newly allocated buffer with data of the given size.
|
Gst.BufferList
Method |
Get the buffer at idx in group.
|
Gst.BufferListIterator
Method |
next
()
:
Gst.Buffer
Returns the next buffer in the list iterated with it.
|
Gst.BufferListIterator
Method |
add
(Buffer buffer)
:
none
Inserts buffer into the GstBufferList iterated with it.
|
Gst.BufferListIterator
Method |
steal
()
:
Gst.Buffer
Returns the last buffer returned by gst_buffer_list_iterator_next() without modifying the refcount of the buffer.
|
Gst.BufferListIterator
Method |
take
(Buffer buffer)
:
none
Replaces the last buffer returned by gst_buffer_list_iterator_next() with this function is called.
|
Gst.BufferListIterator
Method |
Calls the given function for the last buffer returned by gst_buffer_list_iterator_next().
|
Gst.BufferListIterator
Method |
merge_group
()
:
Gst.Buffer
Merge a buffer list group into a normal GstBuffer by copying its metadata and memcpying its data into consecutive memory.
|
Gst.Pad
Method |
Allocates a new, empty buffer optimized to push to pad pad.
|
Gst.Pad
Method |
In addition to the function gst_pad_alloc_buffer(), this function automatically calls gst_pad_set_caps() when the caps of the newly allocated buffer are different from the pad caps.
|
Gst.Pad
Method |
push
(Buffer buffer)
:
Gst.FlowReturn
Pushes a buffer to the peer of pad.
|
Gst.Pad
Method |
Pulls a buffer from the peer pad.
|
Gst.Pad
Method |
chain
(Buffer buffer)
:
Gst.FlowReturn
Chain a buffer to pad.
|
Gst.Pad
Method |
When pad is flushing this function returns GST_FLOW_WRONG_STATE immediatly.
|
Gst.TagList
Method |
Copies the first buffer for the given tag in the taglist into the variable pointed to by value.
|
Gst.TagList
Method |
Gets the buffer that is at the given index for the given tag in the given list and copies it into the variable pointed to by value.
|
GstApp.AppSink
Method |
pull_preroll
()
:
Gst.Buffer
Get the last preroll buffer in appsink.
|
GstApp.AppSink
Method |
pull_buffer
()
:
Gst.Buffer
This function blocks until a buffer or EOS becomes available or the appsink element is set to the READY/NULL state.
|
GstApp.AppSrc
Signal |
Adds a buffer to the queue of buffers that the appsrc element will push to its source pad.
|
GstApp.AppSrc
Method |
push_buffer
(Buffer buffer)
:
Gst.FlowReturn
Adds a buffer to the queue of buffers that the appsrc element will push to its source pad.
|
GstAudio
Method |
Clip the the buffer to the given GstSegment.
|
GstAudio
Method |
Calculate length in nanoseconds of audio buffer buf based on capabilities of
|
GstAudio
Method |
Calculate length of buffer in frames.
|
GstAudio
Method |
Check if the buffer size is a whole multiple of the frame size.
|
GstBase
Method |
Tries to find what type of data is contained in the given GstBuffer, the assumption being that the buffer represents the beginning of the stream or file.
|
GstBase.Adapter
Method |
push
(Buffer buf)
:
none
Adds the data from buf to the data stored inside adapter and takes ownership of the buffer.
|
GstBase.Adapter
Method |
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.
|
GstBase.BaseSink
Property |
last_buffer : Gst.Buffer
read only
|
GstBase.BaseSink
Method |
get_last_buffer
()
:
Gst.Buffer
Get the last buffer that arrived in the sink and was used for preroll or for rendering.
|
GstBase.BitReader
Method |
Create a new GstBase.BitReader
|
GstBase.BitReader
Method |
init_from_buffer
(Buffer buffer)
:
none
Initializes a GstBitReader instance to read from buffer.
|
GstBase.ByteReader
Method |
Create a new GstBase.ByteReader
|
GstBase.ByteReader
Method |
init_from_buffer
(Buffer buffer)
:
none
Initializes a GstByteReader instance to read from buffer.
|
GstBase.ByteWriter
Method |
Create a new GstBase.ByteWriter
|
GstBase.ByteWriter
Method |
Initializes writer with the given buffer.
|
GstBase.ByteWriter
Method |
free_and_get_buffer
()
:
Gst.Buffer
Frees writer and all memory allocated by it except the current data, which is returned as GstBuffer.
|
GstBase.ByteWriter
Method |
reset_and_get_buffer
()
:
Gst.Buffer
Resets writer and returns the current data as buffer.
|
GstBase.CollectPads
Method |
peek
(CollectData data)
:
Gst.Buffer
Peek at the buffer currently queued in data.
|
GstBase.CollectPads
Method |
pop
(CollectData data)
:
Gst.Buffer
Pop the buffer currently queued in data.
|
GstBase.CollectPads
Method |
Get a buffer of size bytes from the given pad data.
|
GstBase.CollectPads
Method |
Get a buffer of size bytes from the given pad data.
|
GstCheck
Method |
Get one buffer from pad.
|
GstCheck
Method |
|
GstCheck
Method |
Create an element with the factory with the name and push the and this will be compared with buffer_out.
|
GstRiff
Method |
GstRiff.create_audio_caps
(Number codec_id, riff_strh strh, riff_strf_auds strf, Buffer strf_data, Buffer strd_data, Array codec_name)
:
Gst.Caps
|
GstRiff
Method |
GstRiff.create_iavs_caps
(Number codec_fcc, riff_strh strh, riff_strf_iavs strf, Buffer strf_data, Buffer strd_data, Array codec_name)
:
Gst.Caps
|
GstRiff
Method |
GstRiff.create_video_caps
(Number codec_fcc, riff_strh strh, riff_strf_vids strf, Buffer strf_data, Buffer strd_data, Array codec_name)
:
Gst.Caps
|
GstRiff
Method |
GstRiff.parse_chunk
(Element element, Buffer buf, Object out_values, Number fourcc, Buffer chunk_data)
:
Boolean
Reads a single chunk.
|
GstRiff
Method |
Reads the first few bytes from the provided buffer, checks if this stream is a RIFF stream, and determines document type.
|
GstRiff
Method |
Parses stream metadata from input data.
|
GstRiff
Method |
Parses an audio streamĀ“s strf structure plus optionally some extradata from input data.
|
GstRiff
Method |
Parses a interleaved (also known as "complex") streamĀ“s strf structure plus optionally some extradata from input data.
|
GstRiff
Method |
Parses a video streamĀ“s strf structure plus optionally some extradata from input data.
|
GstRiff
Method |
Parses a strh structure from input data.
|
GstRiff
Method |
GstRiff.read_chunk
(Element element, Pad pad, Object out_values, Number tag, Buffer chunk_data)
:
Gst.FlowReturn
Reads a single chunk of data.
|
GstRtp
Method |
GstRtp.buffer_allocate_data
(Buffer buffer, Number payload_len, Number pad_len, Number csrc_count)
:
none
Allocate enough data in buffer to hold an RTP packet with csrc_count CSRCs, a payload length of payload_len and padding of pad_len.
|
GstRtp
Method |
Get the CSRC at index idx in buffer.
|
GstRtp
Method |
Get the CSRC count of the RTP packet in buffer.
|
GstRtp
Method |
Check if the extension bit is set on the RTP packet in buffer.
|
GstRtp
Method |
Get the extension data.
|
GstRtp
Method |
Return the total length of the header in buffer.
|
GstRtp
Method |
Check if the marker bit is set on the RTP packet in buffer.
|
GstRtp
Method |
Return the total length of the packet in buffer.
|
GstRtp
Method |
Check if the padding bit is set on the RTP packet in buffer.
|
GstRtp
Method |
Get a pointer to the payload data in buffer.
|
GstRtp
Method |
Create a buffer of the payload of the RTP packet in buffer.
|
GstRtp
Method |
Get the length of the payload of the RTP packet in buffer.
|
GstRtp
Method |
Create a subbuffer of the payload of the RTP packet in buffer.
|
GstRtp
Method |
Get the payload type of the RTP packet in buffer.
|
GstRtp
Method |
Get the sequence number of the RTP packet in buffer.
|
GstRtp
Method |
Get the SSRC of the RTP packet in buffer.
|
GstRtp
Method |
Get the timestamp of the RTP packet in buffer.
|
GstRtp
Method |
Get the version number of the RTP packet in buffer.
|
GstRtp
Method |
Allocate a new GstBuffer with enough data to hold an RTP packet with All other RTP header fields will be set to 0/FALSE.
|
GstRtp
Method |
Create a new GstBuffer that can hold an RTP packet that is exactly All RTP header fields will be set to 0/FALSE.
|
GstRtp
Method |
Create a new buffer and set the data to a copy of len bytes of data and the size to len.
|
GstRtp
Method |
Create a new buffer and set the data and size of the buffer to data and len respectively.
|
GstRtp
Method |
Set the amount of padding in the RTP packet in buffer to
|
GstRtp
Method |
Modify the CSRC at index idx in buffer to csrc.
|
GstRtp
Method |
Set the extension bit on the RTP packet in buffer to extension.
|
GstRtp
Method |
the extension, excluding the extension header ( therefore zero is a valid length) Set the extension bit of the rtp buffer and fill in the bits and length of the extension header.
|
GstRtp
Method |
Set the marker bit on the RTP packet in buffer to marker.
|
GstRtp
Method |
Set the total buffer size to len.
|
GstRtp
Method |
Set the padding bit on the RTP packet in buffer to padding.
|
GstRtp
Method |
Set the payload type of the RTP packet in buffer to payload_type.
|
GstRtp
Method |
Set the sequence number of the RTP packet in buffer to seq.
|
GstRtp
Method |
Set the SSRC on the RTP packet in buffer to ssrc.
|
GstRtp
Method |
Set the timestamp of the RTP packet in buffer to timestamp.
|
GstRtp
Method |
Set the version of the RTP packet in buffer to version.
|
GstRtp
Method |
Check if the data pointed to by buffer is a valid RTP packet using validate_data().
|
GstRtp
Method |
Add a new packet of type to buffer.
|
GstRtp
Method |
GstRtp.rtcp_buffer_end
(Buffer buffer)
:
none
Finish buffer after being constructured.
|
GstRtp
Method |
Initialize a new GstRTCPPacket pointer that points to the first packet in
|
GstRtp
Method |
Get the number of RTCP packets in buffer.
|
GstRtp
Method |
Create a new buffer for constructing RTCP packets.
|
GstRtp
Method |
Create a new buffer and set the data to a copy of len bytes of data and the size to len.
|
GstRtp
Method |
Create a new buffer and set the data and size of the buffer to data and len respectively.
|
GstRtp
Method |
Check if the data pointed to by buffer is a valid RTCP packet using gst_rtcp_buffer_validate_data().
|
GstRtp.BaseRTPDepayload
Method |
push
(Buffer out_buf)
:
Gst.FlowReturn
Push out_buf to the peer of filter.
|
GstRtp.BaseRTPDepayload
Method |
Push out_buf to the peer of filter.
|
GstRtp.BaseRTPPayload
Method |
push
(Buffer buffer)
:
Gst.FlowReturn
Push buffer to the peer element of the payloader.
|
GstTag
Method |
GstTag.image_data_to_image_buffer
(String image_data, Number image_data_len, TagImageType image_type)
:
Gst.Buffer
Helper function for tag-reading plugins to create a GstBuffer suitable to add to a GstTagList as an image tag (such as GST_TAG_IMAGE or GST_TAG_PREVIEW_IMAGE) from the encoded image data and an (optional) image type.
|
GstTag
Method |
GstTag.list_from_vorbiscomment_buffer
(Buffer buffer, String id_data, Number id_data_length, Array vendor_string)
:
Gst.TagList
Creates a new tag list that contains the information parsed out of a vorbiscomment packet.
|
GstTag
Method |
Parse a xmp packet into a taglist.
|
GstTag
Method |
GstTag.list_to_vorbiscomment_buffer
(TagList list, String id_data, Number id_data_length, String vendor_string)
:
Gst.Buffer
Creates a new vorbiscomment buffer from a tag list.
|
GstTag
Method |
Formats a taglist as a xmp packet.
|