2000-02-17 22:50:28 +00:00
|
|
|
/* Gnome-Streamer
|
|
|
|
* Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library 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
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this library; if not, write to the
|
|
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
* Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef __GST_META_VIDEORAW_H__
|
|
|
|
#define __GST_META_VIDEORAW_H__
|
|
|
|
|
2000-03-03 22:13:00 +00:00
|
|
|
#include <gst/gst.h>
|
|
|
|
#include <gdk/gdk.h>
|
2000-02-17 22:50:28 +00:00
|
|
|
#include <gst/gstmeta.h>
|
2000-04-02 21:36:54 +00:00
|
|
|
#include <libs/colorspace/gstcolorspace.h>
|
2000-02-17 22:50:28 +00:00
|
|
|
|
|
|
|
typedef struct _MetaVideoRaw MetaVideoRaw;
|
2000-03-03 22:13:00 +00:00
|
|
|
typedef struct _MetaDGA MetaDGA;
|
|
|
|
typedef struct _MetaOverlay MetaOverlay;
|
|
|
|
typedef struct _OverlayClip OverlayClip;
|
2000-02-17 22:50:28 +00:00
|
|
|
|
2000-03-03 22:13:00 +00:00
|
|
|
struct _OverlayClip {
|
2000-03-27 19:53:43 +00:00
|
|
|
int x1, x2, y1, y2;
|
2000-03-03 22:13:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct _MetaDGA {
|
2000-03-27 19:53:43 +00:00
|
|
|
// the base address of the screen
|
|
|
|
void *base;
|
|
|
|
// the dimensions of the screen
|
|
|
|
int swidth, sheight;
|
|
|
|
// the number of bytes in a line
|
|
|
|
int bytes_per_line;
|
2000-03-03 22:13:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct _MetaOverlay {
|
2000-03-27 19:53:43 +00:00
|
|
|
// the position of the window
|
|
|
|
int wx, wy;
|
|
|
|
// a reference to the object sending overlay change events
|
|
|
|
GtkWidget *overlay_element;
|
|
|
|
// the number of overlay regions
|
|
|
|
int clip_count;
|
|
|
|
// the overlay regions of the display window
|
|
|
|
struct _OverlayClip overlay_clip[32];
|
2000-03-13 22:13:11 +00:00
|
|
|
|
|
|
|
gint width;
|
|
|
|
gint height;
|
2000-03-03 22:13:00 +00:00
|
|
|
|
2000-03-27 19:53:43 +00:00
|
|
|
gboolean did_overlay;
|
|
|
|
gboolean fully_obscured;
|
2000-03-03 22:13:00 +00:00
|
|
|
};
|
2000-02-18 23:07:33 +00:00
|
|
|
|
2000-02-17 22:50:28 +00:00
|
|
|
struct _MetaVideoRaw {
|
|
|
|
GstMeta meta;
|
|
|
|
|
|
|
|
/* formatting information */
|
|
|
|
gint format;
|
2000-04-02 21:36:54 +00:00
|
|
|
GdkVisual *visual;
|
2000-03-03 22:13:00 +00:00
|
|
|
// dimensions of the video buffer
|
2000-02-17 22:50:28 +00:00
|
|
|
gint width;
|
|
|
|
gint height;
|
2000-03-27 19:53:43 +00:00
|
|
|
// a pointer to the overlay info if the sink supports this
|
|
|
|
MetaOverlay *overlay_info;
|
|
|
|
// a pointer to the DGA info if the sink supports this
|
|
|
|
MetaDGA *dga_info;
|
2000-02-17 22:50:28 +00:00
|
|
|
};
|
|
|
|
|
2000-03-03 22:13:00 +00:00
|
|
|
#endif /* __GST_META_VIDEORAW_H__ */
|
2000-02-17 22:50:28 +00:00
|
|
|
|