openh264.py (977B)
1 # This Source Code Form is subject to the terms of the Mozilla Public 2 # License, v. 2.0. If a copy of the MPL was not distributed with this 3 # file, You can obtain one at http://mozilla.org/MPL/2.0/. 4 5 6 from .registry import register_callback_action 7 from .util import create_tasks, fetch_graph_and_labels 8 9 10 @register_callback_action( 11 name="openh264", 12 title="OpenH264 Binaries", 13 symbol="h264", 14 description="Action to prepare openh264 binaries for shipping", 15 context=[], 16 ) 17 def openh264_action(parameters, graph_config, input, task_group_id, task_id): 18 decision_task_id, full_task_graph, label_to_taskid, _ = fetch_graph_and_labels( 19 parameters, graph_config 20 ) 21 to_run = [ 22 label 23 for label, entry in full_task_graph.tasks.items() 24 if "openh264" in entry.kind 25 ] 26 create_tasks( 27 graph_config, 28 to_run, 29 full_task_graph, 30 label_to_taskid, 31 parameters, 32 decision_task_id, 33 )