From 27d4ba45755a88ee8ffb3066ea40ba2715983aa6 Mon Sep 17 00:00:00 2001 From: Olivier Guilyardi Date: Tue, 1 Dec 2009 16:13:42 +0000 Subject: [PATCH] component: - add ability ro register abstract classes. These can register as implementing some interfaces, but are by default not listed by implementations() - add automatic interface-to-component __doc__ propagation, with the @interfacedoc method decorator api: - general idea: prepare for processor "pipes" high-level api - move process() into IProcessor, make it a generic method - add IProcessors methods that relate to buffersize, and input/output format - add IDecoder.nframes() - add IEffect, an interface for effect processors tests: - fix testnewcore.py - add test and examples of processors implementing the new api and component system others: - add empty Metadata class --- metadata.py | 25 +++++++++++++++++++++++++ tests/__init__.py | 0 2 files changed, 25 insertions(+) create mode 100644 metadata.py create mode 100644 tests/__init__.py diff --git a/metadata.py b/metadata.py new file mode 100644 index 0000000..86abf87 --- /dev/null +++ b/metadata.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2007-2009 Parisson +# Copyright (c) 2007 Olivier Guilyardi +# Copyright (c) 2007-2009 Guillaume Pellerin +# +# This file is part of TimeSide. + +# TimeSide is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# (at your option) any later version. + +# TimeSide is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with TimeSide. If not, see . + +class Metadata(object): + pass + + diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 0000000..e69de29 -- 2.39.5