provide for the GAVL impl facade to be registered as basic media type.

WIP actual implementation missing...
This commit is contained in:
Fischlurch 2008-09-24 06:36:35 +02:00
parent 83b574bdea
commit f80d0a49bd
2 changed files with 24 additions and 11 deletions

View file

@ -1,5 +1,5 @@
/* /*
STypeManager - entry point for dealing with media stream types ImplFacadeGAVL - facade for integrating the GAVL media handling library
Copyright (C) Lumiera.org Copyright (C) Lumiera.org
2008, Hermann Vosseler <Ichthyostega@web.de> 2008, Hermann Vosseler <Ichthyostega@web.de>
@ -23,6 +23,7 @@
#include "proc/lumiera.hpp" #include "proc/lumiera.hpp"
#include "lib/external/libgavl.hpp" #include "lib/external/libgavl.hpp"
#include "proc/control/stypemanager.hpp"
extern "C" { extern "C" {
#include <gavl/gavl.h> #include <gavl/gavl.h>
@ -32,10 +33,23 @@ extern "C" {
namespace lib { namespace lib {
namespace external { namespace external {
namespace { // implementation internals using control::STypeManager;
using control::ON_STREAMTYPES_RESET;
using lumiera::LifecycleHook;
void
provide_GAVL_stream_implementation_types ()
{
STypeManager& typeManager = STypeManager::instance();
UNIMPLEMENTED ("wire up a ImplFacade for GAVL implemented media streams");
}
namespace { // internal functionality
LifecycleHook _register_gavl_types_ (ON_STREAMTYPES_RESET, &provide_GAVL_stream_implementation_types);
} }
/** /**
* Use an type information struct, which actually has to be * Use an type information struct, which actually has to be
* a GAVL frametype (TODO), to wire up an ImplFacade such * a GAVL frametype (TODO), to wire up an ImplFacade such
@ -52,7 +66,6 @@ namespace lib {
} // namespace external } // namespace external
} // namespace lib } // namespace lib

View file

@ -45,7 +45,9 @@ namespace lib {
/** /**
* Concrete media lib implementation facade * Concrete media lib implementation facade
* allowing to work with GAVL data frames and types * allowing to work with GAVL data frames and types
* in an implementation agnostic way * in an implementation agnostic way.
* @note GAVL types are automagically registered into the
* control::STypeManager on reset and thus are always available.
*/ */
class ImplFacadeGAVL class ImplFacadeGAVL
: public ImplFacade : public ImplFacade
@ -80,8 +82,6 @@ namespace lib {
}; };
////////////////////////////////////TODO: dafür sorgen, daß sich das beim Systemstart in den control::STypeManger einklinkt!!!!!!!!
} // namespace external } // namespace external