Adjust some Copyright headers

List of years instead of a range is better
This commit is contained in:
Fischlurch 2011-02-05 20:56:51 +01:00
parent ad246ad31d
commit e73bea379c
15 changed files with 231 additions and 226 deletions

View file

@ -2,7 +2,7 @@
THREADWRAPPER.hpp - thin convenience wrapper for starting lumiera threads
Copyright (C) Lumiera.org
2008 - 2010 Hermann Vosseler <Ichthyostega@web.de>
2008, 2010 Hermann Vosseler <Ichthyostega@web.de>
Christian Thaeter <ct@pipapo.org>
This program is free software; you can redistribute it and/or

View file

@ -3,7 +3,7 @@
Copyright (C) Lumiera.org
2007-2008, Joel Holdsworth <joel@airwebreathe.org.uk>
Christian Thaeter <ct@pipapo.org>
2009, Christian Thaeter <ct@pipapo.org>
Hermann Vosseler <Ichthyostega@web.de>
This program is free software; you can redistribute it and/or
@ -199,7 +199,7 @@ extern "C" { /* ================== define an lumieraorg_Gui instance ===========
return
"Copyright (C) Lumiera.org\n"
"2007-2008, Joel Holdsworth <joel@airwebreathe.org.uk>\n"
" Christian Thaeter <ct@pipapo.org>\n"
"2009, Christian Thaeter <ct@pipapo.org>\n"
" Hermann Vosseler <Ichthyostega@web.de>";
}
)

View file

@ -21,6 +21,8 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/** @file gdkdisplayer.hpp
** This file contains the definition of XvDisplayer, the XVideo
** video output implementation
@ -28,10 +30,10 @@
** @see displayer.hpp
*/
#include "displayer.hpp"
#ifndef GUI_OUTPUT_GDKDISPLAYER_H
#define GUI_OUTPUT_GDKDISPLAYER_H
#ifndef GDKDISPLAYER_HPP
#define GDKDISPLAYER_HPP
#include "displayer.hpp"
namespace Gtk {
class Widget;
@ -44,46 +46,47 @@ namespace output {
* GdkDisplayer is a class which is responsible for rendering a video
* image via GDK.
*/
class GdkDisplayer : public Displayer
{
public:
/**
* Constructor
* @param[in] drawing_area The widget into which the video image will
* be drawn. This value must not be NULL.
* @param[in] width The width of the video image in pixels. This value
* must be greater than zero.
* @param[in] height The height of the video image in pixels. This
* value must be greater than zero.
*/
GdkDisplayer( Gtk::Widget *drawing_area, int width, int height );
/**
* Put an image of a given width and height with the expected input
* format (as indicated by the format method).
* @param[in] image The video image array to draw.
*/
void put( const void* image );
protected:
/**
* Indicates if this object can be used to render images on the
* running system.
*/
bool usable();
private:
/**
* The widget that video will be drawn into.
* @remarks This value must be a valid pointer.
*/
Gtk::Widget *drawingArea;
};
} // namespace output
} // namespace gui
class GdkDisplayer
: public Displayer
{
public:
/**
* Constructor
* @param[in] drawing_area The widget into which the video image will
* be drawn. This value must not be NULL.
* @param[in] width The width of the video image in pixels. This value
* must be greater than zero.
* @param[in] height The height of the video image in pixels. This
* value must be greater than zero.
*/
GdkDisplayer( Gtk::Widget *drawing_area, int width, int height );
/**
* Put an image of a given width and height with the expected input
* format (as indicated by the format method).
* @param[in] image The video image array to draw.
*/
void put( const void* image );
protected:
/**
* Indicates if this object can be used to render images on the
* running system.
*/
bool usable();
private:
/**
* The widget that video will be drawn into.
* @remarks This value must be a valid pointer.
*/
Gtk::Widget *drawingArea;
};
}} // namespace gui::output
#endif // GDKDISPLAYER_HPP

View file

@ -21,6 +21,8 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/** @file xvdisplayer.hpp
** This file contains the definition of XvDisplayer, the XVideo
** video output implementation
@ -28,6 +30,10 @@
** @see displayer.hpp
*/
#ifndef GUI_OUTPUT_XVDISPLAYER_H
#define GUI_OUTPUT_XVDISPLAYER_H
#include <X11/Xlib.h>
#include <sys/ipc.h>
#include <sys/shm.h>
@ -36,8 +42,6 @@
#include "displayer.hpp"
#ifndef XVDISPLAYER_HPP
#define XVDISPLAYER_HPP
namespace Gtk {
class Widget;
@ -50,88 +54,86 @@ namespace output {
* XvDisplayer is a class which is responsible for rendering a video
* image via XVideo.
*/
class XvDisplayer : public Displayer
{
public:
/**
* Constructor
* @param drawing_area The widget into which the video image will be
* drawn. This value must not be NULL.
* @param width The width of the video image in pixels. This value
* must be greater than zero.
* @param height The height of the video image in pixels. This value
* must be greater than zero.
*/
XvDisplayer( Gtk::Widget *drawing_area, int width, int height );
class XvDisplayer
: public Displayer
{
public:
/**
* Constructor
* @param drawing_area The widget into which the video image will be
* drawn. This value must not be NULL.
* @param width The width of the video image in pixels. This value
* must be greater than zero.
* @param height The height of the video image in pixels. This value
* must be greater than zero.
*/
XvDisplayer( Gtk::Widget *drawing_area, int width, int height );
~XvDisplayer();
/**
* Put an image of a given width and height with the expected input
* format (as indicated by the format method).
* @param[in] image The video image array to draw.
*/
void put( const void* image );
/**
* Indicates if this object can be used to render images on the
* running system.
*/
bool usable();
private:
/**
* Specifies whether the object is currently attached to an XVideo
* port.
* @remarks This value is false until the constructor has finished
* successfully.
*/
bool gotPort;
/**
* The current port being used.
* @remarks This value is meaningless unless gotPort is true.
*/
unsigned int grabbedPort;
/**
* The widget that video will be drawn into.
* @remarks This value must be a valid pointer.
*/
Gtk::Widget *drawingArea;
/**
* The display that video will be drawn into.
*/
Display *display;
/**
* The X11 window that video will be drawn into.
*/
Window window;
/**
* The graphics context which will be used when rendering video.
*/
GC gc;
/**
* The shared memory image object which video will be written into.
*/
XvImage *xvImage;
/**
* Info about the shared memory segment.
* @remarks shmInfo.shmaddr is set to NULL, when the SHM is detached.
*/
XShmSegmentInfo shmInfo;
};
/**
* Destructor
*/
~XvDisplayer();
/**
* Put an image of a given width and height with the expected input
* format (as indicated by the format method).
* @param[in] image The video image array to draw.
*/
void put( const void* image );
/**
* Indicates if this object can be used to render images on the
* running system.
*/
bool usable();
private:
/**
* Specifies whether the object is currently attached to an XVideo
* port.
* @remarks This value is false until the constructor has finished
* successfully.
*/
bool gotPort;
/**
* The current port being used.
* @remarks This value is meaninless unless gotPort is true.
*/
unsigned int grabbedPort;
/**
* The widget that video will be drawn into.
* @remarks This value must be a valid pointer.
*/
Gtk::Widget *drawingArea;
/**
* The display that video will be drawn into.
*/
Display *display;
/**
* The X11 window that video will be drawn into.
*/
Window window;
/**
* The graphics context which will be used when rednering video.
*/
GC gc;
/**
* The shared memory image object which video will be written into.
*/
XvImage *xvImage;
/**
* Info about the shared memory segment.
* @remarks shmInfo.shmaddr is set to NULL, when the SHM is detached.
*/
XShmSegmentInfo shmInfo;
};
} // namespace output
} // namespace gui
}} // namespace gui::output
#endif // XVDISPLAYER_HPP

View file

@ -1,5 +1,5 @@
/*
video-display-widget.cpp - Implementation of the video viewer widget
VideoDisplayWidget - Implementation of the video viewer widget
Copyright (C) Lumiera.org
2008, Joel Holdsworth <joel@airwebreathe.org.uk>
@ -20,6 +20,7 @@
* *****************************************************/
#include "gui/gtk-lumiera.hpp"
#include "gui/output/xvdisplayer.hpp"
#include "gui/output/gdkdisplayer.hpp"
@ -28,62 +29,58 @@
namespace gui {
namespace widgets {
VideoDisplayWidget::VideoDisplayWidget() :
displayer(NULL)
{
}
VideoDisplayWidget::~VideoDisplayWidget()
{
if(displayer != NULL)
delete displayer;
}
Displayer*
VideoDisplayWidget::get_displayer() const
{
return displayer;
}
void
VideoDisplayWidget::on_realize()
{
// Call base class:
Gtk::Widget::on_realize();
// Set colors
modify_bg(Gtk::STATE_NORMAL, Gdk::Color("black"));
if(displayer != NULL)
delete displayer;
displayer = createDisplayer(this, 320, 240);
add_events(Gdk::ALL_EVENTS_MASK);
}
Displayer*
VideoDisplayWidget::createDisplayer( Gtk::Widget *drawingArea, int width, int height )
{
REQUIRE(drawingArea != NULL);
REQUIRE(width > 0 && height > 0);
Displayer *displayer = NULL;
VideoDisplayWidget::VideoDisplayWidget ( )
: displayer (NULL)
{ }
displayer = new XvDisplayer( drawingArea, width, height );
if ( !displayer->usable() )
{
delete displayer;
displayer = NULL;
}
if ( displayer == NULL )
{
displayer = new GdkDisplayer( drawingArea, width, height );
}
return displayer;
}
} // namespace widgets
} // namespace gui
VideoDisplayWidget::~VideoDisplayWidget ( )
{
if (displayer != NULL) delete displayer;
}
Displayer*
VideoDisplayWidget::get_displayer ( ) const
{
return displayer;
}
void VideoDisplayWidget::on_realize ( )
{
// Call base class:
Gtk::Widget::on_realize ();
// Set colours
modify_bg (Gtk::STATE_NORMAL, Gdk::Color ("black"));
if (displayer != NULL) delete displayer;
displayer = createDisplayer (this, 320, 240);
add_events (Gdk::ALL_EVENTS_MASK);
}
Displayer*
VideoDisplayWidget::createDisplayer (Gtk::Widget *drawingArea, int width, int height)
{
REQUIRE (drawingArea != NULL);
REQUIRE (width > 0 && height > 0);
Displayer *displayer = NULL;
displayer = new XvDisplayer (drawingArea, width, height);
if (!displayer->usable ())
{
delete displayer;
displayer = NULL;
}
if (displayer == NULL)
{
displayer = new GdkDisplayer (drawingArea, width, height);
}
return displayer;
}
}}// namespace gui::widgets

View file

@ -1,5 +1,5 @@
/*
video-display-widget.hpp - Declaration of the video viewer widget
VIDEO-DISPLAY-WIDGET.hpp - GUI widget for displaying video
Copyright (C) Lumiera.org
2008, Joel Holdsworth <joel@airwebreathe.org.uk>
@ -19,10 +19,13 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/** @file video-display-widget.hpp
** This file contains the definition of video viewer widget
*/
#ifndef VIDEO_DISPLAY_WIDGET_HPP
#define VIDEO_DISPLAY_WIDGET_HPP
@ -34,31 +37,31 @@ using namespace gui::output;
namespace gui {
namespace widgets {
class VideoDisplayWidget : public Gtk::DrawingArea
{
public:
VideoDisplayWidget();
~VideoDisplayWidget();
Displayer* get_displayer() const;
/* ===== Overrides ===== */
private:
virtual void on_realize();
/* ===== Internals ===== */
private:
static Displayer*
createDisplayer( Gtk::Widget *drawingArea, int width, int height );
private:
Displayer *displayer;
};
} // namespace widgets
} // namespace gui
class VideoDisplayWidget
: public Gtk::DrawingArea
{
public:
VideoDisplayWidget();
~VideoDisplayWidget();
Displayer* get_displayer() const;
/* ===== Overrides ===== */
private:
virtual void on_realize();
/* ===== Internals ===== */
private:
static Displayer*
createDisplayer( Gtk::Widget *drawingArea, int width, int height );
private:
Displayer *displayer;
};
}} // namespace gui::widgets
#endif // VIDEO_DISPLAY_WIDGET_HPP

View file

@ -2,7 +2,7 @@
ERROR.hpp - Lumiera Exception Interface
Copyright (C) Lumiera.org
2008-2010 Hermann Vosseler <Ichthyostega@web.de>
2008,2010 Hermann Vosseler <Ichthyostega@web.de>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as

View file

@ -2,7 +2,7 @@
main.cpp - start the Lumiera Application
Copyright (C) Lumiera.org
2007-2009, Joel Holdsworth <joel@airwebreathe.org.uk>
2007,2011, Joel Holdsworth <joel@airwebreathe.org.uk>
Christian Thaeter <ct@pipapo.org>
Hermann Vosseler <Ichthyostega@web.de>

View file

@ -2,7 +2,7 @@
STRUCT-FACTORY-IMPL.hpp - crating structural assets (impl details)
Copyright (C) Lumiera.org
2008-2010, Hermann Vosseler <Ichthyostega@web.de>
2008,2010, Hermann Vosseler <Ichthyostega@web.de>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as

View file

@ -2,7 +2,7 @@
MObjectFactory - creating concrete MObject subclass instances
Copyright (C) Lumiera.org
2008-2010, Hermann Vosseler <Ichthyostega@web.de>
2008,2010, Hermann Vosseler <Ichthyostega@web.de>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as

View file

@ -2,7 +2,7 @@
MOBJECTFACTORY.hpp - creating concrete MObject subclass instances
Copyright (C) Lumiera.org
2008-2010, Hermann Vosseler <Ichthyostega@web.de>
2008, 2010, Hermann Vosseler <Ichthyostega@web.de>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as

View file

@ -2,7 +2,7 @@
SessionElementTracker(Test) - check the facility to track and expose selected model elements
Copyright (C) Lumiera.org
2008-2010, Hermann Vosseler <Ichthyostega@web.de>
2008, 2010, Hermann Vosseler <Ichthyostega@web.de>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as

View file

@ -2,7 +2,7 @@
SessionStructure(Test) - verifying basic Session/Model structure
Copyright (C) Lumiera.org
2008-2010, Hermann Vosseler <Ichthyostega@web.de>
2008, 2011, Hermann Vosseler <Ichthyostega@web.de>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as

View file

@ -2,7 +2,7 @@
TimelineSequenceHandling(Test) - managing the top level session facade objects
Copyright (C) Lumiera.org
2008-2010, Hermann Vosseler <Ichthyostega@web.de>
2008, 2011, Hermann Vosseler <Ichthyostega@web.de>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as

View file

@ -2,7 +2,7 @@
CustomSharedPtr(Test) - ref counting, equality and comparisons
Copyright (C) Lumiera.org
2008-2010, Hermann Vosseler <Ichthyostega@web.de>
2008, 2010, Hermann Vosseler <Ichthyostega@web.de>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as