mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-27 10:40:34 +00:00
810e432da2
Allowing the user to print everyting in a file through the GST_VALIDATE_FILE env variable
95 lines
3.6 KiB
C
95 lines
3.6 KiB
C
/* GStreamer
|
|
* Copyright (C) 2013 Thibault Saunier <thibault.saunier@collabora.com>
|
|
*
|
|
* gst-validate-runner.c - Validate Runner class
|
|
*
|
|
* 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.1 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_VALIDATE_SCENARIO_H__
|
|
#define __GST_VALIDATE_SCENARIO_H__
|
|
|
|
#include <glib.h>
|
|
#include <glib-object.h>
|
|
|
|
#include <gst/validate/gst-validate-runner.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
#define GST_TYPE_VALIDATE_SCENARIO (gst_validate_scenario_get_type ())
|
|
#define GST_VALIDATE_SCENARIO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_VALIDATE_SCENARIO, GstValidateScenario))
|
|
#define GST_VALIDATE_SCENARIO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_VALIDATE_SCENARIO, GstValidateScenarioClass))
|
|
#define GST_IS_VALIDATE_SCENARIO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_VALIDATE_SCENARIO))
|
|
#define GST_IS_VALIDATE_SCENARIO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_VALIDATE_SCENARIO))
|
|
#define GST_VALIDATE_SCENARIO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_VALIDATE_SCENARIO, GstValidateScenarioClass))
|
|
|
|
typedef struct _GstValidateScenario GstValidateScenario;
|
|
typedef struct _GstValidateScenarioClass GstValidateScenarioClass;
|
|
typedef struct _GstValidateScenarioPrivate GstValidateScenarioPrivate;
|
|
typedef struct _GstValidateAction GstValidateAction;
|
|
|
|
typedef gboolean (*GstValidateExecuteAction) (GstValidateScenario * scenario, GstValidateAction * action);
|
|
|
|
GST_EXPORT GType _gst_validate_action_type;
|
|
|
|
struct _GstValidateAction
|
|
{
|
|
GstMiniObject mini_object;
|
|
|
|
const gchar *type;
|
|
const gchar *name;
|
|
guint action_number;
|
|
gint repeat;
|
|
GstClockTime playback_time;
|
|
GstStructure *structure;
|
|
};
|
|
|
|
struct _GstValidateScenarioClass
|
|
{
|
|
GObjectClass parent_class;
|
|
|
|
};
|
|
|
|
struct _GstValidateScenario
|
|
{
|
|
GObject parent;
|
|
|
|
GstElement *pipeline;
|
|
GstValidateScenarioPrivate *priv;
|
|
};
|
|
|
|
GType gst_validate_scenario_get_type (void);
|
|
|
|
GstValidateScenario * gst_validate_scenario_factory_create (GstValidateRunner *runner,
|
|
GstElement *pipeline,
|
|
const gchar *scenario_name);
|
|
gboolean gst_validate_list_scenarios (gchar *output_file);
|
|
void gst_validate_add_action_type (const gchar *type_name, GstValidateExecuteAction function,
|
|
const gchar * const * mandatory_fields, const gchar *description,
|
|
gboolean is_config);
|
|
|
|
gboolean gst_validate_action_get_clocktime (GstValidateScenario * scenario,
|
|
GstValidateAction *action,
|
|
const gchar * name,
|
|
GstClockTime * retval);
|
|
|
|
#define GST_TYPE_VALIDATE_ACTION (gst_validate_action_get_type ())
|
|
#define GST_IS_VALIDATE_ACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_VALIDATE_ACTION))
|
|
GType gst_validate_action_get_type (void);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* __GST_VALIDATE_SCENARIOS__ */
|