/* StreamTypeBasics(Test) - check the fundamentals of stream type information Copyright (C) Lumiera.org 2008, Hermann Vosseler This program 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. This program 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 this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * *****************************************************/ #include "common/test/run.hpp" #include "common/util.hpp" #include "proc/control/stypemanager.hpp" #include "teststreamtypes.hpp" #include using std::cout; namespace lumiera { namespace test_format { using control::STypeManager; typedef StreamType::ImplFacade const& ImplType; /******************************************************************* * @test check the basic workings of the stream type handling. * create some stream implementation data, build a * StreamType::ImplFacade from this, and derive a prototype * and a full StreamType based on this information. */ class StreamTypeBasics_test : public Test { virtual void run (Arg arg) { buildImplType (); basicImplTypeProperties (); } void buildImplType () { STypeManager& typeManager = STypeManager::instance(); gavl_video_format_t rawType = test_createRawType(); ImplType iTy (typeManager.getImpl (GAVL, rawType)); UNIMPLEMENTED ("at least preliminary implementation of the MediaImplLib interface for lib GAVL"); TODO ("how to do a simple consistency check on the returned ImplFacade? can we re-create the GAVL frame type?"); ASSERT (GAVL==iTy.libraryID); } void basicImplTypeProperties () { ImplType iTy = test_createImplType (); UNIMPLEMENTED ("get a lib descriptor"); UNIMPLEMENTED ("check the lib of the type"); UNIMPLEMENTED ("compare two types"); } }; LAUNCHER (StreamTypeBasics_test, "unit common"); } // namespace test_format } // namespace lumiera