provide for the GAVL impl facade to be registered as basic media type.
WIP actual implementation missing...
This commit is contained in:
parent
83b574bdea
commit
f80d0a49bd
2 changed files with 24 additions and 11 deletions
19
src/lib/external/libgavl.cpp
vendored
19
src/lib/external/libgavl.cpp
vendored
|
|
@ -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
|
||||
2008, Hermann Vosseler <Ichthyostega@web.de>
|
||||
|
|
@ -23,6 +23,7 @@
|
|||
|
||||
#include "proc/lumiera.hpp"
|
||||
#include "lib/external/libgavl.hpp"
|
||||
#include "proc/control/stypemanager.hpp"
|
||||
|
||||
extern "C" {
|
||||
#include <gavl/gavl.h>
|
||||
|
|
@ -32,10 +33,23 @@ extern "C" {
|
|||
namespace lib {
|
||||
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
|
||||
* a GAVL frametype (TODO), to wire up an ImplFacade such
|
||||
|
|
@ -52,7 +66,6 @@ namespace lib {
|
|||
|
||||
|
||||
|
||||
|
||||
} // namespace external
|
||||
|
||||
} // namespace lib
|
||||
|
|
|
|||
6
src/lib/external/libgavl.hpp
vendored
6
src/lib/external/libgavl.hpp
vendored
|
|
@ -45,7 +45,9 @@ namespace lib {
|
|||
/**
|
||||
* Concrete media lib implementation facade
|
||||
* 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
|
||||
: public ImplFacade
|
||||
|
|
@ -80,8 +82,6 @@ namespace lib {
|
|||
};
|
||||
|
||||
|
||||
////////////////////////////////////TODO: dafür sorgen, daß sich das beim Systemstart in den control::STypeManger einklinkt!!!!!!!!
|
||||
|
||||
|
||||
} // namespace external
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue