mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-29 23:11:01 +00:00
d9e727050c
Unlike webpdec from -bad, this element inherits from GstElement and can decode animated webp data.
16 lines
499 B
Python
16 lines
499 B
Python
import os
|
|
|
|
DIRS = ['audio', 'generic', 'net', 'text', 'utils', 'video']
|
|
# Plugins whose name is prefixed by 'rs'
|
|
RS_PREFIXED = ['audiofx', 'closedcaption', 'dav1d', 'file', 'json', 'regex', 'webp']
|
|
OVERRIDE = {'wrap': 'rstextwrap', 'flavors': 'rsflv'}
|
|
|
|
|
|
def iterate_plugins():
|
|
for d in DIRS:
|
|
for name in os.listdir(d):
|
|
if name in RS_PREFIXED:
|
|
name = "rs{}".format(name)
|
|
else:
|
|
name = OVERRIDE.get(name, name)
|
|
yield name
|