gst-plugins-rs/ci/utils.py
Thibault Saunier 39c0dcb0d4 Plug webrtc in
2022-10-20 11:51:58 +02:00

22 lines
669 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', 'onvif', 'regex', 'webp']
OVERRIDE = {'wrap': 'rstextwrap', 'flavors': 'rsflv',
'ahead': 'textahead', 'tracers': 'rstracers',
'webrtc-http': 'webrtchttp',
'webrtc': 'rswebrtc'
}
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