Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
preview.cpp
Go to the documentation of this file.
1/*
2 Preview(Asset) - alternative version of the media data, probably with lower resolution
3
4 Copyright (C)
5 2008, Hermann Vosseler <Ichthyostega@web.de>
6
7  **Lumiera** is free software; you can redistribute it and/or modify it
8  under the terms of the GNU General Public License as published by the
9  Free Software Foundation; either version 2 of the License, or (at your
10  option) any later version. See the file COPYING for further details.
11
12* *****************************************************************/
13
14
21
22namespace steam {
23namespace asset {
24
25
26 namespace {
32 const Asset::Ident
34 {
35 string name (mediaref.name + "-proxy"); // TODO something sensible here; append number, sanitise etc.
36 Category category (mediaref.category);
37 TODO ("put it in another subfolder within the same category??");
38 return Asset::Ident (name, category,
39 mediaref.org,
40 mediaref.version );
41 }
42 }//(End)implementation helper
43
44
45
52 : Unknown (createProxyIdent (mediaref.ident),
53 mediaref.getFilename(),
54 mediaref.getLength())
55 {
56 this->defineDependency (mediaref);
57 UNIMPLEMENTED ("do something to setup proxy media");
58 }
59
60
61
62
63}} // namespace asset
void defineDependency(PAsset parent)
establish a connection between this and the given parent asset, denoting we are in some way dependent...
Definition asset.cpp:183
Tree like classification of Assets.
Definition category.hpp:68
key abstraction: media-like assets
Definition media.hpp:64
Preview(Media &mediaref)
create a preview placeholder ("proxy media") for the given media asset.
Definition preview.cpp:51
Placeholder Asset for unknown or unavailable media source.
Definition unknown.hpp:46
const Asset::Ident createProxyIdent(const Asset::Ident &mediaref)
Definition preview.cpp:33
The asset subsystem of the Steam-Layer.
Steam-Layer implementation namespace root.
Placeholder "proxy" Asset.
a POD comprised of all the information sufficiently identifying any given Asset.
Definition asset.hpp:147
asset::Category category
primary tree like classification of the asset.
Definition asset.hpp:156
string name
element ID, comprehensible but sanitised.
Definition asset.hpp:151
const uint version
version number of the thing or concept represented by this asset.
Definition asset.hpp:171
const string org
origin or authorship id.
Definition asset.hpp:163