30 namespace test_format {
32 using control::STypeManager;
33 typedef StreamType
const& SType;
34 typedef StreamType::ImplFacade
const& ImplType;
48 ImplType iType = buildImplType ();
49 basicImplTypeProperties (iType);
51 SType type = extend2fullType (iType);
52 basicStreamTypeProperties (type, iType);
61 ImplType iTy (typeManager.
getImpl (GAVL, rawType));
63 UNIMPLEMENTED (
"at least preliminary implementation of the MediaImplLib interface for lib GAVL");
65 TODO (
"how to do a simple consistency check on the returned ImplFacade? can we re-create the GAVL frame type?");
66 CHECK (GAVL==iTy.libraryID);
71 basicImplTypeProperties (ImplType refType)
74 CHECK (iTy2==refType);
75 CHECK (refType==iTy2);
76 TODO (
"add equality comparable concept to the ImplType class");
78 CHECK (StreamType::VIDEO==refType.getKind());
79 UNIMPLEMENTED (
"get a lib descriptor");
80 UNIMPLEMENTED (
"check the lib of the type");
81 UNIMPLEMENTED (
"compare two types");
85 extend2fullType (ImplType iTy)
91 basicStreamTypeProperties (SType type, ImplType iTy)
93 CHECK (type.implType);
94 CHECK (iTy==(*type.implType));
95 CHECK (&iTy==type.implType);
97 CHECK (!isnil (type.prototype.id));
98 CHECK (StreamType::VIDEO==type.prototype.kind);
99 CHECK (StreamType::VIDEO==type.implType->getKind());
101 CHECK (type.implType->canConvert(iTy));
102 CHECK (iTy.canConvert(type));
104 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.
Simplistic 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.