~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Open Mash Cross Reference
mash/fx/renderer-dali.h

Component: ~ [ mash ] ~ [ apps ] ~ [ gsm ] ~ [ lib ] ~ [ otcl ] ~ [ srm ] ~ [ tcl8.3 ] ~ [ tclcl ] ~ [ tk8.3 ] ~ [ tutorials ] ~

  1 /*
  2  * renderer-dali.h --
  3  *
  4  *      A Dali-object "renderer": it gets a frame, transforms it into 
  5  *      a set of Dali-like structures, and calls the effect implementation
  6  *
  7  * Copyright (c) 1993-2001 The Regents of the University of California.
  8  * All rights reserved.
  9  *
 10  * Redistribution and use in source and binary forms, with or without
 11  * modification, are permitted provided that the following conditions are met:
 12  *
 13  * A. Redistributions of source code must retain the above copyright notice,
 14  *    this list of conditions and the following disclaimer.
 15  * B. Redistributions in binary form must reproduce the above copyright notice,
 16  *    this list of conditions and the following disclaimer in the documentation
 17  *    and/or other materials provided with the distribution.
 18  * C. Neither the names of the copyright holders nor the names of its
 19  *    contributors may be used to endorse or promote products derived from this
 20  *    software without specific prior written permission.
 21  *
 22  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS
 23  * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
 24  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 25  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE
 26  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 27  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 28  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 29  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 30  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 31  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 32  * POSSIBILITY OF SUCH DAMAGE.
 33  */
 34 
 35 /* @(#) $Header: /usr/mash/src/repository/mash/mash-1/fx/renderer-dali.h,v 1.3 2002/07/18 08:10:47 weitsang Exp $ */
 36 
 37 
 38 #ifndef renderer_dali_h
 39 #define renderer_dali_h
 40 
 41 
 42 #include <stdlib.h>
 43 #include "renderer.h"
 44 #include "vw.h"
 45 #include "rv.h"
 46 
 47 #include "tclcl.h"
 48 #include "module.h"
 49 #include "mid/vidreps.h"
 50 #include "fx/effects/effect-module.h"
 51 
 52 
 53 class DaliRenderer : public Renderer {
 54 public:
 55         DaliRenderer(bool editable);
 56         virtual int command(int argc, const char*const* argv);
 57         inline virtual void recv(Buffer* bp, int codec, int quality) {
 58                 recv (bp);
 59         };
 60 
 61 protected:
 62         virtual void recv(Buffer*);
 63         virtual void resize(int w, int h);
 64         virtual void render(const u_char* frm, int off, int x,
 65                         int w, int h) {};
 66         virtual void push(const u_char* frm, int miny, int maxy,
 67                         int minx, int maxx) {};
 68 
 69         // input_id_ stores to which effect input our frames will be delivered
 70         //      in multiple-inputs effects
 71         int input_id_;
 72 
 73         // redefinition of target_ to permit dispatching recv(frame, input_id, 
 74         //      editable)
 75         EffectModule *target_;
 76 
 77         // bool stating whether the frame is editable
 78         bool editable_;
 79 };
 80 
 81 
 82 #endif
 83 
 84 
 85 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.