capsfiltercapsfilter |
Properties
| GstCaps * | caps | Read / Write |
| GstCapsFilterCapsChangeMode | caps-change-mode | Read / Write |
Types and Values
| struct | GstCapsFilter |
| enum | GstCapsFilterCapsChangeMode |
Object Hierarchy
GObject ╰── GInitiallyUnowned ╰── GstObject ╰── GstElement ╰── GstBaseTransform ╰── GstCapsFilter
Description
The element does not modify data as such, but can enforce limitations on the data format.
Example launch line
1 | gst-launch-1.0 videotestsrc ! capsfilter caps=video/x-raw,format=GRAY8 ! videoconvert ! autovideosink |
Limits acceptable video from videotestsrc to be grayscale. Equivalent to
1 | gst-launch-1.0 videotestsrc ! video/x-raw,format=GRAY8 ! videoconvert ! autovideosink |
which is a short notation for the capsfilter element.
Synopsis
Element Information
| plugin | coreelements |
| author | David Schleef <ds@schleef.org> |
| class | Generic |
Element Pads
| name | sink |
| direction | sink |
| presence | always |
| details | ANY |
| name | src |
| direction | source |
| presence | always |
| details | ANY |
Functions
Types and Values
struct GstCapsFilter
struct GstCapsFilter;
The opaque GstCapsFilter data structure.
enum GstCapsFilterCapsChangeMode
Filter caps change behaviour
Members
| Only accept the current filter caps | ||
| Temporarily accept previous filter caps |
Property Details
The “caps” property
“caps” GstCaps *
Restrict the possible allowed capabilities (NULL means ANY). Setting this property takes a reference to the supplied GstCaps object.
Flags: Read / Write
The “caps-change-mode” property
“caps-change-mode” GstCapsFilterCapsChangeMode
Filter caps change behaviour.
Flags: Read / Write
Default value: Only accept the current filter caps
本文深入探讨了GStreamer中的CapsFilter元素,它不修改数据,但可以强制限制数据格式,如将视频限定为灰度。文章提供了使用示例,展示了如何通过设置属性来限制输入数据的格式。
836

被折叠的 条评论
为什么被折叠?



