65 globalDesc.
length.
accept (Mutation::changeDuration(length));
72 channels.push_back (
ChanDesc (name,
id, genH()));
95 (*this)[
"test-1"].globalLength(LENGTH_TestClip).channel(
"video",
"ID");
97 (*this)[
"test-2"].globalLength(LENGTH_TestClip).channel(
"video",
"H264")
98 .channel(
"audio-L",
"PCM")
99 .channel(
"audio-R",
"PCM");
100 (*this)[
"test-3"].globalLength(LENGTH_TestClip).channel(
"audio",
"PCM");
101 (*this)[
"test-4"].globalLength(LENGTH_TestClip).channel(
"audio-W",
"PCM")
102 .channel(
"audio-X",
"PCM")
103 .channel(
"audio-Y",
"PCM")
104 .channel(
"audio-Z",
"PCM");
111 const_iterator i = find (key);
127 throw Invalid (
"empty filename passed to MediaAccessFacade.");
129 if (!testCases().known(name))
130 throw Invalid (
"unable to use media file \""+name+
"\"."
131 "Hint: you're using a test-mock file access, "
132 "which responds only to some magical names.");
134 return testCases()[name].globalDesc;
141 Response
const& res (*
reinterpret_cast<Response*
> (&h));
143 if (res.channels.size() <= chanNo)
146 return res.channels[chanNo];
Access point to singletons and other kinds of dependencies designated by type.
Duration is the internal Lumiera time metric.
void accept(Mutation const &)
Interface: an opaque change imposed onto some time value.
Derived specific exceptions within Lumiera's exception hierarchy.
Singleton services and Dependency Injection.
Modifying time and timecode values.
const Duration LENGTH_TestClip(Time(0, 25, 0, 0))
Test runner and basic definitions for tests.
bool isnil(lib::time::Duration const &dur)
MediaAccessFacade::ChanHandle ChanHandle
Vault-Layer implementation namespace root.
Description of one channel found in a media file; result of querying the channel.
Marker types to indicate a literal string and a Symbol.
A stub implementation of the Clip interface for unit testing.
Tiny helper functions and shortcuts to be used everywhere Consider this header to be effectively incl...