Blame gst/videotestsrc/videotestsrc.h

Packit 971217
/* GStreamer
Packit 971217
 * Copyright (C) <2003> David A. Schleef <ds@schleef.org>
Packit 971217
 *
Packit 971217
 * This library is free software; you can redistribute it and/or
Packit 971217
 * modify it under the terms of the GNU Library General Public
Packit 971217
 * License as published by the Free Software Foundation; either
Packit 971217
 * version 2 of the License, or (at your option) any later version.
Packit 971217
 *
Packit 971217
 * This library is distributed in the hope that it will be useful,
Packit 971217
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 971217
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 971217
 * Library General Public License for more details.
Packit 971217
 *
Packit 971217
 * You should have received a copy of the GNU Library General Public
Packit 971217
 * License along with this library; if not, write to the
Packit 971217
 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
Packit 971217
 * Boston, MA 02110-1301, USA.
Packit 971217
 */
Packit 971217
Packit 971217
#ifndef __VIDEO_TEST_SRC_H__
Packit 971217
#define __VIDEO_TEST_SRC_H__
Packit 971217
Packit 971217
#include <glib.h>
Packit 971217
Packit 971217
struct vts_color_struct {
Packit 971217
  guint8 Y, U, V, A;
Packit 971217
  guint8 R, G, B;
Packit 971217
  guint16 gray;
Packit 971217
};
Packit 971217
Packit 971217
Packit 971217
typedef struct paintinfo_struct paintinfo;
Packit 971217
Packit 971217
struct paintinfo_struct
Packit 971217
{
Packit 971217
  const struct vts_color_struct *colors;
Packit 971217
  const struct vts_color_struct *color;
Packit 971217
Packit 971217
  void (*paint_tmpline) (paintinfo * p, int x, int w);
Packit 971217
  void (*convert_tmpline) (paintinfo * p, GstVideoFrame *frame, int y);
Packit 971217
  void (*convert_hline) (paintinfo * p, GstVideoFrame *frame, int y);
Packit 971217
  GstVideoChromaResample *subsample;
Packit 971217
  int x_offset;
Packit 971217
Packit 971217
  int x_invert;
Packit 971217
  int y_invert;
Packit 971217
Packit 971217
  guint8 *tmpline;
Packit 971217
  guint8 *tmpline2;
Packit 971217
  guint8 *tmpline_u8;
Packit 971217
  guint16 *tmpline_u16;
Packit 971217
Packit 971217
  guint n_lines;
Packit 971217
  gint offset;
Packit 971217
  gpointer *lines;
Packit 971217
Packit 971217
  struct vts_color_struct foreground_color;
Packit 971217
  struct vts_color_struct background_color;
Packit 971217
};
Packit 971217
#define PAINT_INFO_INIT {0, }
Packit 971217
Packit 971217
void    gst_video_test_src_smpte        (GstVideoTestSrc * v, GstClockTime pts, GstVideoFrame *frame);
Packit 971217
void    gst_video_test_src_smpte75      (GstVideoTestSrc * v, GstClockTime pts, GstVideoFrame *frame);
Packit 971217
void    gst_video_test_src_snow         (GstVideoTestSrc * v, GstClockTime pts, GstVideoFrame *frame);
Packit 971217
void    gst_video_test_src_black        (GstVideoTestSrc * v, GstClockTime pts, GstVideoFrame *frame);
Packit 971217
void    gst_video_test_src_white        (GstVideoTestSrc * v, GstClockTime pts, GstVideoFrame *frame);
Packit 971217
void    gst_video_test_src_red          (GstVideoTestSrc * v, GstClockTime pts, GstVideoFrame *frame);
Packit 971217
void    gst_video_test_src_green        (GstVideoTestSrc * v, GstClockTime pts, GstVideoFrame *frame);
Packit 971217
void    gst_video_test_src_blue         (GstVideoTestSrc * v, GstClockTime pts, GstVideoFrame *frame);
Packit 971217
void    gst_video_test_src_solid        (GstVideoTestSrc * v, GstClockTime pts, GstVideoFrame *frame);
Packit 971217
void    gst_video_test_src_blink        (GstVideoTestSrc * v, GstClockTime pts, GstVideoFrame *frame);
Packit 971217
void    gst_video_test_src_checkers1    (GstVideoTestSrc * v, GstClockTime pts, GstVideoFrame *frame);
Packit 971217
void    gst_video_test_src_checkers2    (GstVideoTestSrc * v, GstClockTime pts, GstVideoFrame *frame);
Packit 971217
void    gst_video_test_src_checkers4    (GstVideoTestSrc * v, GstClockTime pts, GstVideoFrame *frame);
Packit 971217
void    gst_video_test_src_checkers8    (GstVideoTestSrc * v, GstClockTime pts, GstVideoFrame *frame);
Packit 971217
void    gst_video_test_src_circular     (GstVideoTestSrc * v, GstClockTime pts, GstVideoFrame *frame);
Packit 971217
void    gst_video_test_src_zoneplate    (GstVideoTestSrc * v, GstClockTime pts, GstVideoFrame *frame);
Packit 971217
void    gst_video_test_src_gamut        (GstVideoTestSrc * v, GstClockTime pts, GstVideoFrame *frame);
Packit 971217
void    gst_video_test_src_chromazoneplate (GstVideoTestSrc * v, GstClockTime pts, GstVideoFrame *frame);
Packit 971217
void    gst_video_test_src_ball         (GstVideoTestSrc * v, GstClockTime pts, GstVideoFrame *frame);
Packit 971217
void    gst_video_test_src_smpte100     (GstVideoTestSrc * v, GstClockTime pts, GstVideoFrame *frame);
Packit 971217
void    gst_video_test_src_bar          (GstVideoTestSrc * v, GstClockTime pts, GstVideoFrame *frame);
Packit 971217
void    gst_video_test_src_pinwheel     (GstVideoTestSrc * v, GstClockTime pts, GstVideoFrame * frame);
Packit 971217
void    gst_video_test_src_spokes       (GstVideoTestSrc * v, GstClockTime pts, GstVideoFrame * frame);
Packit 971217
void    gst_video_test_src_gradient     (GstVideoTestSrc * v, GstClockTime pts, GstVideoFrame * frame);
Packit 971217
void    gst_video_test_src_colors       (GstVideoTestSrc * v, GstClockTime pts, GstVideoFrame * frame);
Packit 971217
Packit 971217
#endif