2007-09-02 18:48:22 +02:00
|
|
|
/*
|
|
|
|
|
CLIP.hpp - bookkeeping (asset) view of a media clip.
|
2010-12-17 23:28:49 +01:00
|
|
|
|
2008-03-10 04:25:03 +01:00
|
|
|
Copyright (C) Lumiera.org
|
|
|
|
|
2008, Hermann Vosseler <Ichthyostega@web.de>
|
2010-12-17 23:28:49 +01:00
|
|
|
|
2007-09-02 18:48:22 +02:00
|
|
|
This program is free software; you can redistribute it and/or
|
|
|
|
|
modify it under the terms of the GNU General Public License as
|
2010-12-17 23:28:49 +01:00
|
|
|
published by the Free Software Foundation; either version 2 of
|
|
|
|
|
the License, or (at your option) any later version.
|
|
|
|
|
|
2007-09-02 18:48:22 +02:00
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
GNU General Public License for more details.
|
2010-12-17 23:28:49 +01:00
|
|
|
|
2007-09-02 18:48:22 +02:00
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
2010-12-17 23:28:49 +01:00
|
|
|
|
2007-09-02 18:48:22 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
2017-04-02 04:22:51 +02:00
|
|
|
/** @file asset/clip.hpp
|
2016-11-08 14:18:28 +01:00
|
|
|
** Definition of Asset representation for a media clip
|
2016-11-03 18:20:10 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
2007-09-02 18:48:22 +02:00
|
|
|
#ifndef ASSET_CLIP_H
|
|
|
|
|
#define ASSET_CLIP_H
|
|
|
|
|
|
2018-11-15 23:42:43 +01:00
|
|
|
#include "steam/asset/media.hpp"
|
2007-09-02 18:48:22 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-01-16 16:34:58 +01:00
|
|
|
/////////////////////////TODO: 1/2010 very likely the handling of the clip-asset needs to be rewritten
|
|
|
|
|
|
2011-12-02 16:10:03 +01:00
|
|
|
namespace proc {
|
|
|
|
|
namespace asset {
|
|
|
|
|
|
2007-09-02 18:48:22 +02:00
|
|
|
/**
|
|
|
|
|
* bookkeeping (Asset) view of a media clip.
|
|
|
|
|
*/
|
|
|
|
|
class Clip : public Media
|
|
|
|
|
{
|
2007-10-19 22:34:07 +02:00
|
|
|
/** media source of this clip */
|
|
|
|
|
const Media& source_;
|
|
|
|
|
|
2010-01-16 16:34:58 +01:00
|
|
|
/** the corresponding (dependent) clip-MO */
|
2015-07-02 19:16:46 +02:00
|
|
|
PClip clipMO_;
|
2007-10-19 22:34:07 +02:00
|
|
|
|
|
|
|
|
public:
|
2015-07-02 19:16:46 +02:00
|
|
|
virtual PClip createClip () const;
|
2007-10-19 22:34:07 +02:00
|
|
|
|
2007-11-12 02:05:39 +01:00
|
|
|
protected:
|
2007-11-26 04:27:27 +01:00
|
|
|
Clip (Media& mediaref);
|
2007-10-19 22:34:07 +02:00
|
|
|
friend class MediaFactory;
|
|
|
|
|
|
2015-07-02 19:16:46 +02:00
|
|
|
virtual PClipAsset getClipAsset ();
|
2013-09-21 00:22:36 +02:00
|
|
|
virtual PMedia checkCompound () const;
|
2011-12-02 16:10:03 +01:00
|
|
|
|
2007-09-02 18:48:22 +02:00
|
|
|
};
|
2011-12-02 16:10:03 +01:00
|
|
|
|
2015-07-02 19:16:46 +02:00
|
|
|
typedef lib::P<const asset::Clip> PClipAsset;
|
2011-12-02 16:10:03 +01:00
|
|
|
|
|
|
|
|
const string CLIP_SUBFOLDER = "clips"; // TODO: handling of hard-wired constants....
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}} // namespace proc:asset
|
2007-09-02 18:48:22 +02:00
|
|
|
#endif
|