gst-gmyth/playbinmaemo/gstplaybinmaemo.h
author renatofilho
Thu Aug 02 14:49:26 2007 +0100 (2007-08-02)
branchtrunk
changeset 791 cdafc5e948b8
parent 787 e42706ada231
child 792 a6ac25bf88a7
permissions -rw-r--r--
[svn r797] create debian scripts to playbinmaemo package
renatofilho@787
     1
/* GStreamer
renatofilho@787
     2
 *
renatofilho@787
     3
 * This library is free software; you can redistribute it and/or
renatofilho@787
     4
 * modify it under the terms of the GNU Library General Public
renatofilho@787
     5
 * License as published by the Free Software Foundation; either
renatofilho@787
     6
 * version 2 of the License, or (at your option) any later version.
renatofilho@787
     7
 *
renatofilho@787
     8
 * This library is distributed in the hope that it will be useful,
renatofilho@787
     9
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
renatofilho@787
    10
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
renatofilho@787
    11
 * Library General Public License for more details.
renatofilho@787
    12
 *
renatofilho@787
    13
 * You should have received a copy of the GNU Library General Public
renatofilho@787
    14
 * License along with this library; if not, write to the
renatofilho@787
    15
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
renatofilho@787
    16
 * Boston, MA 02111-1307, USA.
renatofilho@787
    17
 */
renatofilho@787
    18
renatofilho@787
    19
#ifndef __GST_PLAYBINMAEMO_H__
renatofilho@787
    20
#define __GST_PLAYBINMAEMO_H__
renatofilho@787
    21
renatofilho@787
    22
#include <gst/gst.h>
renatofilho@787
    23
renatofilho@787
    24
G_BEGIN_DECLS
renatofilho@787
    25
renatofilho@787
    26
#define GST_TYPE_PLAY_BIN_MAEMO \
renatofilho@787
    27
    (gst_play_bin_maemo_get_type())
renatofilho@787
    28
#define GST_PLAY_BIN_MAEMO(obj) \
renatofilho@787
    29
    (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_PLAY_BIN_MAEMO,GstPlayBinMaemo))
renatofilho@787
    30
#define GST_PLAY_BIN_MAEMO_CLASS(klass) \
renatofilho@787
    31
    (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_PLAY_BIN_MAEMO,GstPlayBinMaemoClass))
renatofilho@787
    32
#define GST_IS_PLAY_BIN_MAEMO(obj) \
renatofilho@787
    33
    (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_PLAY_BIN_MAEMO))
renatofilho@787
    34
#define GST_IS_PLAY_BIN_MAEMO_CLASS(klass) \
renatofilho@787
    35
    (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_PLAY_BIN_MAEMO))
renatofilho@787
    36
#define GST_PLAY_BIN_MAEMO_GET_CLASS(obj) \
renatofilho@787
    37
  (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_PLAY_BIN_MAEMO,GstPlayBinMaemoClass))
renatofilho@787
    38
renatofilho@787
    39
typedef struct _GstPlayBinMaemo GstPlayBinMaemo;
renatofilho@787
    40
typedef struct _GstPlayBinMaemoClass GstPlayBinMaemoClass;
renatofilho@787
    41
renatofilho@787
    42
struct _GstPlayBinMaemo {
renatofilho@787
    43
  GstPipeline    pipeline;
renatofilho@787
    44
renatofilho@787
    45
  /* properties */
renatofilho@787
    46
  guint64        queue_size;
renatofilho@787
    47
  guint64        queue_min_threshold;
renatofilho@787
    48
  gboolean       is_stream;
renatofilho@788
    49
  gboolean       parse_metadata;
renatofilho@787
    50
  glong          xid;
renatofilho@787
    51
  guint          volume;
renatofilho@787
    52
renatofilho@787
    53
  /* currently loaded media */
renatofilho@787
    54
  gboolean      need_rebuild;
renatofilho@788
    55
  gboolean      has_metadata;
renatofilho@787
    56
  gchar         *uri;
renatofilho@787
    57
  GstElement    *source;
renatofilho@787
    58
  GstElement    *decoder;
renatofilho@787
    59
  GstElement    *queue;
renatofilho@787
    60
  GstElement    *volume_element;
renatofilho@787
    61
  GstElement    *sink_video;
renatofilho@787
    62
  GSList        *sinks;
renatofilho@787
    63
  GList         *factories;
renatofilho@787
    64
};
renatofilho@787
    65
renatofilho@787
    66
struct _GstPlayBinMaemoClass {
renatofilho@787
    67
  GstPipelineClass parent_class;
renatofilho@787
    68
};
renatofilho@787
    69
renatofilho@787
    70
GType gst_play_bin_maemo_get_type (void);
renatofilho@787
    71
renatofilho@787
    72
G_END_DECLS
renatofilho@787
    73
renatofilho@787
    74
#endif /* __GST_PLAYBINMAEMO_H__ */
renatofilho@787
    75