Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

transitions.hh

Go to the documentation of this file.
00001 /*
00002  * PIAVE - PIAVE Is A Video Editor
00003  *
00004  * Copyright (C) 2002 Rolf Dubitzky, rolf@dubitzky.de
00005  *
00006  */
00007 
00008 /*
00009  * This program is free software; you can redistribute it and/or modify
00010  * it under the terms of the GNU General Public License as published by
00011  * the Free Software Foundation; either version 2 of the License, or
00012  * (at your option) any later version.
00013  *
00014  * This program is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  * GNU General Public License for more details.
00018  *
00019  * You should have received a copy of the GNU General Public License
00020  * along with this program; if not, write to the Free Software Foundation,
00021  * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00022  */
00023 
00024 
00030 #if ! defined ( TRANSITIONS_HH )
00031 #define TRANSITIONS_HH
00032 
00033 // std++
00034 
00035 // PIAVE
00036 #include "operatorbase.hh"
00037 
00038 namespace PIAVE {
00039 
00040     class ShiftInTransition : public BinaryOp
00041     {
00042       public:
00043         ShiftInTransition();
00044 
00045         virtual void renderFrame( Frame & dest, Frame & src_a, Frame & src_b, Time t );
00046         virtual int  fixMe( int fix_lvl=0 ) { return 0; }
00047 
00048         enum Direction { 
00049             north,
00050             east,
00051             south,
00052             west  
00053         };
00054 
00055       public:
00056         Direction _from;         
00057         bool _shiftOut;            
00058     };
00059 
00060 
00064     struct PicInPicOpP : public OperatorProperty
00065     {
00066         PicInPicOpP( Time p=0 ) : OperatorProperty( p ) {};
00067         double x; 
00068         double y; 
00069         double w; 
00070         double h; 
00071     };
00072 
00073     class PicInPicOp : public BinaryPathOp<PicInPicOpP>
00074     {
00075       public:
00076         PicInPicOp();
00077         virtual void renderFrame( Frame & dest, Frame & src_a, Frame & src_b, Time t );
00078 
00079     };
00080 
00081 
00082     
00087     class OverlayOp : public BinaryOp
00088     {
00089       public:
00090         OverlayOp();
00091         virtual void renderFrame( Frame & dest, Frame & src_a, Frame & src_b, Time t );
00092         virtual int  fixMe( int fix_lvl=0 ) { WARN( "Check xy" ); return 0; }
00093     };
00094 
00095 };
00096 
00097 #endif

Generated on Tue Oct 14 20:45:37 2003 for piave by doxygen1.2.18