gst-plugins-rs/ci/utils.py
Guillaume Desmottes 4576bea10c add textahead plugin
Plugin displaying upcoming text buffers ahead.
2022-01-12 08:47:23 +01:00

17 lines
536 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', 'ahead': 'textahead'}
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