gst-plugins-rs/ci/utils.py

44 lines
671 B
Python
Raw Normal View History

import os
DIRS = [
'audio',
'generic',
'mux',
'net',
'text',
'utils',
'video',
]
# Plugins whose name is prefixed by 'rs'
RS_PREFIXED = [
'audiofx',
'closedcaption',
'file',
'onvif',
'webp',
'videofx',
'webrtc',
'png',
'tracers',
'rtp',
'rtsp',
'inter',
]
OVERRIDE = {
'ahead': 'textahead',
'flavors': 'rsflv',
'wrap': 'textwrap',
}
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