Detect: TODO other platform GPU detection

This commit is contained in:
Ross Patterson 2019-08-09 03:06:32 -07:00
parent 4e08627ef1
commit 145e57bb74

View File

@ -55,9 +55,11 @@ def detect_gpu():
"""
plat_sys = platform.system()
if plat_sys == 'Linux':
# TODO: Android and other Linux'es that don't have `lshw`
display_output = subprocess.check_output(
['lshw', '-class', 'display', '-json'])
return json.loads(display_output.decode().strip().strip(','))
# TODO Other platforms
def detect_hwaccels(hwaccels=None, cmd='ffmpeg'):