gst_plugins_base/gst/playback/gstplaysink.h
changeset 8 4a7fac7dd34a
parent 0 0e761a78d257
child 30 7e817e7e631c
equal deleted inserted replaced
7:71e347f905f2 8:4a7fac7dd34a
    34   (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_PLAY_SINK, GstPlaySinkClass))
    34   (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_PLAY_SINK, GstPlaySinkClass))
    35 #define GST_IS_PLAY_SINK(obj) \
    35 #define GST_IS_PLAY_SINK(obj) \
    36   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_PLAY_SINK))
    36   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_PLAY_SINK))
    37 #define GST_IS_PLAY_SINK_CLASS(klass) \
    37 #define GST_IS_PLAY_SINK_CLASS(klass) \
    38   (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_PLAY_SINK))
    38   (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_PLAY_SINK))
       
    39 #define GST_PLAY_SINK_CAST(obj) \
       
    40   ((GstPlaySink*)(obj))
    39 
    41 
    40 /**
    42 /**
    41  * GstPlaySinkType:
    43  * GstPlaySinkType:
    42  * @GST_PLAY_SINK_TYPE_AUDIO: A non-raw audio pad
    44  * @GST_PLAY_SINK_TYPE_AUDIO: A non-raw audio pad
    43  * @GST_PLAY_SINK_TYPE_AUDIO_RAW: a raw audio pad
    45  * @GST_PLAY_SINK_TYPE_AUDIO_RAW: a raw audio pad
    44  * @GST_PLAY_SINK_TYPE_VIDEO: a non-raw video pad
    46  * @GST_PLAY_SINK_TYPE_VIDEO: a non-raw video pad
    45  * @GST_PLAY_SINK_TYPE_VIDEO_RAW: a raw video pad
    47  * @GST_PLAY_SINK_TYPE_VIDEO_RAW: a raw video pad
    46  * @GST_PLAY_SINK_TYPE_TEXT: a raw text pad
    48  * @GST_PLAY_SINK_TYPE_TEXT: a raw text pad
       
    49  * @GST_PLAY_SINK_TYPE_SUBPIC: a subpicture pad
    47  * @GST_PLAY_SINK_TYPE_LAST: the last type
    50  * @GST_PLAY_SINK_TYPE_LAST: the last type
       
    51  * @GST_PLAY_SINK_TYPE_FLUSHING: a flushing pad, used when shutting down
    48  *
    52  *
    49  * Types of pads that can be requested from the sinks.
    53  * Types of pads that can be requested from the sinks.
    50  */
    54  */
    51 typedef enum {
    55 typedef enum {
    52   GST_PLAY_SINK_TYPE_AUDIO     = 0,
    56   GST_PLAY_SINK_TYPE_AUDIO     = 0,
    53   GST_PLAY_SINK_TYPE_AUDIO_RAW = 1,
    57   GST_PLAY_SINK_TYPE_AUDIO_RAW = 1,
    54   GST_PLAY_SINK_TYPE_VIDEO     = 2,
    58   GST_PLAY_SINK_TYPE_VIDEO     = 2,
    55   GST_PLAY_SINK_TYPE_VIDEO_RAW = 3,
    59   GST_PLAY_SINK_TYPE_VIDEO_RAW = 3,
    56   GST_PLAY_SINK_TYPE_TEXT      = 4,
    60   GST_PLAY_SINK_TYPE_TEXT      = 4,
    57   GST_PLAY_SINK_TYPE_LAST      = 5
    61   GST_PLAY_SINK_TYPE_SUBPIC    = 5,
       
    62   GST_PLAY_SINK_TYPE_LAST      = 6,
       
    63 
       
    64   /* this is a dummy pad */
       
    65   GST_PLAY_SINK_TYPE_FLUSHING  = 7
    58 } GstPlaySinkType;
    66 } GstPlaySinkType;
    59 
    67 
    60 typedef struct _GstPlaySink GstPlaySink;
    68 typedef struct _GstPlaySink GstPlaySink;
    61 typedef struct _GstPlaySinkClass GstPlaySinkClass;
    69 typedef struct _GstPlaySinkClass GstPlaySinkClass;
    62 #ifdef __SYMBIAN32__
    70 #ifdef __SYMBIAN32__
    78 void             gst_play_sink_release_pad    (GstPlaySink *playsink, GstPad *pad);
    86 void             gst_play_sink_release_pad    (GstPlaySink *playsink, GstPad *pad);
    79 #ifdef __SYMBIAN32__
    87 #ifdef __SYMBIAN32__
    80 IMPORT_C
    88 IMPORT_C
    81 #endif
    89 #endif
    82 
    90 
       
    91 void             gst_play_sink_set_sink       (GstPlaySink * playsink, GstPlaySinkType type, GstElement * sink);
       
    92 #ifdef __SYMBIAN32__
       
    93 IMPORT_C
       
    94 #endif
       
    95 GstElement *     gst_play_sink_get_sink       (GstPlaySink * playsink, GstPlaySinkType type);
    83 
    96 
    84 void             gst_play_sink_set_video_sink (GstPlaySink * playsink, GstElement * sink);
       
    85 #ifdef __SYMBIAN32__
    97 #ifdef __SYMBIAN32__
    86 IMPORT_C
    98 IMPORT_C
    87 #endif
    99 #endif
    88 
   100 
    89 void             gst_play_sink_set_audio_sink (GstPlaySink * playsink, GstElement * sink);
   101 
       
   102 void             gst_play_sink_set_vis_plugin (GstPlaySink * playsink, GstElement * vis);
    90 #ifdef __SYMBIAN32__
   103 #ifdef __SYMBIAN32__
    91 IMPORT_C
   104 IMPORT_C
    92 #endif
   105 #endif
    93 
   106 
    94 void             gst_play_sink_set_vis_plugin (GstPlaySink * playsink, GstElement * vis);
   107 GstElement *     gst_play_sink_get_vis_plugin (GstPlaySink * playsink);
    95 #ifdef __SYMBIAN32__
   108 #ifdef __SYMBIAN32__
    96 IMPORT_C
   109 IMPORT_C
    97 #endif
   110 #endif
    98 
   111 
    99 
   112 
   128 #ifdef __SYMBIAN32__
   141 #ifdef __SYMBIAN32__
   129 IMPORT_C
   142 IMPORT_C
   130 #endif
   143 #endif
   131 
   144 
   132 
   145 
       
   146 void             gst_play_sink_set_font_desc  (GstPlaySink *playsink, const gchar * desc);
       
   147 #ifdef __SYMBIAN32__
       
   148 IMPORT_C
       
   149 #endif
       
   150 
       
   151 gchar *          gst_play_sink_get_font_desc  (GstPlaySink *playsink);
       
   152 #ifdef __SYMBIAN32__
       
   153 IMPORT_C
       
   154 #endif
       
   155 
       
   156 
   133 GstBuffer *      gst_play_sink_get_last_frame (GstPlaySink * playsink);
   157 GstBuffer *      gst_play_sink_get_last_frame (GstPlaySink * playsink);
   134 #ifdef __SYMBIAN32__
   158 #ifdef __SYMBIAN32__
   135 IMPORT_C
   159 IMPORT_C
   136 #endif
   160 #endif
   137 
   161