Welcome to mirror list, hosted at ThFree Co, Russian Federation.

utils.py « ci - github.com/sdroege/gst-plugin-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7775355164b30310a39be9ed1c9487cfa7185e34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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'}


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