Blame gst/smpte/gstmask.h

Packit 8ff292
/* GStreamer
Packit 8ff292
 * Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
Packit 8ff292
 *
Packit 8ff292
 * This library is free software; you can redistribute it and/or
Packit 8ff292
 * modify it under the terms of the GNU Library General Public
Packit 8ff292
 * License as published by the Free Software Foundation; either
Packit 8ff292
 * version 2 of the License, or (at your option) any later version.
Packit 8ff292
 *
Packit 8ff292
 * This library is distributed in the hope that it will be useful,
Packit 8ff292
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 8ff292
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 8ff292
 * Library General Public License for more details.
Packit 8ff292
 *
Packit 8ff292
 * You should have received a copy of the GNU Library General Public
Packit 8ff292
 * License along with this library; if not, write to the
Packit 8ff292
 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
Packit 8ff292
 * Boston, MA 02110-1301, USA.
Packit 8ff292
 */
Packit 8ff292
Packit 8ff292
Packit 8ff292
#ifndef __GST_MASK_H__
Packit 8ff292
#define __GST_MASK_H__
Packit 8ff292
Packit 8ff292
#include <gst/gst.h>
Packit 8ff292
Packit 8ff292
typedef struct _GstMask GstMask;
Packit 8ff292
typedef struct _GstMaskDefinition GstMaskDefinition;
Packit 8ff292
Packit 8ff292
typedef void            (*GstMaskDrawFunc)              (GstMask *mask);
Packit 8ff292
typedef void            (*GstMaskDestroyFunc)           (GstMask *mask);
Packit 8ff292
Packit 8ff292
struct _GstMaskDefinition {
Packit 8ff292
  gint                   type;
Packit 8ff292
  const gchar           *short_name;
Packit 8ff292
  const gchar           *long_name;
Packit 8ff292
  GstMaskDrawFunc        draw_func;
Packit 8ff292
  GstMaskDestroyFunc     destroy_func;
Packit 8ff292
  gconstpointer          user_data;
Packit 8ff292
};
Packit 8ff292
Packit 8ff292
struct _GstMask {
Packit 8ff292
  gint                   type;
Packit 8ff292
  guint32               *data;
Packit 8ff292
  gconstpointer          user_data;
Packit 8ff292
Packit 8ff292
  gint                   width;
Packit 8ff292
  gint                   height;
Packit 8ff292
  gint                   bpp;
Packit 8ff292
Packit 8ff292
  GstMaskDestroyFunc     destroy_func;
Packit 8ff292
};
Packit 8ff292
Packit 8ff292
void                    _gst_mask_init                  (void);
Packit 8ff292
void                    _gst_mask_register              (const GstMaskDefinition *definition);
Packit 8ff292
Packit 8ff292
void                    _gst_mask_default_destroy       (GstMask *mask);
Packit 8ff292
Packit 8ff292
const GList*            gst_mask_get_definitions        (void);
Packit 8ff292
GstMask*                gst_mask_factory_new            (gint type, gboolean invert, gint bpp, gint width, gint height);
Packit 8ff292
void                    gst_mask_destroy                (GstMask *mask);
Packit 8ff292
Packit 8ff292
void _gst_barboxwipes_register (void);
Packit 8ff292
Packit 8ff292
#endif /* __GST_MASK_H__ */