mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
elementfactory: add GST_ELEMENT_FACTORY_TYPE_HARDWARE
This new symbol matches with the elements within "Hardware" class.
This commit is contained in:
parent
0ca0a9d982
commit
9707db909d
2 changed files with 5 additions and 0 deletions
|
@ -743,6 +743,9 @@ gst_element_factory_list_is_type (GstElementFactory * factory,
|
||||||
if (!res && (type & GST_ELEMENT_FACTORY_TYPE_ENCRYPTOR))
|
if (!res && (type & GST_ELEMENT_FACTORY_TYPE_ENCRYPTOR))
|
||||||
res = (strstr (klass, "Encryptor") != NULL);
|
res = (strstr (klass, "Encryptor") != NULL);
|
||||||
|
|
||||||
|
if (!res && (type & GST_ELEMENT_FACTORY_TYPE_HARDWARE))
|
||||||
|
res = (strstr (klass, "Hardware") != NULL);
|
||||||
|
|
||||||
/* Filter by media type now, we only test if it
|
/* Filter by media type now, we only test if it
|
||||||
* matched any of the types above or only checking the media
|
* matched any of the types above or only checking the media
|
||||||
* type was requested. */
|
* type was requested. */
|
||||||
|
|
|
@ -105,6 +105,7 @@ gboolean gst_element_register (GstPlugin *plug
|
||||||
* @GST_ELEMENT_FACTORY_TYPE_DEPAYLOADER: Depayloader elements
|
* @GST_ELEMENT_FACTORY_TYPE_DEPAYLOADER: Depayloader elements
|
||||||
* @GST_ELEMENT_FACTORY_TYPE_DECRYPTOR: Elements handling decryption (Since: 1.6)
|
* @GST_ELEMENT_FACTORY_TYPE_DECRYPTOR: Elements handling decryption (Since: 1.6)
|
||||||
* @GST_ELEMENT_FACTORY_TYPE_ENCRYPTOR: Elements handling encryption (Since: 1.6)
|
* @GST_ELEMENT_FACTORY_TYPE_ENCRYPTOR: Elements handling encryption (Since: 1.6)
|
||||||
|
* @GST_ELEMENT_FACTORY_TYPE_HARDWARE: Hardware based elements (Since: 1.18)
|
||||||
* @GST_ELEMENT_FACTORY_TYPE_MAX_ELEMENTS: Private, do not use
|
* @GST_ELEMENT_FACTORY_TYPE_MAX_ELEMENTS: Private, do not use
|
||||||
* @GST_ELEMENT_FACTORY_TYPE_MEDIA_VIDEO: Elements handling video media types
|
* @GST_ELEMENT_FACTORY_TYPE_MEDIA_VIDEO: Elements handling video media types
|
||||||
* @GST_ELEMENT_FACTORY_TYPE_MEDIA_AUDIO: Elements handling audio media types
|
* @GST_ELEMENT_FACTORY_TYPE_MEDIA_AUDIO: Elements handling audio media types
|
||||||
|
@ -139,6 +140,7 @@ typedef guint64 GstElementFactoryListType;
|
||||||
#define GST_ELEMENT_FACTORY_TYPE_FORMATTER ((GstElementFactoryListType)(G_GUINT64_CONSTANT (1) << 9))
|
#define GST_ELEMENT_FACTORY_TYPE_FORMATTER ((GstElementFactoryListType)(G_GUINT64_CONSTANT (1) << 9))
|
||||||
#define GST_ELEMENT_FACTORY_TYPE_DECRYPTOR ((GstElementFactoryListType)(G_GUINT64_CONSTANT (1) << 10))
|
#define GST_ELEMENT_FACTORY_TYPE_DECRYPTOR ((GstElementFactoryListType)(G_GUINT64_CONSTANT (1) << 10))
|
||||||
#define GST_ELEMENT_FACTORY_TYPE_ENCRYPTOR ((GstElementFactoryListType)(G_GUINT64_CONSTANT (1) << 11))
|
#define GST_ELEMENT_FACTORY_TYPE_ENCRYPTOR ((GstElementFactoryListType)(G_GUINT64_CONSTANT (1) << 11))
|
||||||
|
#define GST_ELEMENT_FACTORY_TYPE_HARDWARE ((GstElementFactoryListType)(G_GUINT64_CONSTANT (1) << 12))
|
||||||
|
|
||||||
#define GST_ELEMENT_FACTORY_TYPE_MAX_ELEMENTS ((GstElementFactoryListType)(G_GUINT64_CONSTANT (1) << 48))
|
#define GST_ELEMENT_FACTORY_TYPE_MAX_ELEMENTS ((GstElementFactoryListType)(G_GUINT64_CONSTANT (1) << 48))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue