Import line: | Gst = imports.gi.Gst; |
GIR File: | Gst-0.10.gir |
C documentation: | GstCaps |
Struct : | Caps |
Show / Hide Inherited methods, properties and signals |
Properties | Defined By | |
---|---|---|
_gst_reserved : Array
|
Gst.Caps | |
flags : Gst.CapsFlags
|
Gst.Caps | |
refcount : Number
|
Gst.Caps | |
structs : GLib.PtrArray
|
Gst.Caps | |
type : Number
|
Gst.Caps |
Method / Constructor | Defined By | |
---|---|---|
new Gst.Caps
()
Create a new Gst.Caps
Create a new Gst.Caps
|
||
new Gst.Caps.any
()
:
Gst.Caps
Create a new Gst.Caps
Create a new Gst.Caps
|
||
new Gst.Caps.empty
()
:
Gst.Caps
Create a new Gst.Caps
Create a new Gst.Caps
|
||
append
(Caps caps2)
:
none
Appends the structures contained in caps2 to caps1.
Appends the structures contained in caps2 to caps1. The structures in freed. If either caps is ANY, the resulting caps will be ANY.
|
Gst.Caps | |
append_structure
(Structure structure)
:
none
Appends structure to caps.
Appends structure to caps. The structure is not copied; caps becomes the owner of structure.
|
Gst.Caps | |
Gst.Caps | ||
copy
()
:
Gst.Caps
Creates a new GstCaps as a copy of the old caps.
Creates a new GstCaps as a copy of the old caps. The new caps will have a refcount of 1, owned by the caller. The structures are copied as well. Note that this function is the semantic equivalent of a gst_caps_ref() followed by a gst_caps_make_writable(). If you only want to hold on to a reference to the data, you should use gst_caps_ref(). When you are finished with the caps, call gst_caps_unref() on it.
|
Gst.Caps | |
Gst.Caps | ||
do_simplify
()
:
Boolean
Modifies the given caps inplace into a representation that represents the same set of formats, but in a simpler form.
Modifies the given caps inplace into a representation that represents the same set of formats, but in a simpler form. Component structures that are identical are merged. Component structures that have values that can be merged are also merged.
|
Gst.Caps | |
get_size
()
:
Number
Gets the number of structures contained in caps.
Gets the number of structures contained in caps.
|
Gst.Caps | |
get_structure
(Number index)
:
Gst.Structure
Finds the structure in caps that has the index index, and returns it.
Finds the structure in caps that has the index index, and returns it. non-const GstStructure *. This is for programming convenience -- the caller should be aware that structures inside a constant GstCaps should not be modified. However, if you know the caps are writable, either because you have just copied them or made them writable with gst_caps_make_writable(), you may modify the structure returned in the usual way, e.g. with functions like gst_structure_set(). You do not need to free or unref the structure returned, it belongs to the GstCaps.
|
Gst.Caps | |
Gst.Caps | ||
A given GstCaps structure is always compatible with another if every media format that is in the first is also contained in the second.
|
Gst.Caps | |
is_any
()
:
Boolean
Determines if caps represents any media format.
Determines if caps represents any media format.
|
Gst.Caps | |
is_empty
()
:
Boolean
Determines if caps represents no media formats.
Determines if caps represents no media formats.
|
Gst.Caps | |
Checks if the given caps represent the same set of caps.
Checks if the given caps represent the same set of caps.
|
Gst.Caps | |
Gst.Caps | ||
is_fixed
()
:
Boolean
Fixed GstCaps describe exactly one format, that is, they have exactly one structure, and each field in the structure describes a fixed type.
Fixed GstCaps describe exactly one format, that is, they have exactly one structure, and each field in the structure describes a fixed type. Examples of non-fixed types are GST_TYPE_INT_RANGE and GST_TYPE_LIST.
|
Gst.Caps | |
Checks if all caps represented by subset are also represented by superset.
|
Gst.Caps | |
make_writable
()
:
Gst.Caps
Returns a writable copy of caps.
Returns a writable copy of caps. If there is only one reference count on caps, the caller must be the owner, and so this function will return the caps object unchanged. If on the other hand there is more than one reference on the object, a new caps object will be returned. The caller's reference on caps will be removed, and instead the caller will own a reference to the returned object. In short, this function unrefs the caps in the argument and refs the caps that it returns. Don't access the argument after calling this function. See
|
Gst.Caps | |
merge
(Caps caps2)
:
none
Appends the structures contained in caps2 to caps1 if they are not yet expressed by caps1.
Appends the structures contained in caps2 to caps1 if they are not yet expressed by caps1. The structures in caps2 are not copied -- they are transferred to caps1, and then caps2 is freed. If either caps is ANY, the resulting caps will be ANY.
|
Gst.Caps | |
merge_structure
(Structure structure)
:
none
Appends structure to caps if its not already expressed by caps.
Appends structure to caps if its not already expressed by caps. The structure is not copied; caps becomes the owner of structure.
|
Gst.Caps | |
normalize
()
:
Gst.Caps
Creates a new GstCaps that represents the same set of formats as
Creates a new GstCaps that represents the same set of formats as
|
Gst.Caps | |
remove_structure
(Number idx)
:
none
removes the stucture with the given index from the list of structures contained in caps.
removes the stucture with the given index from the list of structures contained in caps.
|
Gst.Caps | |
replace
(Caps newcaps)
:
none
Replaces *caps with newcaps.
Replaces *caps with newcaps. Unrefs the GstCaps in the location pointed to by caps, if applicable, then modifies caps to point to This function does not take any locks so you might want to lock the object owning caps pointer.
|
Gst.Caps | |
save_thyself
(Node parent)
:
libxml2.Node
Serializes a GstCaps to XML and adds it as a child node of parent.
Serializes a GstCaps to XML and adds it as a child node of parent.
|
Gst.Caps | |
Sets the given field on all structures of caps to the given value.
Sets the given field on all structures of caps to the given value. This is a convenience function for calling gst_structure_set_value() on all structures of caps.
|
Gst.Caps | |
Gst.Caps | ||
to_string
()
:
String
Converts caps to a string representation.
Converts caps to a string representation. This string representation can be converted back to a GstCaps by gst_caps_from_string(). For debugging purposes its easier to do something like this: |[ GST_LOG ("caps are %" GST_PTR_FORMAT, caps); ]| This prints the caps in human readble form.
|
Gst.Caps | |
truncate
()
:
none
Destructively discard all but the first structure from caps.
Destructively discard all but the first structure from caps. Useful when fixating. caps must be writable.
|
Gst.Caps | |
Gst.Caps |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
Gst
Method |
Converts caps from a string representation.
|
Gst
Method |
Creates a GstCaps from its XML serialization.
|
Gst
Method |
Gst.type_find_register
(Plugin plugin, String name, Number rank, Function func, Array extensions, Caps possible_caps, void* data, Function data_notify)
:
Boolean
Registers a new typefind function to be used for typefinding.
|
Gst
Method |
Gets the contents of value.
|
Gst
Method |
Sets the contents of value to caps.
|
Gst.Buffer
Method |
get_caps
()
:
Gst.Caps
Gets the media type of the buffer.
|
Gst.Buffer
Method |
set_caps
(Caps caps)
:
none
Sets the media type on the buffer.
|
Gst.Element
Method |
Looks for an unlinked pad to which the given pad can link.
|
Gst.Element
Method |
Links src to dest using the given caps as filtercaps.
|
Gst.Element
Method |
Links the two named pads of the source and destination elements.
|
Gst.ElementFactory
Method |
Checks if the factory can source the given capability.
|
Gst.ElementFactory
Method |
Checks if the factory can sink the given capability.
|
Gst.Pad
Property |
caps : Gst.Caps
read only
|
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 |
get_pad_template_caps
()
:
Gst.Caps
Gets the capabilities for pad's template.
|
Gst.Pad
Method |
get_caps_reffed
()
:
Gst.Caps
Gets the capabilities this pad can produce or consume.
|
Gst.Pad
Method |
get_caps
()
:
Gst.Caps
Gets the capabilities this pad can produce or consume.
|
Gst.Pad
Method |
fixate_caps
(Caps caps)
:
none
Fixate a caps on the given pad.
|
Gst.Pad
Method |
Check if the given pad accepts the caps.
|
Gst.Pad
Method |
Sets the capabilities of this pad.
|
Gst.Pad
Method |
peer_get_caps_reffed
()
:
Gst.Caps
Gets the capabilities of the peer connected to this pad.
|
Gst.Pad
Method |
peer_get_caps
()
:
Gst.Caps
Gets the capabilities of the peer connected to this pad.
|
Gst.Pad
Method |
Check if the peer of pad accepts caps.
|
Gst.Pad
Method |
get_allowed_caps
()
:
Gst.Caps
Gets the capabilities of the allowed media types that can flow through The allowed capabilities is calculated as the intersection of the results of calling gst_pad_get_caps() on pad and its peer.
|
Gst.Pad
Method |
get_negotiated_caps
()
:
Gst.Caps
Gets the capabilities of the media type that currently flows through pad and its peer.
|
Gst.Pad
Method |
get_fixed_caps_func
()
:
Gst.Caps
A helper function you can use as a GetCaps function that will return the currently negotiated caps or the padtemplate when NULL.
|
Gst.Pad
Method |
proxy_getcaps
()
:
Gst.Caps
Calls gst_pad_get_allowed_caps() for every other pad belonging to the same element as pad, and returns the intersection of the results.
|
Gst.Pad
Method |
|
Gst.PadTemplate
Property |
caps : Gst.Caps
|
Gst.PadTemplate
Method |
new Gst.PadTemplate.c_new
(String name_template, PadDirection direction, PadPresence presence, Caps caps)
:
Gst.PadTemplate
Create a new Gst.PadTemplate
|
Gst.PadTemplate
Method |
get_caps
()
:
Gst.Caps
Gets the capabilities of the pad template.
|
Gst.StaticCaps
Method |
get
()
:
Gst.Caps
Converts a GstStaticCaps to a GstCaps.
|
Gst.StaticPadTemplate
Method |
get_caps
()
:
Gst.Caps
Gets the capabilities of the static pad template.
|
Gst.TypeFind
Method |
If a GstTypeFindFunction calls this function it suggests the caps with the given probability.
|
Gst.TypeFindFactory
Method |
get_caps
()
:
Gst.Caps
Gets the GstCaps associated with a typefind factory.
|
GstApp.AppSink
Property |
caps : Gst.Caps
|
GstApp.AppSink
Method |
set_caps
(Caps caps)
:
none
Set the capabilities on the appsink element.
|
GstApp.AppSink
Method |
get_caps
()
:
Gst.Caps
Get the configured caps on appsink.
|
GstApp.AppSrc
Property |
caps : Gst.Caps
|
GstApp.AppSrc
Method |
set_caps
(Caps caps)
:
none
Set the capabilities on the appsrc element.
|
GstApp.AppSrc
Method |
get_caps
()
:
Gst.Caps
Get the configured caps on appsrc.
|
GstAudio
Method |
GstAudio.set_caps_channel_positions_list
(Caps caps, AudioChannelPosition pos, Number num_positions)
:
none
Sets a (possibly non-fixed) list of possible audio channel positions (given in pos) on the given caps.
|
GstAudio.RingBuffer
Method |
Parse caps into spec.
|
GstBase
Method |
Tries to find what type of data is flowing from the given source GstPad.
|
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
Method |
Tries to find the best GstCaps associated with extension.
|
GstBase
Method |
GstBase.type_find_helper_get_range
(Object obj, Function func, Number size, TypeFindProbability prob)
:
Gst.Caps
Utility function to do pull-based typefinding.
|
GstBase
Method |
GstBase.type_find_helper_get_range_ext
(Object obj, Function func, Number size, String extension, TypeFindProbability prob)
:
Gst.Caps
Utility function to do pull-based typefinding.
|
GstBase.BaseTransform
Method |
Instructs trans to suggest new caps upstream.
|
GstCheck
Method |
Compare two caps with gst_caps_is_equal and fail unless they are equal.
|
GstCheck
Method |
|
GstCheck
Method |
|
GstPbutils
Method |
Returns an opaque string containing all the details about the missing element to be passed to an external installer called via gst_install_plugins_async() or gst_install_plugins_sync().
|
GstPbutils
Method |
Creates a missing-plugin message for element to notify the application that a decoder element for a particular set of (fixed) caps is missing.
|
GstPbutils
Method |
Returns an opaque string containing all the details about the missing element to be passed to an external installer called via gst_install_plugins_async() or gst_install_plugins_sync().
|
GstPbutils
Method |
Creates a missing-plugin message for element to notify the application that an encoder element for a particular set of (fixed) caps is missing.
|
GstPbutils
Method |
GstPbutils.pb_utils_add_codec_description_to_tag_list
(TagList taglist, String codec_tag, Caps caps)
:
Boolean
Adds a codec tag describing the format specified by caps to taglist.
|
GstPbutils
Method |
Returns a localised (as far as this is possible) string describing the media format specified in caps, for use in error dialogs or other messages to be seen by the user.
|
GstPbutils
Method |
Returns a localised string describing an decoder for the format specified in caps, for use in error dialogs or other messages to be seen by the user.
|
GstPbutils
Method |
Returns a localised string describing an encoder for the format specified in caps, for use in error dialogs or other messages to be seen by the user.
|
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_audio_template_caps
()
:
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_iavs_template_caps
()
:
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.create_video_template_caps
()
:
Gst.Caps
|
GstRtsp.RTSPExtension
Method |
|
GstVideo
Method |
GstVideo.format_new_caps
(VideoFormat format, Number width, Number height, Number framerate_n, Number framerate_d, Number par_n, Number par_d)
:
Gst.Caps
Creates a new GstCaps object based on the parameters provided.
|
GstVideo
Method |
GstVideo.format_new_caps_interlaced
(VideoFormat format, Number width, Number height, Number framerate_n, Number framerate_d, Number par_n, Number par_d, Boolean interlaced)
:
Gst.Caps
Creates a new GstCaps object based on the parameters provided.
|
GstVideo
Method |
Determines the GstVideoFormat of caps and places it in the location pointed to by format.
|
GstVideo
Method |
Extracts whether the caps represents interlaced content or not and places it in interlaced.
|
GstVideo
Method |
Extracts the chroma site used by the caps.
|
GstVideo
Method |
Extracts the color matrix used by the caps.
|
GstVideo
Method |
Extracts the frame rate from caps and places the values in the locations pointed to by fps_n and fps_d.
|
GstVideo
Method |
Extracts the pixel aspect ratio from caps and places the values in the locations pointed to by par_n and par_d.
|