39 namespace test_format {
41 using control::STypeManager;
42 typedef StreamType
const& SType;
43 typedef StreamType::ImplFacade
const& ImplType;
57 ImplType iType = buildImplType ();
58 basicImplTypeProperties (iType);
60 SType type = extend2fullType (iType);
61 basicStreamTypeProperties (type, iType);
70 ImplType iTy (typeManager.
getImpl (GAVL, rawType));
72 UNIMPLEMENTED (
"at least preliminary implementation of the MediaImplLib interface for lib GAVL");
74 TODO (
"how to do a simple consistency check on the returned ImplFacade? can we re-create the GAVL frame type?");
75 CHECK (GAVL==iTy.libraryID);
80 basicImplTypeProperties (ImplType refType)
83 CHECK (iTy2==refType);
84 CHECK (refType==iTy2);
85 TODO (
"add equality comparable concept to the ImplType class");
87 CHECK (StreamType::VIDEO==refType.getKind());
88 UNIMPLEMENTED (
"get a lib descriptor");
89 UNIMPLEMENTED (
"check the lib of the type");
90 UNIMPLEMENTED (
"compare two types");
94 extend2fullType (ImplType iTy)
100 basicStreamTypeProperties (SType type, ImplType iTy)
102 CHECK (type.implType);
103 CHECK (iTy==(*type.implType));
104 CHECK (&iTy==type.implType);
106 CHECK (!isnil (type.prototype.id));
107 CHECK (StreamType::VIDEO==type.prototype.kind);
108 CHECK (StreamType::VIDEO==type.implType->getKind());
110 CHECK (type.implType->canConvert(iTy));
111 CHECK (iTy.canConvert(type));
113 CHECK (StreamType::RAW==type.intentionTag);
ImplFacade const & getImpl(Symbol libID, StreamType::Prototype const &protoType)
build or retrieve an implementation (facade) utilizing a specific MediaImplLib and implementing the g...
Steam-Layer implementation namespace root.
Interface to the stream type system.
static lib::Depend< STypeManager > instance
access the system-wide stream type manager instance.
gavl_video_format_t test_createRawType()
Helper: create an raw GAVL type descriptor usable for generating a Lumiera StreamType.
Unit test helper to create fake streamtype information.
Simple test class runner.
Tiny helper functions and shortcuts to be used everywhere Consider this header to be effectively incl...
StreamType::ImplFacade const & test_createImplType()
Helper: create an implementation frame and build the corresponding streamtype.