Screenshot instructions:
Windows
Mac
Red Hat Linux
Ubuntu
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
You can subscribe to this list here.
2002 |
Jan
|
Feb
(112) |
Mar
(315) |
Apr
(310) |
May
(306) |
Jun
(361) |
Jul
(320) |
Aug
(136) |
Sep
(427) |
Oct
(287) |
Nov
(249) |
Dec
(344) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(469) |
Feb
(215) |
Mar
(147) |
Apr
(309) |
May
(303) |
Jun
(227) |
Jul
(315) |
Aug
(160) |
Sep
(191) |
Oct
(327) |
Nov
(483) |
Dec
(418) |
2004 |
Jan
(533) |
Feb
(455) |
Mar
(548) |
Apr
(389) |
May
(395) |
Jun
(267) |
Jul
(409) |
Aug
(189) |
Sep
(136) |
Oct
(272) |
Nov
(254) |
Dec
(265) |
2005 |
Jan
(311) |
Feb
(236) |
Mar
(169) |
Apr
(316) |
May
(360) |
Jun
(379) |
Jul
(414) |
Aug
(484) |
Sep
(663) |
Oct
(733) |
Nov
(838) |
Dec
(403) |
2006 |
Jan
(340) |
Feb
(443) |
Mar
(432) |
Apr
(452) |
May
(440) |
Jun
(311) |
Jul
(316) |
Aug
(282) |
Sep
(288) |
Oct
(241) |
Nov
(195) |
Dec
(182) |
2007 |
Jan
(277) |
Feb
(252) |
Mar
(318) |
Apr
(251) |
May
(234) |
Jun
(235) |
Jul
(225) |
Aug
(178) |
Sep
(262) |
Oct
(233) |
Nov
(236) |
Dec
(264) |
2008 |
Jan
(404) |
Feb
(373) |
Mar
(202) |
Apr
(308) |
May
(419) |
Jun
(348) |
Jul
(205) |
Aug
(343) |
Sep
(127) |
Oct
(303) |
Nov
(352) |
Dec
(236) |
2009 |
Jan
(118) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
2011 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2016 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
|
|
|
1
(58) |
2
(12) |
3
(4) |
4
(9) |
5
(60) |
6
(9) |
7
(14) |
8
(4) |
9
(11) |
10
(3) |
11
(15) |
12
(45) |
13
(3) |
14
(10) |
15
(11) |
16
(27) |
17
(2) |
18
(15) |
19
(13) |
20
(16) |
21
(8) |
22
(7) |
23
(10) |
24
|
25
(1) |
26
(1) |
27
(6) |
28
(7) |
29
(11) |
30
(11) |
31
|
From: <thomasvs@fr...> - 2005-12-01 01:22:04
|
CVS Root: /cvs/gstreamer Module: gst-plugins-base Changes by: thomasvs Date: Wed Nov 30 2005 17:22:01 PST Log message: more borgifying Modified files: . : ChangeLog gst/tcp : gstmultifdsink.c gstmultifdsink.h gsttcpclientsink.c gsttcpclientsink.h gsttcpclientsrc.c gsttcpclientsrc.h gsttcpplugin.c gsttcpserversink.c gsttcpserversink.h gsttcpserversrc.c gsttcpserversrc.h Links: http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/ChangeLog.diff?r1=1.2192&r2=1.2193 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/gst/tcp/gstmultifdsink.c.diff?r1=1.49&r2=1.50 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/gst/tcp/gstmultifdsink.h.diff?r1=1.20&r2=1.21 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/gst/tcp/gsttcpclientsink.c.diff?r1=1.15&r2=1.16 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/gst/tcp/gsttcpclientsink.h.diff?r1=1.6&r2=1.7 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/gst/tcp/gsttcpclientsrc.c.diff?r1=1.31&r2=1.32 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/gst/tcp/gsttcpclientsrc.h.diff?r1=1.12&r2=1.13 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/gst/tcp/gsttcpplugin.c.diff?r1=1.12&r2=1.13 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/gst/tcp/gsttcpserversink.c.diff?r1=1.26&r2=1.27 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/gst/tcp/gsttcpserversink.h.diff?r1=1.10&r2=1.11 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/gst/tcp/gsttcpserversrc.c.diff?r1=1.25&r2=1.26 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/gst/tcp/gsttcpserversrc.h.diff?r1=1.8&r2=1.9 ====Begin Diffs==== Index: ChangeLog =================================================================== RCS file: /cvs/gstreamer/gst-plugins-base/ChangeLog,v retrieving revision 1.2192 retrieving revision 1.2193 diff -u -d -r1.2192 -r1.2193 --- ChangeLog 1 Dec 2005 01:12:53 -0000 1.2192 +++ ChangeLog 1 Dec 2005 01:21:48 -0000 1.2193 @@ -1,5 +1,60 @@ 2005-12-01 Thomas Vander Stichele <thomas at apestaart dot org> + * gst/tcp/gstmultifdsink.c: (gst_multi_fd_sink_base_init), + (gst_multi_fd_sink_class_init), (gst_multi_fd_sink_init), + (gst_multi_fd_sink_finalize), (gst_multi_fd_sink_add), + (gst_multi_fd_sink_remove), (gst_multi_fd_sink_clear), + (gst_multi_fd_sink_get_stats), + (gst_multi_fd_sink_remove_client_link), + (gst_multi_fd_sink_handle_client_read), + (gst_multi_fd_sink_client_queue_data), + (gst_multi_fd_sink_client_queue_caps), + (gst_multi_fd_sink_client_queue_buffer), + (gst_multi_fd_sink_new_client), + (gst_multi_fd_sink_handle_client_write), + (gst_multi_fd_sink_recover_client), + (gst_multi_fd_sink_queue_buffer), + (gst_multi_fd_sink_handle_clients), (gst_multi_fd_sink_thread), + (gst_multi_fd_sink_render), (gst_multi_fd_sink_set_property), + (gst_multi_fd_sink_get_property), (gst_multi_fd_sink_start), + (gst_multi_fd_sink_stop), (gst_multi_fd_sink_change_state): + * gst/tcp/gstmultifdsink.h: + * gst/tcp/gsttcpclientsink.c: (gst_tcp_client_sink_get_type), + (gst_tcp_client_sink_base_init), (gst_tcp_client_sink_class_init), + (gst_tcp_client_sink_init), (gst_tcp_client_sink_finalize), + (gst_tcp_client_sink_setcaps), (gst_tcp_client_sink_render), + (gst_tcp_client_sink_set_property), + (gst_tcp_client_sink_get_property), (gst_tcp_client_sink_start), + (gst_tcp_client_sink_stop), (gst_tcp_client_sink_change_state): + * gst/tcp/gsttcpclientsink.h: + * gst/tcp/gsttcpclientsrc.c: (gst_tcp_client_src_base_init), + (gst_tcp_client_src_class_init), (gst_tcp_client_src_init), + (gst_tcp_client_src_finalize), (gst_tcp_client_src_getcaps), + (gst_tcp_client_src_create), (gst_tcp_client_src_set_property), + (gst_tcp_client_src_get_property), (gst_tcp_client_src_start), + (gst_tcp_client_src_stop), (gst_tcp_client_src_unlock): + * gst/tcp/gsttcpclientsrc.h: + * gst/tcp/gsttcpplugin.c: (plugin_init): + * gst/tcp/gsttcpserversink.c: (gst_tcp_server_sink_base_init), + (gst_tcp_server_sink_class_init), (gst_tcp_server_sink_init), + (gst_tcp_server_sink_finalize), + (gst_tcp_server_sink_handle_server_read), + (gst_tcp_server_sink_removed), (gst_tcp_server_sink_handle_wait), + (gst_tcp_server_sink_set_property), + (gst_tcp_server_sink_get_property), + (gst_tcp_server_sink_init_send), (gst_tcp_server_sink_close): + * gst/tcp/gsttcpserversink.h: + * gst/tcp/gsttcpserversrc.c: (gst_tcp_server_src_base_init), + (gst_tcp_server_src_class_init), (gst_tcp_server_src_init), + (gst_tcp_server_src_finalize), (gst_tcp_server_src_create), + (gst_tcp_server_src_set_property), + (gst_tcp_server_src_get_property), (gst_tcp_server_src_start), + (gst_tcp_server_src_stop), (gst_tcp_server_src_unlock): + * gst/tcp/gsttcpserversrc.h: + more borgifying + +2005-12-01 Thomas Vander Stichele <thomas at apestaart dot org> * docs/plugins/Makefile.am: * docs/plugins/gst-plugins-base-plugins.args: * docs/plugins/inspect/plugin-libvisual.xml: Index: gstmultifdsink.c RCS file: /cvs/gstreamer/gst-plugins-base/gst/tcp/gstmultifdsink.c,v retrieving revision 1.49 retrieving revision 1.50 diff -u -d -r1.49 -r1.50 --- gstmultifdsink.c 24 Nov 2005 18:09:09 -0000 1.49 +++ gstmultifdsink.c 1 Dec 2005 01:21:49 -0000 1.50 @@ -64,7 +64,7 @@ } G_STMT_END /* elementfactory information */ -static GstElementDetails gst_multifdsink_details = +static GstElementDetails gst_multi_fd_sink_details = GST_ELEMENT_DETAILS ("MultiFd sink", "Sink/Network", "Send data to multiple filedescriptors", @@ -218,42 +218,42 @@ return client_status_type; } -static void gst_multifdsink_finalize (GObject * object); +static void gst_multi_fd_sink_finalize (GObject * object); -static void gst_multifdsink_remove_client_link (GstMultiFdSink * sink, +static void gst_multi_fd_sink_remove_client_link (GstMultiFdSink * sink, GList * link); -static GstFlowReturn gst_multifdsink_render (GstBaseSink * bsink, +static GstFlowReturn gst_multi_fd_sink_render (GstBaseSink * bsink, GstBuffer * buf); -static GstStateChangeReturn gst_multifdsink_change_state (GstElement * +static GstStateChangeReturn gst_multi_fd_sink_change_state (GstElement * element, GstStateChange transition); -static void gst_multifdsink_set_property (GObject * object, guint prop_id, +static void gst_multi_fd_sink_set_property (GObject * object, guint prop_id, const GValue * value, GParamSpec * pspec); -static void gst_multifdsink_get_property (GObject * object, guint prop_id, +static void gst_multi_fd_sink_get_property (GObject * object, guint prop_id, GValue * value, GParamSpec * pspec); -GST_BOILERPLATE (GstMultiFdSink, gst_multifdsink, GstBaseSink, +GST_BOILERPLATE (GstMultiFdSink, gst_multi_fd_sink, GstBaseSink, GST_TYPE_BASE_SINK); -static guint gst_multifdsink_signals[LAST_SIGNAL] = { 0 }; +static guint gst_multi_fd_sink_signals[LAST_SIGNAL] = { 0 }; static void -gst_multifdsink_base_init (gpointer g_class) +gst_multi_fd_sink_base_init (gpointer g_class) { GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); gst_element_class_add_pad_template (element_class, gst_static_pad_template_get (&sinktemplate)); - gst_element_class_set_details (element_class, &gst_multifdsink_details); + gst_element_class_set_details (element_class, &gst_multi_fd_sink_details); -gst_multifdsink_class_init (GstMultiFdSinkClass * klass) +gst_multi_fd_sink_class_init (GstMultiFdSinkClass * klass) GObjectClass *gobject_class; GstElementClass *gstelement_class; @@ -263,9 +263,9 @@ gstelement_class = (GstElementClass *) klass; gstbasesink_class = (GstBaseSinkClass *) klass; - gobject_class->set_property = gst_multifdsink_set_property; - gobject_class->get_property = gst_multifdsink_get_property; - gobject_class->finalize = gst_multifdsink_finalize; + gobject_class->set_property = gst_multi_fd_sink_set_property; + gobject_class->get_property = gst_multi_fd_sink_get_property; + gobject_class->finalize = gst_multi_fd_sink_finalize; g_object_class_install_property (gobject_class, ARG_PROTOCOL, g_param_spec_enum ("protocol", "Protocol", "The protocol to wrap data in", @@ -342,7 +342,7 @@ * * Hand the given open file descriptor to multifdsink to write to. */ - gst_multifdsink_signals[SIGNAL_ADD] = + gst_multi_fd_sink_signals[SIGNAL_ADD] = g_signal_new ("add", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstMultiFdSinkClass, add), NULL, NULL, g_cclosure_marshal_VOID__INT, G_TYPE_NONE, 1, G_TYPE_INT); @@ -353,7 +353,7 @@ * Remove the given open file descriptor from multifdsink. - gst_multifdsink_signals[SIGNAL_REMOVE] = + gst_multi_fd_sink_signals[SIGNAL_REMOVE] = g_signal_new ("remove", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstMultiFdSinkClass, remove), NULL, NULL, gst_tcp_marshal_VOID__INT, G_TYPE_NONE, 1, G_TYPE_INT); @@ -363,11 +363,11 @@ * Clear all file descriptors from multifdsink. - gst_multifdsink_signals[SIGNAL_CLEAR] = + gst_multi_fd_sink_signals[SIGNAL_CLEAR] = g_signal_new ("clear", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstMultiFdSinkClass, clear), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); - gst_multifdsink_signals[SIGNAL_GET_STATS] = + gst_multi_fd_sink_signals[SIGNAL_GET_STATS] = g_signal_new ("get-stats", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstMultiFdSinkClass, get_stats), NULL, NULL, gst_tcp_marshal_BOXED__INT, G_TYPE_VALUE_ARRAY, 1, @@ -380,7 +380,7 @@ * The given file descriptor was added to multifdsink. - gst_multifdsink_signals[SIGNAL_CLIENT_ADDED] = + gst_multi_fd_sink_signals[SIGNAL_CLIENT_ADDED] = g_signal_new ("client-added", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstMultiFdSinkClass, client_added), @@ -391,29 +391,29 @@ * The given file descriptor was removed from multifdsink. - gst_multifdsink_signals[SIGNAL_CLIENT_REMOVED] = + gst_multi_fd_sink_signals[SIGNAL_CLIENT_REMOVED] = g_signal_new ("client-removed", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstMultiFdSinkClass, client_removed), NULL, NULL, gst_tcp_marshal_VOID__INT_BOXED, G_TYPE_NONE, 2, G_TYPE_INT, GST_TYPE_CLIENT_STATUS); gstelement_class->change_state = - GST_DEBUG_FUNCPTR (gst_multifdsink_change_state); + GST_DEBUG_FUNCPTR (gst_multi_fd_sink_change_state); - gstbasesink_class->render = gst_multifdsink_render; + gstbasesink_class->render = gst_multi_fd_sink_render; - klass->add = gst_multifdsink_add; - klass->remove = gst_multifdsink_remove; - klass->clear = gst_multifdsink_clear; - klass->get_stats = gst_multifdsink_get_stats; + klass->add = gst_multi_fd_sink_add; + klass->remove = gst_multi_fd_sink_remove; + klass->clear = gst_multi_fd_sink_clear; + klass->get_stats = gst_multi_fd_sink_get_stats; GST_DEBUG_CATEGORY_INIT (multifdsink_debug, "multifdsink", 0, "FD sink"); -gst_multifdsink_init (GstMultiFdSink * this, GstMultiFdSinkClass * klass) +gst_multi_fd_sink_init (GstMultiFdSink * this, GstMultiFdSinkClass * klass) - GST_OBJECT_FLAG_UNSET (this, GST_MULTIFDSINK_OPEN); + GST_OBJECT_FLAG_UNSET (this, GST_MULTI_FD_SINK_OPEN); this->protocol = DEFAULT_PROTOCOL; this->mode = DEFAULT_MODE; @@ -433,11 +433,11 @@ -gst_multifdsink_finalize (GObject * object) +gst_multi_fd_sink_finalize (GObject * object) GstMultiFdSink *this; - this = GST_MULTIFDSINK (object); + this = GST_MULTI_FD_SINK (object); CLIENTS_LOCK_FREE (this); g_hash_table_destroy (this->fd_hash); @@ -447,7 +447,7 @@ void -gst_multifdsink_add (GstMultiFdSink * sink, int fd) +gst_multi_fd_sink_add (GstMultiFdSink * sink, int fd) GstTCPClient *client; GList *clink; @@ -485,7 +485,8 @@ CLIENTS_UNLOCK (sink); GST_WARNING_OBJECT (sink, "[fd %5d] duplicate client found, refusing", fd); g_signal_emit (G_OBJECT (sink), - gst_multifdsink_signals[SIGNAL_CLIENT_REMOVED], 0, fd, client->status); + gst_multi_fd_sink_signals[SIGNAL_CLIENT_REMOVED], 0, fd, + client->status); g_free (client); return; } @@ -515,11 +516,11 @@ CLIENTS_UNLOCK (sink); g_signal_emit (G_OBJECT (sink), - gst_multifdsink_signals[SIGNAL_CLIENT_ADDED], 0, fd); + gst_multi_fd_sink_signals[SIGNAL_CLIENT_ADDED], 0, fd); -gst_multifdsink_remove (GstMultiFdSink * sink, int fd) +gst_multi_fd_sink_remove (GstMultiFdSink * sink, int fd) @@ -531,7 +532,7 @@ GstTCPClient *client = (GstTCPClient *) clink->data; client->status = GST_CLIENT_STATUS_REMOVED; - gst_multifdsink_remove_client_link (sink, clink); + gst_multi_fd_sink_remove_client_link (sink, clink); SEND_COMMAND (sink, CONTROL_RESTART); } else { GST_WARNING_OBJECT (sink, "[fd %5d] no client with this fd found!", fd); @@ -540,7 +541,7 @@ -gst_multifdsink_clear (GstMultiFdSink * sink) +gst_multi_fd_sink_clear (GstMultiFdSink * sink) GList *clients, *next; @@ -554,14 +555,14 @@ next = g_list_next (clients); - gst_multifdsink_remove_client_link (sink, clients); + gst_multi_fd_sink_remove_client_link (sink, clients); SEND_COMMAND (sink, CONTROL_RESTART); GValueArray * -gst_multifdsink_get_stats (GstMultiFdSink * sink, int fd) +gst_multi_fd_sink_get_stats (GstMultiFdSink * sink, int fd) GValueArray *result = NULL; @@ -622,14 +623,14 @@ * close the fd itself. */ -gst_multifdsink_remove_client_link (GstMultiFdSink * sink, GList * link) +gst_multi_fd_sink_remove_client_link (GstMultiFdSink * sink, GList * link) int fd; GTimeVal now; GstTCPClient *client = (GstTCPClient *) link->data; GstMultiFdSinkClass *fclass; - fclass = GST_MULTIFDSINK_GET_CLASS (sink); + fclass = GST_MULTI_FD_SINK_GET_CLASS (sink); fd = client->fd.fd; @@ -676,7 +677,7 @@ - gst_multifdsink_signals[SIGNAL_CLIENT_REMOVED], 0, fd, client->status); + gst_multi_fd_sink_signals[SIGNAL_CLIENT_REMOVED], 0, fd, client->status); /* lock again before we remove the client completely */ CLIENTS_LOCK (sink); @@ -702,7 +703,7 @@ * which either indicates a close or should be ignored * returns FALSE if some error occured or the client closed. */ static gboolean -gst_multifdsink_handle_client_read (GstMultiFdSink * sink, +gst_multi_fd_sink_handle_client_read (GstMultiFdSink * sink, GstTCPClient * client) int avail, fd; @@ -770,8 +771,8 @@ * setting it as GST_BUFFER_MALLOCDATA() on the created buffer -gst_multifdsink_client_queue_data (GstMultiFdSink * sink, GstTCPClient * client, - gchar * data, gint len) +gst_multi_fd_sink_client_queue_data (GstMultiFdSink * sink, + GstTCPClient * client, gchar * data, gint len) GstBuffer *buf; @@ -789,8 +790,8 @@ -gst_multifdsink_client_queue_caps (GstMultiFdSink * sink, GstTCPClient * client, - const GstCaps * caps) +gst_multi_fd_sink_client_queue_caps (GstMultiFdSink * sink, + GstTCPClient * client, const GstCaps * caps) guint8 *header; guint8 *payload; @@ -808,10 +809,10 @@ GST_DEBUG_OBJECT (sink, "Could not create GDP packet from caps"); return FALSE; - gst_multifdsink_client_queue_data (sink, client, (gchar *) header, length); + gst_multi_fd_sink_client_queue_data (sink, client, (gchar *) header, length); length = gst_dp_header_payload_length (header); - gst_multifdsink_client_queue_data (sink, client, (gchar *) payload, length); + gst_multi_fd_sink_client_queue_data (sink, client, (gchar *) payload, length); return TRUE; @@ -828,7 +829,7 @@ -gst_multifdsink_client_queue_buffer (GstMultiFdSink * sink, +gst_multi_fd_sink_client_queue_buffer (GstMultiFdSink * sink, GstTCPClient * client, GstBuffer * buffer) if (sink->protocol == GST_TCP_PROTOCOL_GDP) { @@ -840,7 +841,7 @@ "[fd %5d] could not create header, removing client", client->fd.fd); return FALSE; } - gst_multifdsink_client_queue_data (sink, client, (gchar *) header, len); + gst_multi_fd_sink_client_queue_data (sink, client, (gchar *) header, len); GST_LOG_OBJECT (sink, "[fd %5d] queueing buffer of length %d", @@ -853,7 +854,7 @@ static gint -gst_multifdsink_new_client (GstMultiFdSink * sink, GstTCPClient * client) +gst_multi_fd_sink_new_client (GstMultiFdSink * sink, GstTCPClient * client) gint result; @@ -961,7 +962,7 @@ * This functions returns FALSE if some error occured. -gst_multifdsink_handle_client_write (GstMultiFdSink * sink, +gst_multi_fd_sink_handle_client_write (GstMultiFdSink * sink, int fd = client->fd.fd; @@ -989,7 +990,7 @@ gst_object_unref (peer); /* queue caps for sending */ - res = gst_multifdsink_client_queue_caps (sink, client, caps); + res = gst_multi_fd_sink_client_queue_caps (sink, client, caps); gst_caps_unref (caps); @@ -1011,7 +1012,7 @@ for (l = sink->streamheader; l; l = l->next) { /* queue stream headers for sending */ res = - gst_multifdsink_client_queue_buffer (sink, client, + gst_multi_fd_sink_client_queue_buffer (sink, client, GST_BUFFER (l->data)); if (!res) { GST_DEBUG_OBJECT (sink, @@ -1041,7 +1042,7 @@ /* for new connections, we need to find a good spot in the * bufqueue to start streaming from */ if (client->new_connection) { - gint position = gst_multifdsink_new_client (sink, client); + gint position = gst_multi_fd_sink_new_client (sink, client); if (position >= 0) { /* we got a valid spot in the queue */ @@ -1061,7 +1062,7 @@ fd, client, client->bufpos); /* queueing a buffer will ref it */ - gst_multifdsink_client_queue_buffer (sink, client, buf); + gst_multi_fd_sink_client_queue_buffer (sink, client, buf); /* need to start from the first byte for this new buffer */ client->bufoffset = 0; @@ -1138,7 +1139,7 @@ * position. -gst_multifdsink_recover_client (GstMultiFdSink * sink, GstTCPClient * client) +gst_multi_fd_sink_recover_client (GstMultiFdSink * sink, GstTCPClient * client) gint newbufpos; @@ -1204,7 +1205,7 @@ * -gst_multifdsink_queue_buffer (GstMultiFdSink * sink, GstBuffer * buf) +gst_multi_fd_sink_queue_buffer (GstMultiFdSink * sink, GstBuffer * buf) gint queuelen; @@ -1237,7 +1238,7 @@ if (sink->units_soft_max > 0 && client->bufpos >= sink->units_soft_max) { gint newpos; - newpos = gst_multifdsink_recover_client (sink, client); + newpos = gst_multi_fd_sink_recover_client (sink, client); if (newpos != client->bufpos) { client->bufpos = newpos; client->discont = TRUE; @@ -1259,7 +1260,7 @@ /* remove the client, the fd set will be cleared and the select thread will * be signaled */ client->status = GST_CLIENT_STATUS_SLOW; - gst_multifdsink_remove_client_link (sink, clients); + gst_multi_fd_sink_remove_client_link (sink, clients); /* set client to invalid position while being removed */ client->bufpos = -1; need_signal = TRUE; @@ -1334,14 +1335,14 @@ * garbage list and removed. -gst_multifdsink_handle_clients (GstMultiFdSink * sink) +gst_multi_fd_sink_handle_clients (GstMultiFdSink * sink) int result; gboolean try_again; do { gboolean stop = FALSE; @@ -1380,7 +1381,7 @@ fd, g_strerror (errno), errno); if (errno == EBADF) { client->status = GST_CLIENT_STATUS_ERROR; - gst_multifdsink_remove_client_link (sink, clients); + gst_multi_fd_sink_remove_client_link (sink, clients); } } } @@ -1454,32 +1455,32 @@ if (client->status != GST_CLIENT_STATUS_OK) { continue; if (gst_fdset_fd_has_closed (sink->fdset, &client->fd)) { client->status = GST_CLIENT_STATUS_CLOSED; if (gst_fdset_fd_has_error (sink->fdset, &client->fd)) { GST_WARNING_OBJECT (sink, "gst_fdset_fd_has_error for %d", client->fd); client->status = GST_CLIENT_STATUS_ERROR; if (gst_fdset_fd_can_read (sink->fdset, &client->fd)) { /* handle client read */ - if (!gst_multifdsink_handle_client_read (sink, client)) { - gst_multifdsink_remove_client_link (sink, clients); + if (!gst_multi_fd_sink_handle_client_read (sink, client)) { + gst_multi_fd_sink_remove_client_link (sink, clients); continue; } if (gst_fdset_fd_can_write (sink->fdset, &client->fd)) { /* handle client write */ - if (!gst_multifdsink_handle_client_write (sink, client)) { + if (!gst_multi_fd_sink_handle_client_write (sink, client)) { @@ -1490,25 +1491,25 @@ /* we handle the client communication in another thread so that we do not block * the gstreamer thread while we select() on the client fds */ static gpointer -gst_multifdsink_thread (GstMultiFdSink * sink) +gst_multi_fd_sink_thread (GstMultiFdSink * sink) while (sink->running) { - gst_multifdsink_handle_clients (sink); + gst_multi_fd_sink_handle_clients (sink); return NULL; static GstFlowReturn -gst_multifdsink_render (GstBaseSink * bsink, GstBuffer * buf) +gst_multi_fd_sink_render (GstBaseSink * bsink, GstBuffer * buf) GstMultiFdSink *sink; - sink = GST_MULTIFDSINK (bsink); + sink = GST_MULTI_FD_SINK (bsink); /* since we keep this buffer out of the scope of this method */ gst_buffer_ref (buf); - g_return_val_if_fail (GST_OBJECT_FLAG_IS_SET (sink, GST_MULTIFDSINK_OPEN), + g_return_val_if_fail (GST_OBJECT_FLAG_IS_SET (sink, GST_MULTI_FD_SINK_OPEN), GST_FLOW_ERROR); GST_LOG_OBJECT (sink, "received buffer %p", buf); @@ -1541,7 +1542,7 @@ sink->previous_buffer_in_caps = FALSE; /* queue the buffer */ - gst_multifdsink_queue_buffer (sink, buf); + gst_multi_fd_sink_queue_buffer (sink, buf); sink->bytes_to_serve += GST_BUFFER_SIZE (buf); @@ -1549,13 +1550,13 @@ -gst_multifdsink_set_property (GObject * object, guint prop_id, +gst_multi_fd_sink_set_property (GObject * object, guint prop_id, const GValue * value, GParamSpec * pspec) GstMultiFdSink *multifdsink; - g_return_if_fail (GST_IS_MULTIFDSINK (object)); - multifdsink = GST_MULTIFDSINK (object); + g_return_if_fail (GST_IS_MULTI_FD_SINK (object)); + multifdsink = GST_MULTI_FD_SINK (object); switch (prop_id) { case ARG_PROTOCOL: @@ -1596,13 +1597,13 @@ -gst_multifdsink_get_property (GObject * object, guint prop_id, GValue * value, +gst_multi_fd_sink_get_property (GObject * object, guint prop_id, GValue * value, GParamSpec * pspec) @@ -1660,17 +1661,17 @@ /* create a socket for sending to remote machine */ -gst_multifdsink_start (GstBaseSink * bsink) +gst_multi_fd_sink_start (GstBaseSink * bsink) int control_socket[2]; - if (GST_OBJECT_FLAG_IS_SET (bsink, GST_MULTIFDSINK_OPEN)) + if (GST_OBJECT_FLAG_IS_SET (bsink, GST_MULTI_FD_SINK_OPEN)) return TRUE; - this = GST_MULTIFDSINK (bsink); - fclass = GST_MULTIFDSINK_GET_CLASS (this); + this = GST_MULTI_FD_SINK (bsink); + fclass = GST_MULTI_FD_SINK_GET_CLASS (this); GST_INFO_OBJECT (this, "starting in mode %d", this->mode); this->fdset = gst_fdset_new (this->mode); @@ -1696,10 +1697,10 @@ this->running = TRUE; - this->thread = g_thread_create ((GThreadFunc) gst_multifdsink_thread, + this->thread = g_thread_create ((GThreadFunc) gst_multi_fd_sink_thread, this, TRUE, NULL); - GST_OBJECT_FLAG_SET (this, GST_MULTIFDSINK_OPEN); + GST_OBJECT_FLAG_SET (this, GST_MULTI_FD_SINK_OPEN); @@ -1719,15 +1720,15 @@ -gst_multifdsink_stop (GstBaseSink * bsink) +gst_multi_fd_sink_stop (GstBaseSink * bsink) - if (!GST_OBJECT_FLAG_IS_SET (bsink, GST_MULTIFDSINK_OPEN)) + if (!GST_OBJECT_FLAG_IS_SET (bsink, GST_MULTI_FD_SINK_OPEN)) this->running = FALSE; @@ -1739,7 +1740,7 @@ /* free the clients */ - gst_multifdsink_clear (this); + gst_multi_fd_sink_clear (this); close (READ_SOCKET (this).fd); close (WRITE_SOCKET (this).fd); @@ -1759,18 +1760,18 @@ this->fdset = NULL; g_hash_table_foreach_remove (this->fd_hash, multifdsink_hash_remove, this); static GstStateChangeReturn -gst_multifdsink_change_state (GstElement * element, GstStateChange transition) +gst_multi_fd_sink_change_state (GstElement * element, GstStateChange transition) GstStateChangeReturn ret; - sink = GST_MULTIFDSINK (element); + sink = GST_MULTI_FD_SINK (element); /* we disallow changing the state from the streaming thread */ if (g_thread_self () == sink->thread) @@ -1779,7 +1780,7 @@ switch (transition) { case GST_STATE_CHANGE_NULL_TO_READY: - if (!gst_multifdsink_start (GST_BASE_SINK (sink))) + if (!gst_multi_fd_sink_start (GST_BASE_SINK (sink))) goto start_failed; break; case GST_STATE_CHANGE_READY_TO_PAUSED: @@ -1798,7 +1799,7 @@ case GST_STATE_CHANGE_PAUSED_TO_READY: case GST_STATE_CHANGE_READY_TO_NULL: - gst_multifdsink_stop (GST_BASE_SINK (sink)); + gst_multi_fd_sink_stop (GST_BASE_SINK (sink)); default: Index: gstmultifdsink.h RCS file: /cvs/gstreamer/gst-plugins-base/gst/tcp/gstmultifdsink.h,v retrieving revision 1.20 retrieving revision 1.21 diff -u -d -r1.20 -r1.21 --- gstmultifdsink.h 22 Nov 2005 17:39:29 -0000 1.20 +++ gstmultifdsink.h 1 Dec 2005 01:21:49 -0000 1.21 @@ -19,8 +19,8 @@ -#ifndef __GST_MULTIFDSINK_H__ -#define __GST_MULTIFDSINK_H__ +#ifndef __GST_MULTI_FD_SINK_H__ +#define __GST_MULTI_FD_SINK_H__ #include <gst/gst.h> #include <gst/base/gstbasesink.h> @@ -30,27 +30,27 @@ #include "gsttcp.h" #include "gstfdset.h" -#define GST_TYPE_MULTIFDSINK \ - (gst_multifdsink_get_type()) -#define GST_MULTIFDSINK(obj) \ - (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_MULTIFDSINK,GstMultiFdSink)) -#define GST_MULTIFDSINK_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_MULTIFDSINK,GstMultiFdSink)) -#define GST_IS_MULTIFDSINK(obj) \ - (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_MULTIFDSINK)) -#define GST_IS_MULTIFDSINK_CLASS(obj) \ - (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_MULTIFDSINK)) -#define GST_MULTIFDSINK_GET_CLASS(obj) \ - (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_MULTIFDSINK, GstMultiFdSinkClass)) +#define GST_TYPE_MULTI_FD_SINK \ + (gst_multi_fd_sink_get_type()) +#define GST_MULTI_FD_SINK(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_MULTI_FD_SINK,GstMultiFdSink)) +#define GST_MULTI_FD_SINK_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_MULTI_FD_SINK,GstMultiFdSink)) +#define GST_IS_MULTI_FD_SINK(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_MULTI_FD_SINK)) +#define GST_IS_MULTI_FD_SINK_CLASS(obj) \ + (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_MULTI_FD_SINK)) +#define GST_MULTI_FD_SINK_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_MULTI_FD_SINK, GstMultiFdSinkClass)) typedef struct _GstMultiFdSink GstMultiFdSink; typedef struct _GstMultiFdSinkClass GstMultiFdSinkClass; typedef enum { - GST_MULTIFDSINK_OPEN = (GST_ELEMENT_FLAG_LAST << 0), + GST_MULTI_FD_SINK_OPEN = (GST_ELEMENT_FLAG_LAST << 0), - GST_MULTIFDSINK_FLAG_LAST = (GST_ELEMENT_FLAG_LAST << 2), + GST_MULTI_FD_SINK_FLAG_LAST = (GST_ELEMENT_FLAG_LAST << 2), } GstMultiFdSinkFlags; typedef enum @@ -180,13 +180,13 @@ void (*client_removed) (GstElement *element, gchar *host, gint fd); }; -GType gst_multifdsink_get_type (void); +GType gst_multi_fd_sink_get_type (void); -void gst_multifdsink_add (GstMultiFdSink *sink, int fd); -void gst_multifdsink_remove (GstMultiFdSink *sink, int fd); -void gst_multifdsink_clear (GstMultiFdSink *sink); -GValueArray* gst_multifdsink_get_stats (GstMultiFdSink *sink, int fd); +void gst_multi_fd_sink_add (GstMultiFdSink *sink, int fd); +void gst_multi_fd_sink_remove (GstMultiFdSink *sink, int fd); +void gst_multi_fd_sink_clear (GstMultiFdSink *sink); +GValueArray* gst_multi_fd_sink_get_stats (GstMultiFdSink *sink, int fd); G_END_DECLS -#endif /* __GST_MULTIFDSINK_H__ */ +#endif /* __GST_MULTI_FD_SINK_H__ */ Index: gsttcpclientsink.c RCS file: /cvs/gstreamer/gst-plugins-base/gst/tcp/gsttcpclientsink.c,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- gsttcpclientsink.c 12 Oct 2005 14:32:28 -0000 1.15 +++ gsttcpclientsink.c 1 Dec 2005 01:21:49 -0000 1.16 @@ -27,7 +27,7 @@ #include "gsttcpclientsink.h" -static GstElementDetails gst_tcpclientsink_details = +static GstElementDetails gst_tcp_client_sink_details = GST_ELEMENT_DETAILS ("TCP Client sink", "Send data as a client over the network via TCP", @@ -58,29 +58,30 @@ GST_PAD_ALWAYS, GST_STATIC_CAPS_ANY); -static void gst_tcpclientsink_base_init (gpointer g_class); -static void gst_tcpclientsink_class_init (GstTCPClientSink * klass); -static void gst_tcpclientsink_init (GstTCPClientSink * tcpclientsink); -static void gst_tcpclientsink_finalize (GObject * gobject); +static void gst_tcp_client_sink_base_init (gpointer g_class); +static void gst_tcp_client_sink_class_init (GstTCPClientSink * klass); +static void gst_tcp_client_sink_init (GstTCPClientSink * tcpclientsink); +static void gst_tcp_client_sink_finalize (GObject * gobject); -static gboolean gst_tcpclientsink_setcaps (GstBaseSink * bsink, GstCaps * caps); -static GstFlowReturn gst_tcpclientsink_render (GstBaseSink * bsink, +static gboolean gst_tcp_client_sink_setcaps (GstBaseSink * bsink, + GstCaps * caps); +static GstFlowReturn gst_tcp_client_sink_render (GstBaseSink * bsink, -static GstStateChangeReturn gst_tcpclientsink_change_state (GstElement * +static GstStateChangeReturn gst_tcp_client_sink_change_state (GstElement * -static void gst_tcpclientsink_set_property (GObject * object, guint prop_id, +static void gst_tcp_client_sink_set_property (GObject * object, guint prop_id, -static void gst_tcpclientsink_get_property (GObject * object, guint prop_id, +static void gst_tcp_client_sink_get_property (GObject * object, guint prop_id, static GstElementClass *parent_class = NULL; -/*static guint gst_tcpclientsink_signals[LAST_SIGNAL] = { 0 }; */ +/*static guint gst_tcp_client_sink_signals[LAST_SIGNAL] = { 0 }; */ GType -gst_tcpclientsink_get_type (void) +gst_tcp_client_sink_get_type (void) static GType tcpclientsink_type = 0; @@ -88,14 +89,14 @@ if (!tcpclientsink_type) { static const GTypeInfo tcpclientsink_info = { sizeof (GstTCPClientSinkClass), - gst_tcpclientsink_base_init, + gst_tcp_client_sink_base_init, NULL, - (GClassInitFunc) gst_tcpclientsink_class_init, + (GClassInitFunc) gst_tcp_client_sink_class_init, sizeof (GstTCPClientSink), 0, - (GInstanceInitFunc) gst_tcpclientsink_init, + (GInstanceInitFunc) gst_tcp_client_sink_init, NULL }; @@ -107,18 +108,18 @@ -gst_tcpclientsink_base_init (gpointer g_class) +gst_tcp_client_sink_base_init (gpointer g_class) - gst_element_class_set_details (element_class, &gst_tcpclientsink_details); + gst_element_class_set_details (element_class, &gst_tcp_client_sink_details); -gst_tcpclientsink_class_init (GstTCPClientSink * klass) +gst_tcp_client_sink_class_init (GstTCPClientSink * klass) @@ -130,9 +131,9 @@ parent_class = g_type_class_ref (GST_TYPE_BASE_SINK); - gobject_class->set_property = gst_tcpclientsink_set_property; - gobject_class->get_property = gst_tcpclientsink_get_property; - gobject_class->finalize = gst_tcpclientsink_finalize; + gobject_class->set_property = gst_tcp_client_sink_set_property; + gobject_class->get_property = gst_tcp_client_sink_get_property; + gobject_class->finalize = gst_tcp_client_sink_finalize; g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_HOST, g_param_spec_string ("host", "Host", "The host/IP to send the packets to", @@ -144,39 +145,39 @@ GST_TYPE_TCP_PROTOCOL, GST_TCP_PROTOCOL_NONE, G_PARAM_READWRITE)); - gstelement_class->change_state = gst_tcpclientsink_change_state; + gstelement_class->change_state = gst_tcp_client_sink_change_state; - gstbasesink_class->set_caps = gst_tcpclientsink_setcaps; - gstbasesink_class->render = gst_tcpclientsink_render; + gstbasesink_class->set_caps = gst_tcp_client_sink_setcaps; + gstbasesink_class->render = gst_tcp_client_sink_render; GST_DEBUG_CATEGORY_INIT (tcpclientsink_debug, "tcpclientsink", 0, "TCP sink"); -gst_tcpclientsink_init (GstTCPClientSink * this) +gst_tcp_client_sink_init (GstTCPClientSink * this) this->host = g_strdup (TCP_DEFAULT_HOST); this->port = TCP_DEFAULT_PORT; this->sock_fd = -1; this->protocol = GST_TCP_PROTOCOL_NONE; - GST_OBJECT_FLAG_UNSET (this, GST_TCPCLIENTSINK_OPEN); + GST_OBJECT_FLAG_UNSET (this, GST_TCP_CLIENT_SINK_OPEN); -gst_tcpclientsink_finalize (GObject * gobject) +gst_tcp_client_sink_finalize (GObject * gobject) - GstTCPClientSink *this = GST_TCPCLIENTSINK (gobject); + GstTCPClientSink *this = GST_TCP_CLIENT_SINK (gobject); g_free (this->host); -gst_tcpclientsink_setcaps (GstBaseSink * bsink, GstCaps * caps) +gst_tcp_client_sink_setcaps (GstBaseSink * bsink, GstCaps * caps) GstTCPClientSink *sink; - sink = GST_TCPCLIENTSINK (bsink); + sink = GST_TCP_CLIENT_SINK (bsink); /* write the buffer header if we have one */ switch (sink->protocol) { @@ -216,15 +217,15 @@ -gst_tcpclientsink_render (GstBaseSink * bsink, GstBuffer * buf) +gst_tcp_client_sink_render (GstBaseSink * bsink, GstBuffer * buf) size_t wrote = 0; gint size; - g_return_val_if_fail (GST_OBJECT_FLAG_IS_SET (sink, GST_TCPCLIENTSINK_OPEN), + g_return_val_if_fail (GST_OBJECT_FLAG_IS_SET (sink, GST_TCP_CLIENT_SINK_OPEN), GST_FLOW_WRONG_STATE); size = GST_BUFFER_SIZE (buf); @@ -271,13 +272,13 @@ -gst_tcpclientsink_set_property (GObject * object, guint prop_id, +gst_tcp_client_sink_set_property (GObject * object, guint prop_id, GstTCPClientSink *tcpclientsink; - g_return_if_fail (GST_IS_TCPCLIENTSINK (object)); - tcpclientsink = GST_TCPCLIENTSINK (object); + g_return_if_fail (GST_IS_TCP_CLIENT_SINK (object)); + tcpclientsink = GST_TCP_CLIENT_SINK (object); case ARG_HOST: @@ -302,13 +303,13 @@ -gst_tcpclientsink_get_property (GObject * object, guint prop_id, GValue * value, - GParamSpec * pspec) +gst_tcp_client_sink_get_property (GObject * object, guint prop_id, + GValue * value, GParamSpec * pspec) @@ -330,12 +331,12 @@ -gst_tcpclientsink_start (GstTCPClientSink * this) +gst_tcp_client_sink_start (GstTCPClientSink * this) int ret; gchar *ip; - if (GST_OBJECT_FLAG_IS_SET (this, GST_TCPCLIENTSINK_OPEN)) + if (GST_OBJECT_FLAG_IS_SET (this, GST_TCP_CLIENT_SINK_OPEN)) /* reset caps_sent flag */ @@ -388,7 +389,7 @@ - GST_OBJECT_FLAG_SET (this, GST_TCPCLIENTSINK_OPEN); + GST_OBJECT_FLAG_SET (this, GST_TCP_CLIENT_SINK_OPEN); this->data_written = 0; @@ -396,9 +397,9 @@ -gst_tcpclientsink_stop (GstTCPClientSink * this) +gst_tcp_client_sink_stop (GstTCPClientSink * this) - if (!GST_OBJECT_FLAG_IS_SET (this, GST_TCPCLIENTSINK_OPEN)) + if (!GST_OBJECT_FLAG_IS_SET (this, GST_TCP_CLIENT_SINK_OPEN)) if (this->sock_fd != -1) { @@ -406,23 +407,24 @@ this->sock_fd = -1; -gst_tcpclientsink_change_state (GstElement * element, GstStateChange transition) +gst_tcp_client_sink_change_state (GstElement * element, + GstStateChange transition) GstStateChangeReturn res; - sink = GST_TCPCLIENTSINK (element); + sink = GST_TCP_CLIENT_SINK (element); - if (!gst_tcpclientsink_start (GST_TCPCLIENTSINK (element))) + if (!gst_tcp_client_sink_start (GST_TCP_CLIENT_SINK (element))) goto start_failure; @@ -432,7 +434,7 @@ - gst_tcpclientsink_stop (GST_TCPCLIENTSINK (element)); + gst_tcp_client_sink_stop (GST_TCP_CLIENT_SINK (element)); Index: gsttcpclientsink.h RCS file: /cvs/gstreamer/gst-plugins-base/gst/tcp/gsttcpclientsink.h,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- gsttcpclientsink.h 12 Oct 2005 14:32:28 -0000 1.6 +++ gsttcpclientsink.h 1 Dec 2005 01:21:49 -0000 1.7 @@ -18,8 +18,8 @@ -#ifndef __GST_TCPCLIENTSINK_H__ -#define __GST_TCPCLIENTSINK_H__ +#ifndef __GST_TCP_CLIENT_SINK_H__ +#define __GST_TCP_CLIENT_SINK_H__ @@ -44,24 +44,24 @@ #include <arpa/inet.h> -#define GST_TYPE_TCPCLIENTSINK \ - (gst_tcpclientsink_get_type()) -#define GST_TCPCLIENTSINK(obj) \ - (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_TCPCLIENTSINK,GstTCPClientSink)) -#define GST_TCPCLIENTSINK_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_TCPCLIENTSINK,GstTCPClientSink)) -#define GST_IS_TCPCLIENTSINK(obj) \ - (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_TCPCLIENTSINK)) -#define GST_IS_TCPCLIENTSINK_CLASS(obj) \ - (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_TCPCLIENTSINK)) +#define GST_TYPE_TCP_CLIENT_SINK \ + (gst_tcp_client_sink_get_type()) +#define GST_TCP_CLIENT_SINK(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_TCP_CLIENT_SINK,GstTCPClientSink)) +#define GST_TCP_CLIENT_SINK_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_TCP_CLIENT_SINK,GstTCPClientSink)) +#define GST_IS_TCP_CLIENT_SINK(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_TCP_CLIENT_SINK)) +#define GST_IS_TCP_CLIENT_SINK_CLASS(obj) \ + (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_TCP_CLIENT_SINK)) typedef struct _GstTCPClientSink GstTCPClientSink; typedef struct _GstTCPClientSinkClass GstTCPClientSinkClass; - GST_TCPCLIENTSINK_OPEN = (GST_ELEMENT_FLAG_LAST << 0), + GST_TCP_CLIENT_SINK_OPEN = (GST_ELEMENT_FLAG_LAST << 0), - GST_TCPCLIENTSINK_FLAG_LAST = (GST_ELEMENT_FLAG_LAST << 2), + GST_TCP_CLIENT_SINK_FLAG_LAST = (GST_ELEMENT_FLAG_LAST << 2), } GstTCPClientSinkFlags; struct _GstTCPClientSink { @@ -84,8 +84,8 @@ GstBaseSinkClass parent_class; -GType gst_tcpclientsink_get_type(void); +GType gst_tcp_client_sink_get_type(void); -#endif /* __GST_TCPCLIENTSINK_H__ */ +#endif /* __GST_TCP_CLIENT_SINK_H__ */ Index: gsttcpclientsrc.c RCS file: /cvs/gstreamer/gst-plugins-base/gst/tcp/gsttcpclientsrc.c,v retrieving revision 1.31 retrieving revision 1.32 diff -u -d -r1.31 -r1.32 --- gsttcpclientsrc.c 26 Oct 2005 11:43:49 -0000 1.31 +++ gsttcpclientsrc.c 1 Dec 2005 01:21:49 -0000 1.32 @@ -56,7 +56,7 @@ #define MAX_READ_SIZE 4 * 1024 -static GstElementDetails gst_tcpclientsrc_details = +static GstElementDetails gst_tcp_client_src_details = GST_ELEMENT_DETAILS ("TCP Client source", "Source/Network", "Receive data as a client over the network via TCP", @@ -77,39 +77,39 @@ -GST_BOILERPLATE (GstTCPClientSrc, gst_tcpclientsrc, GstPushSrc, +GST_BOILERPLATE (GstTCPClientSrc, gst_tcp_client_src, GstPushSrc, GST_TYPE_PUSH_SRC); -static void gst_tcpclientsrc_finalize (GObject * gobject); +static void gst_tcp_client_src_finalize (GObject * gobject); -static GstCaps *gst_tcpclientsrc_getcaps (GstBaseSrc * psrc); +static GstCaps *gst_tcp_client_src_getcaps (GstBaseSrc * psrc); -static GstFlowReturn gst_tcpclientsrc_create (GstPushSrc * psrc, +static GstFlowReturn gst_tcp_client_src_create (GstPushSrc * psrc, GstBuffer ** outbuf); -static gboolean gst_tcpclientsrc_stop (GstBaseSrc * bsrc); -static gboolean gst_tcpclientsrc_start (GstBaseSrc * bsrc); -static gboolean gst_tcpclientsrc_unlock (GstBaseSrc * bsrc); +static gboolean gst_tcp_client_src_stop (GstBaseSrc * bsrc); +static gboolean gst_tcp_client_src_start (GstBaseSrc * bsrc); +static gboolean gst_tcp_client_src_unlock (GstBaseSrc * bsrc); -static void gst_tcpclientsrc_set_property (GObject * object, guint prop_id, +static void gst_tcp_client_src_set_property (GObject * object, guint prop_id, -static void gst_tcpclientsrc_get_property (GObject * object, guint prop_id, +static void gst_tcp_client_src_get_property (GObject * object, guint prop_id, -gst_tcpclientsrc_base_init (gpointer g_class) +gst_tcp_client_src_base_init (gpointer g_class) gst_static_pad_template_get (&srctemplate)); - gst_element_class_set_details (element_class, &gst_tcpclientsrc_details); + gst_element_class_set_details (element_class, &gst_tcp_client_src_details); -gst_tcpclientsrc_class_init (GstTCPClientSrcClass * klass) +gst_tcp_client_src_class_init (GstTCPClientSrcClass * klass) GstBaseSrcClass *gstbasesrc_class; @@ -119,9 +119,9 @@ gstbasesrc_class = (GstBaseSrcClass *) klass; gstpush_src_class = (GstPushSrcClass *) klass; - gobject_class->set_property = gst_tcpclientsrc_set_property; - gobject_class->get_property = gst_tcpclientsrc_get_property; - gobject_class->finalize = gst_tcpclientsrc_finalize; + gobject_class->set_property = gst_tcp_client_src_set_property; + gobject_class->get_property = gst_tcp_client_src_get_property; + gobject_class->finalize = gst_tcp_client_src_finalize; g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_HOST, g_param_spec_string ("host", "Host", @@ -134,19 +134,19 @@ - gstbasesrc_class->get_caps = gst_tcpclientsrc_getcaps; - gstbasesrc_class->start = gst_tcpclientsrc_start; - gstbasesrc_class->stop = gst_tcpclientsrc_stop; - gstbasesrc_class->unlock = gst_tcpclientsrc_unlock; + gstbasesrc_class->get_caps = gst_tcp_client_src_getcaps; + gstbasesrc_class->start = gst_tcp_client_src_start; + gstbasesrc_class->stop = gst_tcp_client_src_stop; + gstbasesrc_class->unlock = gst_tcp_client_src_unlock; - gstpush_src_class->create = gst_tcpclientsrc_create; + gstpush_src_class->create = gst_tcp_client_src_create; GST_DEBUG_CATEGORY_INIT (tcpclientsrc_debug, "tcpclientsrc", 0, "TCP Client Source"); -gst_tcpclientsrc_init (GstTCPClientSrc * this, GstTCPClientSrcClass * g_class) +gst_tcp_client_src_init (GstTCPClientSrc * this, GstTCPClientSrcClass * g_class) @@ -159,26 +159,26 @@ gst_base_src_set_live (GST_BASE_SRC (this), TRUE); - GST_OBJECT_FLAG_UNSET (this, GST_TCPCLIENTSRC_OPEN); + GST_OBJECT_FLAG_UNSET (this, GST_TCP_CLIENT_SRC_OPEN); -gst_tcpclientsrc_finalize (GObject * gobject) +gst_tcp_client_src_finalize (GObject * gobject) - GstTCPClientSrc *this = GST_TCPCLIENTSRC (gobject); + GstTCPClientSrc *this = GST_TCP_CLIENT_SRC (gobject); static GstCaps * -gst_tcpclientsrc_getcaps (GstBaseSrc * bsrc) +gst_tcp_client_src_getcaps (GstBaseSrc * bsrc) GstTCPClientSrc *src; GstCaps *caps = NULL; - src = GST_TCPCLIENTSRC (bsrc); + src = GST_TCP_CLIENT_SRC (bsrc); - if (!GST_OBJECT_FLAG_IS_SET (src, GST_TCPCLIENTSRC_OPEN)) + if (!GST_OBJECT_FLAG_IS_SET (src, GST_TCP_CLIENT_SRC_OPEN)) caps = gst_caps_new_any (); else if (src->caps) caps = gst_caps_copy (src->caps); @@ -190,14 +190,14 @@ -gst_tcpclientsrc_create (GstPushSrc * psrc, GstBuffer ** outbuf) +gst_tcp_client_src_create (GstPushSrc * psrc, GstBuffer ** outbuf) GstFlowReturn ret = GST_FLOW_OK; - src = GST_TCPCLIENTSRC (psrc); + src = GST_TCP_CLIENT_SRC (psrc); goto wrong_state; GST_LOG_OBJECT (src, "asked for a buffer"); @@ -263,10 +263,10 @@ -gst_tcpclientsrc_set_property (GObject * object, guint prop_id, +gst_tcp_client_src_set_property (GObject * object, guint prop_id, - GstTCPClientSrc *tcpclientsrc = GST_TCPCLIENTSRC (object); + GstTCPClientSrc *tcpclientsrc = GST_TCP_CLIENT_SRC (object); case PROP_HOST: @@ -291,10 +291,10 @@ -gst_tcpclientsrc_get_property (GObject * object, guint prop_id, GValue * value, +gst_tcp_client_src_get_property (GObject * object, guint prop_id, @@ -315,11 +315,11 @@ /* create a socket for connecting to remote server */ -gst_tcpclientsrc_start (GstBaseSrc * bsrc) +gst_tcp_client_src_start (GstBaseSrc * bsrc) - GstTCPClientSrc *src = GST_TCPCLIENTSRC (bsrc); + GstTCPClientSrc *src = GST_TCP_CLIENT_SRC (bsrc); /* create the control sockets before anything */ if (socketpair (PF_UNIX, SOCK_STREAM, 0, CONTROL_SOCKETS (src)) < 0) @@ -337,7 +337,7 @@ GST_DEBUG_OBJECT (src, "opened receiving client socket with fd %d", src->sock_fd); - GST_OBJECT_FLAG_SET (src, GST_TCPCLIENTSRC_OPEN); + GST_OBJECT_FLAG_SET (src, GST_TCP_CLIENT_SRC_OPEN); /* look up name if we need to */ if (!(ip = gst_tcp_host_to_ip (GST_ELEMENT (src), src->host))) @@ -357,7 +357,7 @@ sizeof (src->server_sin)); if (ret) { - gst_tcpclientsrc_stop (GST_BASE_SRC (src)); + gst_tcp_client_src_stop (GST_BASE_SRC (src)); switch (errno) { case ECONNREFUSED: GST_ELEMENT_ERROR (src, RESOURCE, OPEN_READ, @@ -388,7 +388,7 @@ name_resolv: { @@ -397,11 +397,11 @@ * unset OPEN flag * used both to recover from errors and go to NULL state */ -gst_tcpclientsrc_stop (GstBaseSrc * bsrc) +gst_tcp_client_src_stop (GstBaseSrc * bsrc) GST_DEBUG_OBJECT (src, "closing socket"); if (src->sock_fd != -1) { @@ -413,7 +413,7 @@ gst_caps_unref (src->caps); src->caps = NULL; - GST_OBJECT_FLAG_UNSET (src, GST_TCPCLIENTSRC_OPEN); + GST_OBJECT_FLAG_UNSET (src, GST_TCP_CLIENT_SRC_OPEN); close (READ_SOCKET (src)); close (WRITE_SOCKET (src)); @@ -425,9 +425,9 @@ /* will be called only between calls to start() and stop() */ -gst_tcpclientsrc_unlock (GstBaseSrc * bsrc) +gst_tcp_client_src_unlock (GstBaseSrc * bsrc) SEND_COMMAND (src, CONTROL_STOP); Index: gsttcpclientsrc.h RCS file: /cvs/gstreamer/gst-plugins-base/gst/tcp/gsttcpclientsrc.h,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- gsttcpclientsrc.h 26 Oct 2005 11:43:49 -0000 1.12 +++ gsttcpclientsrc.h 1 Dec 2005 01:21:49 -0000 1.13 -#ifndef __GST_TCPCLIENTSRC_H__ -#define __GST_TCPCLIENTSRC_H__ +#ifndef __GST_TCP_CLIENT_SRC_H__ +#define __GST_TCP_CLIENT_SRC_H__ #include <gst/base/gstpushsrc.h> @@ -35,24 +35,24 @@ -#define GST_TYPE_TCPCLIENTSRC \ - (gst_tcpclientsrc_get_type()) -#define GST_TCPCLIENTSRC(obj) \ - (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_TCPCLIENTSRC,GstTCPClientSrc)) -#define GST_TCPCLIENTSRC_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_TCPCLIENTSRC,GstTCPClientSrc)) -#define GST_IS_TCPCLIENTSRC(obj) \ - (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_TCPCLIENTSRC)) -#define GST_IS_TCPCLIENTSRC_CLASS(obj) \ - (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_TCPCLIENTSRC)) +#define GST_TYPE_TCP_CLIENT_SRC \ + (gst_tcp_client_src_get_type()) +#define GST_TCP_CLIENT_SRC(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_TCP_CLIENT_SRC,GstTCPClientSrc)) +#define GST_TCP_CLIENT_SRC_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_TCP_CLIENT_SRC,GstTCPClientSrc)) +#define GST_IS_TCP_CLIENT_SRC(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_TCP_CLIENT_SRC)) +#define GST_IS_TCP_CLIENT_SRC_CLASS(obj) \ + (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_TCP_CLIENT_SRC)) typedef struct _GstTCPClientSrc GstTCPClientSrc; typedef struct _GstTCPClientSrcClass GstTCPClientSrcClass; - GST_TCPCLIENTSRC_OPEN = (GST_ELEMENT_FLAG_LAST << 0), + GST_TCP_CLIENT_SRC_OPEN = (GST_ELEMENT_FLAG_LAST << 0), - GST_TCPCLIENTSRC_FLAG_LAST = (GST_ELEMENT_FLAG_LAST << 2) + GST_TCP_CLIENT_SRC_FLAG_LAST = (GST_ELEMENT_FLAG_LAST << 2) } GstTCPClientSrcFlags; struct _GstTCPClientSrc { @@ -76,8 +76,8 @@ GstPushSrcClass parent_class; -GType gst_tcpclientsrc_get_type (void); +GType gst_tcp_client_src_get_type (void); -#endif /* __GST_TCPCLIENTSRC_H__ */ +#endif /* __GST_TCP_CLIENT_SRC_H__ */ Index: gsttcpplugin.c RCS file: /cvs/gstreamer/gst-plugins-base/gst/tcp/gsttcpplugin.c,v --- gsttcpplugin.c 16 Oct 2005 13:54:41 -0000 1.12 +++ gsttcpplugin.c 1 Dec 2005 01:21:49 -0000 1.13 @@ -36,19 +36,19 @@ gst_dp_init (); if (!gst_element_register (plugin, "tcpclientsink", GST_RANK_NONE, - GST_TYPE_TCPCLIENTSINK)) + GST_TYPE_TCP_CLIENT_SINK)) if (!gst_element_register (plugin, "tcpclientsrc", GST_RANK_NONE, - GST_TYPE_TCPCLIENTSRC)) + GST_TYPE_TCP_CLIENT_SRC)) if (!gst_element_register (plugin, "tcpserversink", GST_RANK_NONE, - GST_TYPE_TCPSERVERSINK)) + GST_TYPE_TCP_SERVER_SINK)) if (!gst_element_register (plugin, "tcpserversrc", GST_RANK_NONE, - GST_TYPE_TCPSERVERSRC)) + GST_TYPE_TCP_SERVER_SRC)) if (!gst_element_register (plugin, "multifdsink", GST_RANK_NONE, - GST_TYPE_MULTIFDSINK)) + GST_TYPE_MULTI_FD_SINK)) GST_DEBUG_CATEGORY_INIT (tcp_debug, "tcp", 0, "TCP calls"); Index: gsttcpserversink.c RCS file: /cvs/gstreamer/gst-plugins-base/gst/tcp/gsttcpserversink.c,v retrieving revision 1.26 retrieving revision 1.27 diff -u -d -r1.26 -r1.27 --- gsttcpserversink.c 17 Oct 2005 13:46:22 -0000 1.26 +++ gsttcpserversink.c 1 Dec 2005 01:21:49 -0000 1.27 @@ -43,7 +43,7 @@ #define TCP_BACKLOG 5 -static GstElementDetails gst_tcpserversink_details = +static GstElementDetails gst_tcp_server_sink_details = GST_ELEMENT_DETAILS ("TCP Server sink", "Send data as a server over the network via TCP", @@ -59,34 +59,34 @@ ARG_PORT, -static void gst_tcpserversink_finalize (GObject * gobject); +static void gst_tcp_server_sink_finalize (GObject * gobject); -static gboolean gst_tcpserversink_handle_wait (GstMultiFdSink * sink, +static gboolean gst_tcp_server_sink_handle_wait (GstMultiFdSink * sink, GstFDSet * set); -static gboolean gst_tcpserversink_init_send (GstMultiFdSink * this); -static gboolean gst_tcpserversink_close (GstMultiFdSink * this); -static void gst_tcpserversink_removed (GstMultiFdSink * sink, int fd); +static gboolean gst_tcp_server_sink_init_send (GstMultiFdSink * this); +static gboolean gst_tcp_server_sink_close (GstMultiFdSink * this); +static void gst_tcp_server_sink_removed (GstMultiFdSink * sink, int fd); -static void gst_tcpserversink_set_property (GObject * object, guint prop_id, +static void gst_tcp_server_sink_set_property (GObject * object, guint prop_id, -static void gst_tcpserversink_get_property (GObject * object, guint prop_id, +static void gst_tcp_server_sink_get_property (GObject * object, guint prop_id, -GST_BOILERPLATE (GstTCPServerSink, gst_tcpserversink, GstMultiFdSink, - GST_TYPE_MULTIFDSINK); +GST_BOILERPLATE (GstTCPServerSink, gst_tcp_server_sink, GstMultiFdSink, + GST_TYPE_MULTI_FD_SINK); -gst_tcpserversink_base_init (gpointer g_class) +gst_tcp_server_sink_base_init (gpointer g_class) - gst_element_class_set_details (element_class, &gst_tcpserversink_details); + gst_element_class_set_details (element_class, &gst_tcp_server_sink_details); -gst_tcpserversink_class_init (GstTCPServerSinkClass * klass) +gst_tcp_server_sink_class_init (GstTCPServerSinkClass * klass) GstMultiFdSinkClass *gstmultifdsink_class; @@ -94,9 +94,9 @@ gobject_class = (GObjectClass *) klass; gstmultifdsink_class = (GstMultiFdSinkClass *) klass; - gobject_class->set_property = gst_tcpserversink_set_property; - gobject_class->get_property = gst_tcpserversink_get_property; - gobject_class->finalize = gst_tcpserversink_finalize; + gobject_class->set_property = gst_tcp_server_sink_set_property; + gobject_class->get_property = gst_tcp_server_sink_get_property; + gobject_class->finalize = gst_tcp_server_sink_finalize; g_param_spec_string ("host", "host", "The host/IP to send the packets to", @@ -105,16 +105,17 @@ g_param_spec_int ("port", "port", "The port to send the packets to", 0, TCP_HIGHEST_PORT, TCP_DEFAULT_PORT, G_PARAM_READWRITE)); - gstmultifdsink_class->init = gst_tcpserversink_init_send; - gstmultifdsink_class->wait = gst_tcpserversink_handle_wait; - gstmultifdsink_class->close = gst_tcpserversink_close; - gstmultifdsink_class->removed = gst_tcpserversink_removed; + gstmultifdsink_class->init = gst_tcp_server_sink_init_send; + gstmultifdsink_class->wait = gst_tcp_server_sink_handle_wait; + gstmultifdsink_class->close = gst_tcp_server_sink_close; + gstmultifdsink_class->removed = gst_tcp_server_sink_removed; GST_DEBUG_CATEGORY_INIT (tcpserversink_debug, "tcpserversink", 0, "TCP sink"); -gst_tcpserversink_init (GstTCPServerSink * this, GstTCPServerSinkClass * klass) +gst_tcp_server_sink_init (GstTCPServerSink * this, + GstTCPServerSinkClass * klass) this->server_port = TCP_DEFAULT_PORT; /* should support as minimum 576 for IPV4 and 1500 for IPV6 */ @@ -125,9 +126,9 @@ -gst_tcpserversink_finalize (GObject * gobject) +gst_tcp_server_sink_finalize (GObject * gobject) - GstTCPServerSink *this = GST_TCPSERVERSINK (gobject); + GstTCPServerSink *this = GST_TCP_SERVER_SINK (gobject); @@ -135,7 +136,7 @@ /* handle a read request on the server, * which indicates a new client connection */ -gst_tcpserversink_handle_server_read (GstTCPServerSink * sink) +gst_tcp_server_sink_handle_server_read (GstTCPServerSink * sink) /* new client */ int client_sock_fd; @@ -157,7 +158,7 @@ - gst_multifdsink_add (GST_MULTIFDSINK (sink), client_sock_fd); + gst_multi_fd_sink_add (GST_MULTI_FD_SINK (sink), client_sock_fd); GST_DEBUG_OBJECT (sink, "added new client ip %s with fd %d", inet_ntoa (client_address.sin_addr), client_sock_fd); @@ -166,9 +167,9 @@ -gst_tcpserversink_removed (GstMultiFdSink * sink, int fd) +gst_tcp_server_sink_removed (GstMultiFdSink * sink, int fd) - GstTCPServerSink *this = GST_TCPSERVERSINK (sink); + GstTCPServerSink *this = GST_TCP_SERVER_SINK (sink); GST_LOG_OBJECT (this, "closing fd %d", fd); if (close (fd) < 0) { @@ -178,13 +179,13 @@ -gst_tcpserversink_handle_wait (GstMultiFdSink * sink, GstFDSet * set) +gst_tcp_server_sink_handle_wait (GstMultiFdSink * sink, GstFDSet * set) if (gst_fdset_fd_can_read (set, &this->server_sock)) { /* handle new client connection on server socket */ - if (!gst_tcpserversink_handle_server_read (this)) { + if (!gst_tcp_server_sink_handle_server_read (this)) { GST_ELEMENT_ERROR (this, RESOURCE, READ, (NULL), ("client connection failed: %s", g_strerror (errno))); @@ -194,13 +195,13 @@ -gst_tcpserversink_set_property (GObject * object, guint prop_id, +gst_tcp_server_sink_set_property (GObject * object, guint prop_id, GstTCPServerSink *sink; - g_return_if_fail (GST_IS_TCPSERVERSINK (object)); - sink = GST_TCPSERVERSINK (object); + g_return_if_fail (GST_IS_TCP_SERVER_SINK (object)); + sink = GST_TCP_SERVER_SINK (object); @@ -222,13 +223,13 @@ -gst_tcpserversink_get_property (GObject * object, guint prop_id, GValue * value, +gst_tcp_server_sink_get_property (GObject * object, guint prop_id, @@ -247,10 +248,10 @@ -gst_tcpserversink_init_send (GstMultiFdSink * parent) +gst_tcp_server_sink_init_send (GstMultiFdSink * parent) - GstTCPServerSink *this = GST_TCPSERVERSINK (parent); + GstTCPServerSink *this = GST_TCP_SERVER_SINK (parent); /* create sending server socket */ if ((this->server_sock.fd = socket (AF_INET, SOCK_STREAM, 0)) == -1) { @@ -324,9 +325,9 @@ -gst_tcpserversink_close (GstMultiFdSink * parent) +gst_tcp_server_sink_close (GstMultiFdSink * parent) if (this->server_sock.fd != -1) { gst_fdset_remove_fd (parent->fdset, &this->server_sock); Index: gsttcpserversink.h RCS file: /cvs/gstreamer/gst-plugins-base/gst/tcp/gsttcpserversink.h,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- gsttcpserversink.h 12 Oct 2005 14:32:28 -0000 1.10 +++ gsttcpserversink.h 1 Dec 2005 01:21:49 -0000 1.11 -#ifndef __GST_TCPSERVERSINK_H__ -#define __GST_TCPSERVERSINK_H__ +#ifndef __GST_TCP_SERVER_SINK_H__ +#define __GST_TCP_SERVER_SINK_H__ @@ -42,24 +42,24 @@ #include "gstmultifdsink.h" -#define GST_TYPE_TCPSERVERSINK \ - (gst_tcpserversink_get_type()) -#define GST_TCPSERVERSINK(obj) \ - (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_TCPSERVERSINK,GstTCPServerSink)) -#define GST_TCPSERVERSINK_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_TCPSERVERSINK,GstTCPServerSink)) -#define GST_IS_TCPSERVERSINK(obj) \ - (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_TCPSERVERSINK)) -#define GST_IS_TCPSERVERSINK_CLASS(obj) \ - (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_TCPSERVERSINK)) +#define GST_TYPE_TCP_SERVER_SINK \ + (gst_tcp_server_sink_get_type()) +#define GST_TCP_SERVER_SINK(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_TCP_SERVER_SINK,GstTCPServerSink)) +#define GST_TCP_SERVER_SINK_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_TCP_SERVER_SINK,GstTCPServerSink)) +#define GST_IS_TCP_SERVER_SINK(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_TCP_SERVER_SINK)) +#define GST_IS_TCP_SERVER_SINK_CLASS(obj) \ + (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_TCP_SERVER_SINK)) typedef struct _GstTCPServerSink GstTCPServerSink; typedef struct _GstTCPServerSinkClass GstTCPServerSinkClass; - GST_TCPSERVERSINK_OPEN = (GST_ELEMENT_FLAG_LAST << 0), + GST_TCP_SERVER_SINK_OPEN = (GST_ELEMENT_FLAG_LAST << 0), - GST_TCPSERVERSINK_FLAG_LAST = (GST_ELEMENT_FLAG_LAST << 2) + GST_TCP_SERVER_SINK_FLAG_LAST = (GST_ELEMENT_FLAG_LAST << 2) } GstTCPServerSinkFlags; struct _GstTCPServerSink { @@ -78,8 +78,8 @@ GstMultiFdSinkClass parent_class; -GType gst_tcpserversink_get_type (void); +GType gst_tcp_server_sink_get_type (void); -#endif /* __GST_TCPSERVERSINK_H__ */ +#endif /* __GST_TCP_SERVER_SINK_H__ */ Index: gsttcpserversrc.c RCS file: /cvs/gstreamer/gst-plugins-base/gst/tcp/gsttcpserversrc.c,v retrieving revision 1.25 diff -u -d -r1.25 -r1.26 --- gsttcpserversrc.c 26 Oct 2005 11:43:49 -0000 1.25 +++ gsttcpserversrc.c 1 Dec 2005 01:21:49 -0000 1.26 #define TCP_BACKLOG 1 /* client connection queue */ -static GstElementDetails gst_tcpserversrc_details = +static GstElementDetails gst_tcp_server_src_details = GST_ELEMENT_DETAILS ("TCP Server source", "Receive data as a server over the network via TCP", @@ -77,37 +77,37 @@ -GST_BOILERPLATE (GstTCPServerSrc, gst_tcpserversrc, GstPushSrc, +GST_BOILERPLATE (GstTCPServerSrc, gst_tcp_server_src, GstPushSrc, -static void gst_tcpserversrc_finalize (GObject * gobject); +static void gst_tcp_server_src_finalize (GObject * gobject); -static gboolean gst_tcpserversrc_start (GstBaseSrc * bsrc); -static gboolean gst_tcpserversrc_stop (GstBaseSrc * bsrc); -static gboolean gst_tcpserversrc_unlock (GstBaseSrc * bsrc); -static GstFlowReturn gst_tcpserversrc_create (GstPushSrc * psrc, +static gboolean gst_tcp_server_src_start (GstBaseSrc * bsrc); +static gboolean gst_tcp_server_src_stop (GstBaseSrc * bsrc); +static gboolean gst_tcp_server_src_unlock (GstBaseSrc * bsrc); +static GstFlowReturn gst_tcp_server_src_create (GstPushSrc * psrc, GstBuffer ** buf); -static void gst_tcpserversrc_set_property (GObject * object, guint prop_id, +static void gst_tcp_server_src_set_property (GObject * object, guint prop_id, -static void gst_tcpserversrc_get_property (GObject * object, guint prop_id, +static void gst_tcp_server_src_get_property (GObject * object, guint prop_id, -gst_tcpserversrc_base_init (gpointer g_class) +gst_tcp_server_src_base_init (gpointer g_class) - gst_element_class_set_details (element_class, &gst_tcpserversrc_details); + gst_element_class_set_details (element_class, &gst_tcp_server_src_details); -gst_tcpserversrc_class_init (GstTCPServerSrcClass * klass) +gst_tcp_server_src_class_init (GstTCPServerSrcClass * klass) @@ -117,9 +117,9 @@ - gobject_class->set_property = gst_tcpserversrc_set_property; - gobject_class->get_property = gst_tcpserversrc_get_property; - gobject_class->finalize = gst_tcpserversrc_finalize; + gobject_class->set_property = gst_tcp_server_src_set_property; + gobject_class->get_property = gst_tcp_server_src_get_property; + gobject_class->finalize = gst_tcp_server_src_finalize; g_param_spec_string ("host", "Host", "The hostname to listen as", @@ -131,18 +131,18 @@ - gstbasesrc_class->start = gst_tcpserversrc_start; - gstbasesrc_class->stop = gst_tcpserversrc_stop; - gstbasesrc_class->unlock = gst_tcpserversrc_unlock; + gstbasesrc_class->start = gst_tcp_server_src_start; + gstbasesrc_class->stop = gst_tcp_server_src_stop; + gstbasesrc_class->unlock = gst_tcp_server_src_unlock; - gstpush_src_class->create = gst_tcpserversrc_create; + gstpush_src_class->create = gst_tcp_server_src_create; GST_DEBUG_CATEGORY_INIT (tcpserversrc_debug, "tcpserversrc", 0, "TCP Server Source"); -gst_tcpserversrc_init (GstTCPServerSrc * src, GstTCPServerSrcClass * g_class) +gst_tcp_server_src_init (GstTCPServerSrc * src, GstTCPServerSrcClass * g_class) src->server_port = TCP_DEFAULT_PORT; src->host = g_strdup (TCP_DEFAULT_HOST); @@ -153,28 +153,28 @@ READ_SOCKET (src) = -1; WRITE_SOCKET (src) = -1; - GST_OBJECT_FLAG_UNSET (src, GST_TCPSERVERSRC_OPEN); + GST_OBJECT_FLAG_UNSET (src, GST_TCP_SERVER_SRC_OPEN); -gst_tcpserversrc_finalize (GObject * gobject) +gst_tcp_server_src_finalize (GObject * gobject) - GstTCPServerSrc *src = GST_TCPSERVERSRC (gobject); + GstTCPServerSrc *src = GST_TCP_SERVER_SRC (gobject); g_free (src->host); -gst_tcpserversrc_create (GstPushSrc * psrc, GstBuffer ** outbuf) +gst_tcp_server_src_create (GstPushSrc * psrc, GstBuffer ** outbuf) GstTCPServerSrc *src; fd_set testfds; int maxfdp1; - src = GST_TCPSERVERSRC (psrc); + src = GST_TCP_SERVER_SRC (psrc); - if (!GST_OBJECT_FLAG_IS_SET (src, GST_TCPSERVERSRC_OPEN)) + if (!GST_OBJECT_FLAG_IS_SET (src, GST_TCP_SERVER_SRC_OPEN)) restart: @@ -309,10 +309,10 @@ -gst_tcpserversrc_set_property (GObject * object, guint prop_id, +gst_tcp_server_src_set_property (GObject * object, guint prop_id, - GstTCPServerSrc *tcpserversrc = GST_TCPSERVERSRC (object); + GstTCPServerSrc *tcpserversrc = GST_TCP_SERVER_SRC (object); @@ -337,10 +337,10 @@ -gst_tcpserversrc_get_property (GObject * object, guint prop_id, GValue * value, +gst_tcp_server_src_get_property (GObject * object, guint prop_id, @@ -361,10 +361,10 @@ /* set up server */ -gst_tcpserversrc_start (GstBaseSrc * bsrc) +gst_tcp_server_src_start (GstBaseSrc * bsrc) - GstTCPServerSrc *src = GST_TCPSERVERSRC (bsrc); + GstTCPServerSrc *src = GST_TCP_SERVER_SRC (bsrc); @@ -417,7 +417,7 @@ GST_DEBUG_OBJECT (src, "received client"); - GST_OBJECT_FLAG_SET (src, GST_TCPSERVERSRC_OPEN); + GST_OBJECT_FLAG_SET (src, GST_TCP_SERVER_SRC_OPEN); @@ -465,9 +465,9 @@ -gst_tcpserversrc_stop (GstBaseSrc * bsrc) +gst_tcp_server_src_stop (GstBaseSrc * bsrc) if (src->server_sock_fd != -1) { close (src->server_sock_fd); @@ -477,7 +477,7 @@ close (src->client_sock_fd); src->client_sock_fd = -1; @@ -489,9 +489,9 @@ -gst_tcpserversrc_unlock (GstBaseSrc * bsrc) +gst_tcp_server_src_unlock (GstBaseSrc * bsrc) Index: gsttcpserversrc.h RCS file: /cvs/gstreamer/gst-plugins-base/gst/tcp/gsttcpserversrc.h,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- gsttcpserversrc.h 26 Oct 2005 11:43:49 -0000 1.8 +++ gsttcpserversrc.h 1 Dec 2005 01:21:49 -0000 1.9 -#ifndef __GST_TCPSERVERSRC_H__ -#define __GST_TCPSERVERSRC_H__ +#ifndef __GST_TCP_SERVER_SRC_H__ +#define __GST_TCP_SERVER_SRC_H__ @@ -38,24 +38,24 @@ #include <fcntl.h> -#define GST_TYPE_TCPSERVERSRC \ - (gst_tcpserversrc_get_type()) -#define GST_TCPSERVERSRC(obj) \ - (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_TCPSERVERSRC,GstTCPServerSrc)) -#define GST_TCPSERVERSRC_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_TCPSERVERSRC,GstTCPServerSrc)) -#define GST_IS_TCPSERVERSRC(obj) \ - (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_TCPSERVERSRC)) -#define GST_IS_TCPSERVERSRC_CLASS(obj) \ - (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_TCPSERVERSRC)) +#define GST_TYPE_TCP_SERVER_SRC \ + (gst_tcp_server_src_get_type()) +#define GST_TCP_SERVER_SRC(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_TCP_SERVER_SRC,GstTCPServerSrc)) +#define GST_TCP_SERVER_SRC_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_TCP_SERVER_SRC,GstTCPServerSrc)) +#define GST_IS_TCP_SERVER_SRC(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_TCP_SERVER_SRC)) +#define GST_IS_TCP_SERVER_SRC_CLASS(obj) \ + (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_TCP_SERVER_SRC)) typedef struct _GstTCPServerSrc GstTCPServerSrc; typedef struct _GstTCPServerSrcClass GstTCPServerSrcClass; - GST_TCPSERVERSRC_OPEN = (GST_ELEMENT_FLAG_LAST << 0), + GST_TCP_SERVER_SRC_OPEN = (GST_ELEMENT_FLAG_LAST << 0), - GST_TCPSERVERSRC_FLAG_LAST = (GST_ELEMENT_FLAG_LAST << 2) + GST_TCP_SERVER_SRC_FLAG_LAST = (GST_ELEMENT_FLAG_LAST << 2) } GstTCPServerSrcFlags; struct _GstTCPServerSrc { @@ -82,8 +82,8 @@ -GType gst_tcpserversrc_get_type (void); +GType gst_tcp_server_src_get_type (void); G_BEGIN_DECLS -#endif /* __GST_TCPSERVERSRC_H__ */ +#endif /* __GST_TCP_SERVER_SRC_H__ */ |
From: <thomasvs@fr...> - 2005-12-01 01:13:08
|
CVS Root: /cvs/gstreamer Module: gst-plugins-base Changes by: thomasvs Date: Wed Nov 30 2005 17:13:07 PST Log message: borgify further clean up docs a little Modified files: . : ChangeLog docs/libs/tmpl : gstaudio.sgml gstcolorbalance.sgml gstgconf.sgml gstmixer.sgml gstringbuffer.sgml gsttuner.sgml gstxoverlay.sgml docs/plugins : Makefile.am gst-plugins-base-plugins.args docs/plugins/inspect: plugin-libvisual.xml gst/audioconvert: plugin.h gst/audiorate : gstaudiorate.c gst/audiotestsrc: gstaudiotestsrc.c gstaudiotestsrc.h gst/subparse : gstsubparse.c gstsubparse.h gst/videorate : gstvideorate.c gst/videoscale : gstvideoscale.c gstvideoscale.h gst/videotestsrc: gstvideotestsrc.c gstvideotestsrc.h videotestsrc.c videotestsrc.h Links: http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/ChangeLog.diff?r1=1.2191&r2=1.2192 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/docs/libs/tmpl/gstaudio.sgml.diff?r1=1.13&r2=1.14 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/docs/libs/tmpl/gstcolorbalance.sgml.diff?r1=1.29&r2=1.30 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/docs/libs/tmpl/gstgconf.sgml.diff?r1=1.10&r2=1.11 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/docs/libs/tmpl/gstmixer.sgml.diff?r1=1.20&r2=1.21 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/docs/libs/tmpl/gstringbuffer.sgml.diff?r1=1.15&r2=1.16 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/docs/libs/tmpl/gsttuner.sgml.diff?r1=1.9&r2=1.10 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/docs/libs/tmpl/gstxoverlay.sgml.diff?r1=1.4&r2=1.5 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/docs/plugins/Makefile.am.diff?r1=1.15&r2=1.16 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/docs/plugins/gst-plugins-base-plugins.args.diff?r1=1.5&r2=1.6 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/docs/plugins/inspect/plugin-libvisual.xml.diff?r1=1.5&r2=1.6 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/gst/audioconvert/plugin.h.diff?r1=1.2&r2=1.3 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/gst/audiorate/gstaudiorate.c.diff?r1=1.11&r2=1.12 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/gst/audiotestsrc/gstaudiotestsrc.c.diff?r1=1.9&r2=1.10 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/gst/audiotestsrc/gstaudiotestsrc.h.diff?r1=1.2&r2=1.3 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/gst/subparse/gstsubparse.c.diff?r1=1.15&r2=1.16 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/gst/subparse/gstsubparse.h.diff?r1=1.2&r2=1.3 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/gst/videorate/gstvideorate.c.diff?r1=1.28&r2=1.29 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/gst/videoscale/gstvideoscale.c.diff?r1=1.72&r2=1.73 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/gst/videoscale/gstvideoscale.h.diff?r1=1.15&r2=1.16 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/gst/videotestsrc/gstvideotestsrc.c.diff?r1=1.92&r2=1.93 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/gst/videotestsrc/gstvideotestsrc.h.diff?r1=1.26&r2=1.27 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/gst/videotestsrc/videotestsrc.c.diff?r1=1.26&r2=1.27 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/gst/videotestsrc/videotestsrc.h.diff?r1=1.13&r2=1.14 ====Begin Diffs==== Index: ChangeLog =================================================================== RCS file: /cvs/gstreamer/gst-plugins-base/ChangeLog,v retrieving revision 1.2191 retrieving revision 1.2192 diff -u -d -r1.2191 -r1.2192 --- ChangeLog 30 Nov 2005 19:08:14 -0000 1.2191 +++ ChangeLog 1 Dec 2005 01:12:53 -0000 1.2192 @@ -1,3 +1,85 @@ +2005-12-01 Thomas Vander Stichele <thomas at apestaart dot org> + + * docs/plugins/Makefile.am: + * docs/plugins/gst-plugins-base-plugins.args: + * docs/plugins/inspect/plugin-libvisual.xml: + * gst/audioconvert/plugin.h: + * gst/audiorate/gstaudiorate.c: (gst_audio_rate_get_type), + (gst_audio_rate_base_init), (gst_audio_rate_class_init), + (gst_audio_rate_setcaps), (gst_audio_rate_init), + (gst_audio_rate_chain), (gst_audio_rate_set_property), + (gst_audio_rate_get_property), (gst_audio_rate_change_state), + (plugin_init): + * gst/audiotestsrc/gstaudiotestsrc.c: + (gst_audiostestsrc_wave_get_type), (gst_audio_test_src_base_init), + (gst_audio_test_src_class_init), (gst_audio_test_src_init), + (gst_audio_test_src_src_fixate), (gst_audio_test_src_setcaps), + (gst_audio_test_src_get_query_types), + (gst_audio_test_src_src_query), (gst_audio_test_src_create_sine), + (gst_audio_test_src_create_square), + (gst_audio_test_src_create_saw), + (gst_audio_test_src_create_triangle), + (gst_audio_test_src_create_silence), + (gst_audio_test_src_create_white_noise), + (gst_audio_test_src_init_pink_noise), + (gst_audio_test_src_generate_pink_noise_value), + (gst_audio_test_src_create_pink_noise), + (gst_audio_test_src_change_wave), (gst_audio_test_src_get_times), + (gst_audio_test_src_create), (gst_audio_test_src_set_property), + (gst_audio_test_src_get_property), (gst_audio_test_src_start), + * gst/audiotestsrc/gstaudiotestsrc.h: + * gst/subparse/gstsubparse.c: (gst_sub_parse_get_type), + (gst_sub_parse_base_init), (gst_sub_parse_class_init), + (gst_sub_parse_init), (gst_sub_parse_formats), + (gst_sub_parse_src_eventmask), (gst_sub_parse_src_event), + (convert_encoding), (get_next_line), + (gst_sub_parse_data_format_autodetect), + (gst_sub_parse_format_autodetect), (feed_textbuf), (handle_buffer), + (gst_sub_parse_loop), (gst_sub_parse_chain), + (gst_sub_parse_change_state), (gst_sub_parse_type_find), + * gst/subparse/gstsubparse.h: + * gst/videorate/gstvideorate.c: (gst_video_rate_get_type), + (gst_video_rate_base_init), (gst_video_rate_class_init), + (gst_video_rate_transformcaps), (gst_video_rate_getcaps), + (gst_video_rate_setcaps), (gst_video_rate_blank_data), + (gst_video_rate_init), (gst_video_rate_event), + (gst_video_rate_chain), (gst_video_rate_set_property), + (gst_video_rate_get_property), (gst_video_rate_change_state), + * gst/videoscale/gstvideoscale.c: + (gst_video_scale_method_get_type), (gst_video_scale_get_capslist), + (gst_video_scale_src_template_factory), + (gst_video_scale_sink_template_factory), + (gst_video_scale_get_type), (gst_video_scale_base_init), + (gst_video_scale_class_init), (gst_video_scale_init), + (gst_video_scale_set_property), (gst_video_scale_get_property), + (gst_video_scale_transform_caps), (gst_video_scale_get_format), + (gst_video_scale_prepare_size), (parse_caps), + (gst_video_scale_set_caps), (gst_video_scale_get_unit_size), + (gst_video_scale_fixate_caps), (gst_video_scale_prepare_image), + (gst_video_scale_transform), (gst_video_scale_handle_src_event), + * gst/videoscale/gstvideoscale.h: + * gst/videotestsrc/gstvideotestsrc.c: + (gst_video_test_src_pattern_get_type), + (gst_video_test_src_base_init), (gst_video_test_src_class_init), + (gst_video_test_src_init), (gst_video_test_src_src_fixate), + (gst_video_test_src_set_pattern), + (gst_video_test_src_set_property), + (gst_video_test_src_get_property), (gst_video_test_src_getcaps), + (gst_video_test_src_parse_caps), (gst_video_test_src_setcaps), + (gst_video_test_src_event), (gst_video_test_src_get_times), + (gst_video_test_src_create), (plugin_init): + * gst/videotestsrc/gstvideotestsrc.h: + * gst/videotestsrc/videotestsrc.c: (gst_video_test_src_get_size), + (gst_video_test_src_smpte), (gst_video_test_src_snow), + (gst_video_test_src_black): + * gst/videotestsrc/videotestsrc.h: + borgify further + clean up docs a little 2005-11-30 Wim Taymans <wim@...> * gst-libs/gst/rtp/gstbasertpdepayload.h: Index: gstaudio.sgml RCS file: /cvs/gstreamer/gst-plugins-base/docs/libs/tmpl/gstaudio.sgml,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- gstaudio.sgml 30 Nov 2005 17:05:55 -0000 1.13 +++ gstaudio.sgml 1 Dec 2005 01:12:54 -0000 1.14 @@ -14,6 +14,9 @@ </para> +<!-- ##### SECTION Stability_Level ##### --> <!-- ##### ENUM GstAudioFieldFlag ##### --> <para> Index: gstcolorbalance.sgml RCS file: /cvs/gstreamer/gst-plugins-base/docs/libs/tmpl/gstcolorbalance.sgml,v retrieving revision 1.29 retrieving revision 1.30 diff -u -d -r1.29 -r1.30 --- gstcolorbalance.sgml 30 Nov 2005 17:05:55 -0000 1.29 +++ gstcolorbalance.sgml 1 Dec 2005 01:12:54 -0000 1.30 <!-- ##### STRUCT GstColorBalance ##### --> Index: gstgconf.sgml RCS file: /cvs/gstreamer/gst-plugins-base/docs/libs/tmpl/gstgconf.sgml,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- gstgconf.sgml 30 Nov 2005 17:05:55 -0000 1.10 +++ gstgconf.sgml 1 Dec 2005 01:12:54 -0000 1.11 @@ -14,3 +14,6 @@ Index: gstmixer.sgml RCS file: /cvs/gstreamer/gst-plugins-base/docs/libs/tmpl/gstmixer.sgml,v retrieving revision 1.20 retrieving revision 1.21 diff -u -d -r1.20 -r1.21 --- gstmixer.sgml 30 Nov 2005 17:05:55 -0000 1.20 +++ gstmixer.sgml 1 Dec 2005 01:12:54 -0000 1.21 <!-- ##### STRUCT GstMixer ##### --> Index: gstringbuffer.sgml RCS file: /cvs/gstreamer/gst-plugins-base/docs/libs/tmpl/gstringbuffer.sgml,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- gstringbuffer.sgml 30 Nov 2005 17:05:55 -0000 1.15 +++ gstringbuffer.sgml 1 Dec 2005 01:12:54 -0000 1.16 <!-- ##### STRUCT GstRingBuffer ##### --> Index: gsttuner.sgml RCS file: /cvs/gstreamer/gst-plugins-base/docs/libs/tmpl/gsttuner.sgml,v retrieving revision 1.9 diff -u -d -r1.9 -r1.10 --- gsttuner.sgml 30 Nov 2005 17:05:55 -0000 1.9 +++ gsttuner.sgml 1 Dec 2005 01:12:54 -0000 1.10 <!-- ##### STRUCT GstTuner ##### --> Index: gstxoverlay.sgml RCS file: /cvs/gstreamer/gst-plugins-base/docs/libs/tmpl/gstxoverlay.sgml,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- gstxoverlay.sgml 30 Nov 2005 17:05:55 -0000 1.4 +++ gstxoverlay.sgml 1 Dec 2005 01:12:54 -0000 1.5 <!-- ##### STRUCT GstXOverlay ##### --> Index: Makefile.am RCS file: /cvs/gstreamer/gst-plugins-base/docs/plugins/Makefile.am,v --- Makefile.am 26 Nov 2005 15:26:36 -0000 1.15 +++ Makefile.am 1 Dec 2005 01:12:54 -0000 1.16 @@ -80,6 +80,7 @@ $(top_srcdir)/ext/theora/gsttheoraenc.h \ $(top_srcdir)/ext/vorbis/vorbisenc.h \ $(top_srcdir)/gst/audioconvert/gstaudioconvert.h \ + $(top_srcdir)/gst/audiotestsrc/gstaudiotestsrc.h \ $(top_srcdir)/gst/ffmpegcolorspace/gstffmpegcolorspace.h \ $(top_srcdir)/gst/tcp/gstmultifdsink.h \ $(top_srcdir)/gst/tcp/gsttcpserversink.h \ Index: gst-plugins-base-plugins.args RCS file: /cvs/gstreamer/gst-plugins-base/docs/plugins/gst-plugins-base-plugins.args,v retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- gst-plugins-base-plugins.args 23 Nov 2005 18:53:17 -0000 1.5 +++ gst-plugins-base-plugins.args 1 Dec 2005 01:12:54 -0000 1.6 @@ -1008,3 +1008,123 @@ <DEFAULT>Sine</DEFAULT> </ARG> +<ARG> +<NAME>GstVideoScale::method</NAME> +<TYPE>GstVideoScaleMethod</TYPE> +<RANGE></RANGE> +<FLAGS>rw</FLAGS> +<NICK>method</NICK> +<BLURB>method.</BLURB> +<DEFAULT>Nearest Neighbour</DEFAULT> +</ARG> +<NAME>GstVideoRate::drop</NAME> +<TYPE>guint64</TYPE> +<FLAGS>r</FLAGS> +<NICK>Drop</NICK> +<BLURB>Number of dropped frames.</BLURB> +<DEFAULT>0</DEFAULT> +<NAME>GstVideoRate::duplicate</NAME> +<NICK>Duplicate</NICK> +<BLURB>Number of duplicated frames.</BLURB> +<NAME>GstVideoRate::in</NAME> +<NICK>In</NICK> +<BLURB>Number of input frames.</BLURB> +<NAME>GstVideoRate::new-pref</NAME> +<TYPE>gdouble</TYPE> +<RANGE>[0,1]</RANGE> +<NICK>New Pref</NICK> +<BLURB>Value indicating how much to prefer new frames.</BLURB> +<DEFAULT>1</DEFAULT> +<NAME>GstVideoRate::out</NAME> +<NICK>Out</NICK> +<BLURB>Number of output frames.</BLURB> +<NAME>GstVideoRate::silent</NAME> +<TYPE>gboolean</TYPE> +<NICK>silent</NICK> +<BLURB>Don't emit notify for dropped and duplicated frames.</BLURB> +<DEFAULT>TRUE</DEFAULT> +<NAME>GstAudioRate::add</NAME> +<NICK>Add</NICK> +<BLURB>Number of added samples.</BLURB> +<NAME>GstAudioRate::drop</NAME> +<BLURB>Number of dropped samples.</BLURB> +<NAME>GstAudioRate::in</NAME> +<BLURB>Number of input samples.</BLURB> +<NAME>GstAudioRate::out</NAME> +<BLURB>Number of output samples.</BLURB> +<NAME>GstAudioRate::silent</NAME> Index: plugin-libvisual.xml RCS file: /cvs/gstreamer/gst-plugins-base/docs/plugins/inspect/plugin-libvisual.xml,v --- plugin-libvisual.xml 23 Nov 2005 18:53:17 -0000 1.5 +++ plugin-libvisual.xml 1 Dec 2005 01:12:54 -0000 1.6 @@ -3,10 +3,10 @@ <description>libvisual visualization plugins</description> <filename>../../ext/libvisual/.libs/libgstlibvisual.so</filename> <basename>libgstlibvisual.so</basename> - <version>0.9.6</version> + <version>0.9.6.1</version> <license>LGPL</license> <source>gst-plugins-base</source> - <package>GStreamer Base Plug-ins source release</package> + <package>GStreamer Base Plug-ins CVS/prerelease</package> <origin>Unknown package origin</origin> <elements> <element> Index: plugin.h RCS file: /cvs/gstreamer/gst-plugins-base/gst/audioconvert/plugin.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- plugin.h 19 Oct 2005 17:50:17 -0000 1.2 +++ plugin.h 1 Dec 2005 01:12:54 -0000 1.3 @@ -20,8 +20,8 @@ */ -#ifndef __GST_PLUGIN_AUDIOCONVERT_H__ -#define __GST_PLUGIN_AUDIOCONVERT_H__ +#ifndef __GST_PLUGIN_AUDIO_CONVERT_H__ +#define __GST_PLUGIN_AUDIO_CONVERT_H__ #include <gst/gst.h> @@ -32,4 +32,4 @@ G_END_DECLS -#endif /* __GST_PLUGIN_AUDIOCONVERT_H__ */ +#endif /* __GST_PLUGIN_AUDIO_CONVERT_H__ */ Index: gstaudiorate.c RCS file: /cvs/gstreamer/gst-plugins-base/gst/audiorate/gstaudiorate.c,v retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- gstaudiorate.c 26 Nov 2005 11:34:15 -0000 1.11 +++ gstaudiorate.c 1 Dec 2005 01:12:54 -0000 1.12 @@ -25,21 +25,21 @@ #include <gst/audio/audio.h> -#define GST_TYPE_AUDIORATE \ - (gst_audiorate_get_type()) -#define GST_AUDIORATE(obj) \ - (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_AUDIORATE,GstAudiorate)) -#define GST_AUDIORATE_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_AUDIORATE,GstAudiorate)) -#define GST_IS_AUDIORATE(obj) \ - (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_AUDIORATE)) -#define GST_IS_AUDIORATE_CLASS(obj) \ - (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_AUDIORATE)) +#define GST_TYPE_AUDIO_RATE \ + (gst_audio_rate_get_type()) +#define GST_AUDIO_RATE(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_AUDIO_RATE,GstAudioRate)) +#define GST_AUDIO_RATE_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_AUDIO_RATE,GstAudioRate)) +#define GST_IS_AUDIO_RATE(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_AUDIO_RATE)) +#define GST_IS_AUDIO_RATE_CLASS(obj) \ + (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_AUDIO_RATE)) -typedef struct _GstAudiorate GstAudiorate; -typedef struct _GstAudiorateClass GstAudiorateClass; +typedef struct _GstAudioRate GstAudioRate; +typedef struct _GstAudioRateClass GstAudioRateClass; -struct _GstAudiorate +struct _GstAudioRate { GstElement element; @@ -54,19 +54,19 @@ gboolean silent; }; -struct _GstAudiorateClass +struct _GstAudioRateClass GstElementClass parent_class; /* elementfactory information */ -static GstElementDetails audiorate_details = +static GstElementDetails audio_rate_details = GST_ELEMENT_DETAILS ("Audio rate adjuster", "Filter/Effect/Audio", "Drops/duplicates/adjusts timestamps on audio samples to make a perfect stream", "Wim Taymans <wim@...>"); -/* GstAudiorate signals and args */ +/* GstAudioRate signals and args */ enum /* FILL ME */ @@ -86,84 +86,84 @@ -static GstStaticPadTemplate gst_audiorate_src_template = +static GstStaticPadTemplate gst_audio_rate_src_template = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, GST_STATIC_CAPS (GST_AUDIO_INT_PAD_TEMPLATE_CAPS) ); -static GstStaticPadTemplate gst_audiorate_sink_template = +static GstStaticPadTemplate gst_audio_rate_sink_template = GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, -static void gst_audiorate_base_init (gpointer g_class); -static void gst_audiorate_class_init (GstAudiorateClass * klass); -static void gst_audiorate_init (GstAudiorate * audiorate); -static GstFlowReturn gst_audiorate_chain (GstPad * pad, GstBuffer * buf); +static void gst_audio_rate_base_init (gpointer g_class); +static void gst_audio_rate_class_init (GstAudioRateClass * klass); +static void gst_audio_rate_init (GstAudioRate * audiorate); +static GstFlowReturn gst_audio_rate_chain (GstPad * pad, GstBuffer * buf); -static void gst_audiorate_set_property (GObject * object, +static void gst_audio_rate_set_property (GObject * object, guint prop_id, const GValue * value, GParamSpec * pspec); -static void gst_audiorate_get_property (GObject * object, +static void gst_audio_rate_get_property (GObject * object, guint prop_id, GValue * value, GParamSpec * pspec); -static GstStateChangeReturn gst_audiorate_change_state (GstElement * element, +static GstStateChangeReturn gst_audio_rate_change_state (GstElement * element, GstStateChange transition); static GstElementClass *parent_class = NULL; -/*static guint gst_audiorate_signals[LAST_SIGNAL] = { 0 }; */ +/*static guint gst_audio_rate_signals[LAST_SIGNAL] = { 0 }; */ static GType -gst_audiorate_get_type (void) +gst_audio_rate_get_type (void) - static GType audiorate_type = 0; + static GType audio_rate_type = 0; - if (!audiorate_type) { - static const GTypeInfo audiorate_info = { - sizeof (GstAudiorateClass), - gst_audiorate_base_init, + if (!audio_rate_type) { + static const GTypeInfo audio_rate_info = { + sizeof (GstAudioRateClass), + gst_audio_rate_base_init, NULL, - (GClassInitFunc) gst_audiorate_class_init, + (GClassInitFunc) gst_audio_rate_class_init, - sizeof (GstAudiorate), + sizeof (GstAudioRate), 0, - (GInstanceInitFunc) gst_audiorate_init, + (GInstanceInitFunc) gst_audio_rate_init, }; - audiorate_type = g_type_register_static (GST_TYPE_ELEMENT, - "GstAudiorate", &audiorate_info, 0); + audio_rate_type = g_type_register_static (GST_TYPE_ELEMENT, + "GstAudioRate", &audio_rate_info, 0); } - return audiorate_type; + return audio_rate_type; } static void -gst_audiorate_base_init (gpointer g_class) +gst_audio_rate_base_init (gpointer g_class) GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); - gst_element_class_set_details (element_class, &audiorate_details); + gst_element_class_set_details (element_class, &audio_rate_details); gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_audiorate_sink_template)); + gst_static_pad_template_get (&gst_audio_rate_sink_template)); - gst_static_pad_template_get (&gst_audiorate_src_template)); + gst_static_pad_template_get (&gst_audio_rate_src_template)); -gst_audiorate_class_init (GstAudiorateClass * klass) +gst_audio_rate_class_init (GstAudioRateClass * klass) GObjectClass *object_class = G_OBJECT_CLASS (klass); GstElementClass *element_class = GST_ELEMENT_CLASS (klass); parent_class = g_type_class_peek_parent (klass); - object_class->set_property = gst_audiorate_set_property; - object_class->get_property = gst_audiorate_get_property; + object_class->set_property = gst_audio_rate_set_property; + object_class->get_property = gst_audio_rate_get_property; g_object_class_install_property (object_class, ARG_IN, g_param_spec_uint64 ("in", "In", @@ -182,18 +182,18 @@ "Don't emit notify for dropped and duplicated frames", DEFAULT_SILENT, G_PARAM_READWRITE)); - element_class->change_state = gst_audiorate_change_state; + element_class->change_state = gst_audio_rate_change_state; static gboolean -gst_audiorate_setcaps (GstPad * pad, GstCaps * caps) +gst_audio_rate_setcaps (GstPad * pad, GstCaps * caps) - GstAudiorate *audiorate; + GstAudioRate *audiorate; GstStructure *structure; GstPad *otherpad; gint ret, channels, depth; - audiorate = GST_AUDIORATE (gst_pad_get_parent (pad)); + audiorate = GST_AUDIO_RATE (gst_pad_get_parent (pad)); otherpad = (pad == audiorate->srcpad) ? audiorate->sinkpad : audiorate->srcpad; @@ -217,19 +217,19 @@ -gst_audiorate_init (GstAudiorate * audiorate) +gst_audio_rate_init (GstAudioRate * audiorate) audiorate->sinkpad = - gst_pad_new_from_static_template (&gst_audiorate_sink_template, "sink"); + gst_pad_new_from_static_template (&gst_audio_rate_sink_template, "sink"); gst_element_add_pad (GST_ELEMENT (audiorate), audiorate->sinkpad); - gst_pad_set_chain_function (audiorate->sinkpad, gst_audiorate_chain); - gst_pad_set_setcaps_function (audiorate->sinkpad, gst_audiorate_setcaps); + gst_pad_set_chain_function (audiorate->sinkpad, gst_audio_rate_chain); + gst_pad_set_setcaps_function (audiorate->sinkpad, gst_audio_rate_setcaps); gst_pad_set_getcaps_function (audiorate->sinkpad, gst_pad_proxy_getcaps); audiorate->srcpad = - gst_pad_new_from_static_template (&gst_audiorate_src_template, "src"); + gst_pad_new_from_static_template (&gst_audio_rate_src_template, "src"); gst_element_add_pad (GST_ELEMENT (audiorate), audiorate->srcpad); - gst_pad_set_setcaps_function (audiorate->srcpad, gst_audiorate_setcaps); + gst_pad_set_setcaps_function (audiorate->srcpad, gst_audio_rate_setcaps); gst_pad_set_getcaps_function (audiorate->srcpad, gst_pad_proxy_getcaps); audiorate->bytes_per_sample = 1; @@ -241,15 +241,15 @@ static GstFlowReturn -gst_audiorate_chain (GstPad * pad, GstBuffer * buf) +gst_audio_rate_chain (GstPad * pad, GstBuffer * buf) GstClockTime in_time, in_duration; guint64 in_offset, in_offset_end; gint in_size; GstFlowReturn ret = GST_FLOW_OK; audiorate->in++; @@ -338,10 +338,10 @@ -gst_audiorate_set_property (GObject * object, +gst_audio_rate_set_property (GObject * object, guint prop_id, const GValue * value, GParamSpec * pspec) - GstAudiorate *audiorate = GST_AUDIORATE (object); + GstAudioRate *audiorate = GST_AUDIO_RATE (object); switch (prop_id) { case ARG_SILENT: @@ -354,10 +354,10 @@ -gst_audiorate_get_property (GObject * object, +gst_audio_rate_get_property (GObject * object, guint prop_id, GValue * value, GParamSpec * pspec) case ARG_IN: @@ -382,9 +382,9 @@ static GstStateChangeReturn -gst_audiorate_change_state (GstElement * element, GstStateChange transition) +gst_audio_rate_change_state (GstElement * element, GstStateChange transition) - GstAudiorate *audiorate = GST_AUDIORATE (element); + GstAudioRate *audiorate = GST_AUDIO_RATE (element); switch (transition) { case GST_STATE_CHANGE_PAUSED_TO_READY: @@ -406,7 +406,7 @@ plugin_init (GstPlugin * plugin) return gst_element_register (plugin, "audiorate", GST_RANK_NONE, - GST_TYPE_AUDIORATE); + GST_TYPE_AUDIO_RATE); GST_PLUGIN_DEFINE (GST_VERSION_MAJOR, Index: gstaudiotestsrc.c RCS file: /cvs/gstreamer/gst-plugins-base/gst/audiotestsrc/gstaudiotestsrc.c,v --- gstaudiotestsrc.c 22 Nov 2005 17:39:29 -0000 1.9 +++ gstaudiotestsrc.c 1 Dec 2005 01:12:54 -0000 1.10 @@ -54,7 +54,7 @@ #include "gstaudiotestsrc.h" -GstElementDetails gst_audiotestsrc_details = { +GstElementDetails gst_audio_test_src_details = { "Audio test source", "Source/Audio", "Creates audio test signals of given frequency and volume", @@ -74,7 +74,7 @@ -static GstStaticPadTemplate gst_audiotestsrc_src_template = +static GstStaticPadTemplate gst_audio_test_src_src_template = @@ -86,22 +86,22 @@ -GST_BOILERPLATE (GstAudioTestSrc, gst_audiotestsrc, GstBaseSrc, +GST_BOILERPLATE (GstAudioTestSrc, gst_audio_test_src, GstBaseSrc, GST_TYPE_BASE_SRC); -#define GST_TYPE_AUDIOTESTSRC_WAVE (gst_audiostestsrc_wave_get_type()) +#define GST_TYPE_AUDIO_TEST_SRC_WAVE (gst_audiostestsrc_wave_get_type()) gst_audiostestsrc_wave_get_type (void) static GType audiostestsrc_wave_type = 0; static GEnumValue audiostestsrc_waves[] = { - {GST_AUDIOTESTSRC_WAVE_SINE, "Sine", "sine"}, - {GST_AUDIOTESTSRC_WAVE_SQUARE, "Square", "square"}, - {GST_AUDIOTESTSRC_WAVE_SAW, "Saw", "saw"}, - {GST_AUDIOTESTSRC_WAVE_TRIANGLE, "Triangle", "triangle"}, - {GST_AUDIOTESTSRC_WAVE_SILENCE, "Silence", "silence"}, - {GST_AUDIOTESTSRC_WAVE_WHITE_NOISE, "White noise", "white-noise"}, - {GST_AUDIOTESTSRC_WAVE_PINK_NOISE, "Pink noise", "pink-noise"}, + {GST_AUDIO_TEST_SRC_WAVE_SINE, "Sine", "sine"}, + {GST_AUDIO_TEST_SRC_WAVE_SQUARE, "Square", "square"}, + {GST_AUDIO_TEST_SRC_WAVE_SAW, "Saw", "saw"}, + {GST_AUDIO_TEST_SRC_WAVE_TRIANGLE, "Triangle", "triangle"}, + {GST_AUDIO_TEST_SRC_WAVE_SILENCE, "Silence", "silence"}, + {GST_AUDIO_TEST_SRC_WAVE_WHITE_NOISE, "White noise", "white-noise"}, + {GST_AUDIO_TEST_SRC_WAVE_PINK_NOISE, "Pink noise", "pink-noise"}, {0, NULL, NULL}, }; @@ -112,38 +112,39 @@ return audiostestsrc_wave_type; -static void gst_audiotestsrc_set_property (GObject * object, +static void gst_audio_test_src_set_property (GObject * object, -static void gst_audiotestsrc_get_property (GObject * object, +static void gst_audio_test_src_get_property (GObject * object, -static gboolean gst_audiotestsrc_setcaps (GstBaseSrc * basesrc, GstCaps * caps); -static void gst_audiotestsrc_src_fixate (GstPad * pad, GstCaps * caps); +static gboolean gst_audio_test_src_setcaps (GstBaseSrc * basesrc, + GstCaps * caps); +static void gst_audio_test_src_src_fixate (GstPad * pad, GstCaps * caps); -static const GstQueryType *gst_audiotestsrc_get_query_types (GstPad * pad); -static gboolean gst_audiotestsrc_src_query (GstPad * pad, GstQuery * query); +static const GstQueryType *gst_audio_test_src_get_query_types (GstPad * pad); +static gboolean gst_audio_test_src_src_query (GstPad * pad, GstQuery * query); -static void gst_audiotestsrc_change_wave (GstAudioTestSrc * src); +static void gst_audio_test_src_change_wave (GstAudioTestSrc * src); -static void gst_audiotestsrc_get_times (GstBaseSrc * basesrc, +static void gst_audio_test_src_get_times (GstBaseSrc * basesrc, GstBuffer * buffer, GstClockTime * start, GstClockTime * end); -static GstFlowReturn gst_audiotestsrc_create (GstBaseSrc * basesrc, +static GstFlowReturn gst_audio_test_src_create (GstBaseSrc * basesrc, guint64 offset, guint length, GstBuffer ** buffer); -static gboolean gst_audiotestsrc_start (GstBaseSrc * basesrc); +static gboolean gst_audio_test_src_start (GstBaseSrc * basesrc); -gst_audiotestsrc_base_init (gpointer g_class) +gst_audio_test_src_base_init (gpointer g_class) - gst_static_pad_template_get (&gst_audiotestsrc_src_template)); - gst_element_class_set_details (element_class, &gst_audiotestsrc_details); + gst_static_pad_template_get (&gst_audio_test_src_src_template)); + gst_element_class_set_details (element_class, &gst_audio_test_src_details); -gst_audiotestsrc_class_init (GstAudioTestSrcClass * klass) +gst_audio_test_src_class_init (GstAudioTestSrcClass * klass) GObjectClass *gobject_class; GstBaseSrcClass *gstbasesrc_class; @@ -151,15 +152,15 @@ gobject_class = (GObjectClass *) klass; gstbasesrc_class = (GstBaseSrcClass *) klass; - gobject_class->set_property = gst_audiotestsrc_set_property; - gobject_class->get_property = gst_audiotestsrc_get_property; + gobject_class->set_property = gst_audio_test_src_set_property; + gobject_class->get_property = gst_audio_test_src_get_property; g_object_class_install_property (gobject_class, PROP_SAMPLES_PER_BUFFER, g_param_spec_int ("samplesperbuffer", "Samples per buffer", "Number of samples in each outgoing buffer", 1, G_MAXINT, 1024, G_PARAM_READWRITE)); - g_object_class_install_property (gobject_class, PROP_WAVE, g_param_spec_enum ("wave", "Waveform", "Oscillator waveform", GST_TYPE_AUDIOTESTSRC_WAVE, /* enum type */ - GST_AUDIOTESTSRC_WAVE_SINE, /* default value */ + g_object_class_install_property (gobject_class, PROP_WAVE, g_param_spec_enum ("wave", "Waveform", "Oscillator waveform", GST_TYPE_AUDIO_TEST_SRC_WAVE, /* enum type */ + GST_AUDIO_TEST_SRC_WAVE_SINE, /* default value */ G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE)); g_object_class_install_property (gobject_class, PROP_FREQ, g_param_spec_double ("freq", "Frequency", "Frequency of test signal", @@ -176,20 +177,21 @@ "An offset added to timestamps set on buffers (in ns)", G_MININT64, G_MAXINT64, 0, G_PARAM_READWRITE)); - gstbasesrc_class->set_caps = GST_DEBUG_FUNCPTR (gst_audiotestsrc_setcaps); - gstbasesrc_class->start = GST_DEBUG_FUNCPTR (gst_audiotestsrc_start); - gstbasesrc_class->get_times = GST_DEBUG_FUNCPTR (gst_audiotestsrc_get_times); - gstbasesrc_class->create = GST_DEBUG_FUNCPTR (gst_audiotestsrc_create); + gstbasesrc_class->set_caps = GST_DEBUG_FUNCPTR (gst_audio_test_src_setcaps); + gstbasesrc_class->start = GST_DEBUG_FUNCPTR (gst_audio_test_src_start); + gstbasesrc_class->get_times = + GST_DEBUG_FUNCPTR (gst_audio_test_src_get_times); + gstbasesrc_class->create = GST_DEBUG_FUNCPTR (gst_audio_test_src_create); -gst_audiotestsrc_init (GstAudioTestSrc * src, GstAudioTestSrcClass * g_class) +gst_audio_test_src_init (GstAudioTestSrc * src, GstAudioTestSrcClass * g_class) GstPad *pad = GST_BASE_SRC_PAD (src); - gst_pad_set_fixatecaps_function (pad, gst_audiotestsrc_src_fixate); - gst_pad_set_query_function (pad, gst_audiotestsrc_src_query); - gst_pad_set_query_type_function (pad, gst_audiotestsrc_get_query_types); + gst_pad_set_fixatecaps_function (pad, gst_audio_test_src_src_fixate); + gst_pad_set_query_function (pad, gst_audio_test_src_src_query); + gst_pad_set_query_type_function (pad, gst_audio_test_src_get_query_types); src->samplerate = 44100; src->volume = 1.0; @@ -201,12 +203,12 @@ src->offset = G_GINT64_CONSTANT (0); src->timestamp_offset = G_GINT64_CONSTANT (0); - src->wave = GST_AUDIOTESTSRC_WAVE_SINE; - gst_audiotestsrc_change_wave (src); + src->wave = GST_AUDIO_TEST_SRC_WAVE_SINE; + gst_audio_test_src_change_wave (src); -gst_audiotestsrc_src_fixate (GstPad * pad, GstCaps * caps) +gst_audio_test_src_src_fixate (GstPad * pad, GstCaps * caps) @@ -216,13 +218,13 @@ -gst_audiotestsrc_setcaps (GstBaseSrc * basesrc, GstCaps * caps) +gst_audio_test_src_setcaps (GstBaseSrc * basesrc, GstCaps * caps) GstAudioTestSrc *audiotestsrc; const GstStructure *structure; gboolean ret; - audiotestsrc = GST_AUDIOTESTSRC (basesrc); + audiotestsrc = GST_AUDIO_TEST_SRC (basesrc); structure = gst_caps_get_structure (caps, 0); ret = gst_structure_get_int (structure, "rate", &audiotestsrc->samplerate); @@ -231,7 +233,7 @@ static const GstQueryType * -gst_audiotestsrc_get_query_types (GstPad * pad) +gst_audio_test_src_get_query_types (GstPad * pad) static const GstQueryType query_types[] = { GST_QUERY_POSITION, @@ -242,12 +244,12 @@ -gst_audiotestsrc_src_query (GstPad * pad, GstQuery * query) +gst_audio_test_src_src_query (GstPad * pad, GstQuery * query) gboolean res = FALSE; GstAudioTestSrc *src; - src = GST_AUDIOTESTSRC (GST_PAD_PARENT (pad)); + src = GST_AUDIO_TEST_SRC (GST_PAD_PARENT (pad)); switch (GST_QUERY_TYPE (query)) { case GST_QUERY_POSITION: @@ -295,7 +297,7 @@ -gst_audiotestsrc_create_sine (GstAudioTestSrc * src, gint16 * samples) +gst_audio_test_src_create_sine (GstAudioTestSrc * src, gint16 * samples) gint i; gdouble step, amp; @@ -313,7 +315,7 @@ -gst_audiotestsrc_create_square (GstAudioTestSrc * src, gint16 * samples) +gst_audio_test_src_create_square (GstAudioTestSrc * src, gint16 * samples) @@ -331,7 +333,7 @@ -gst_audiotestsrc_create_saw (GstAudioTestSrc * src, gint16 * samples) +gst_audio_test_src_create_saw (GstAudioTestSrc * src, gint16 * samples) @@ -353,7 +355,7 @@ -gst_audiotestsrc_create_triangle (GstAudioTestSrc * src, gint16 * samples) +gst_audio_test_src_create_triangle (GstAudioTestSrc * src, gint16 * samples) @@ -377,13 +379,13 @@ -gst_audiotestsrc_create_silence (GstAudioTestSrc * src, gint16 * samples) +gst_audio_test_src_create_silence (GstAudioTestSrc * src, gint16 * samples) memset (samples, 0, src->samples_per_buffer * sizeof (gint16)); -gst_audiotestsrc_create_white_noise (GstAudioTestSrc * src, gint16 * samples) +gst_audio_test_src_create_white_noise (GstAudioTestSrc * src, gint16 * samples) gdouble amp; @@ -401,7 +403,7 @@ * Many thanks Phil! -gst_audiotestsrc_init_pink_noise (GstAudioTestSrc * src) +gst_audio_test_src_init_pink_noise (GstAudioTestSrc * src) gint num_rows = 12; /* arbitrary: 1 .. PINK_MAX_RANDOM_ROWS */ @@ -421,7 +423,7 @@ /* Generate Pink noise values between -1.0 and +1.0 */ static gfloat -gst_audiotestsrc_generate_pink_noise_value (GstPinkNoise * pink) +gst_audio_test_src_generate_pink_noise_value (GstPinkNoise * pink) glong new_random; glong sum; @@ -461,7 +463,7 @@ -gst_audiotestsrc_create_pink_noise (GstAudioTestSrc * src, gint16 * samples) +gst_audio_test_src_create_pink_noise (GstAudioTestSrc * src, gint16 * samples) @@ -470,36 +472,36 @@ for (i = 0; i < src->samples_per_buffer; i++) { samples[i] = - (gint16) (gst_audiotestsrc_generate_pink_noise_value (&src->pink) * + (gint16) (gst_audio_test_src_generate_pink_noise_value (&src->pink) * amp); -gst_audiotestsrc_change_wave (GstAudioTestSrc * src) +gst_audio_test_src_change_wave (GstAudioTestSrc * src) switch (src->wave) { - case GST_AUDIOTESTSRC_WAVE_SINE: - src->process = gst_audiotestsrc_create_sine; + case GST_AUDIO_TEST_SRC_WAVE_SINE: + src->process = gst_audio_test_src_create_sine; break; - case GST_AUDIOTESTSRC_WAVE_SQUARE: - src->process = gst_audiotestsrc_create_square; + case GST_AUDIO_TEST_SRC_WAVE_SQUARE: + src->process = gst_audio_test_src_create_square; - case GST_AUDIOTESTSRC_WAVE_SAW: - src->process = gst_audiotestsrc_create_saw; + case GST_AUDIO_TEST_SRC_WAVE_SAW: + src->process = gst_audio_test_src_create_saw; - case GST_AUDIOTESTSRC_WAVE_TRIANGLE: - src->process = gst_audiotestsrc_create_triangle; + case GST_AUDIO_TEST_SRC_WAVE_TRIANGLE: + src->process = gst_audio_test_src_create_triangle; - case GST_AUDIOTESTSRC_WAVE_SILENCE: - src->process = gst_audiotestsrc_create_silence; + case GST_AUDIO_TEST_SRC_WAVE_SILENCE: + src->process = gst_audio_test_src_create_silence; - case GST_AUDIOTESTSRC_WAVE_WHITE_NOISE: - src->process = gst_audiotestsrc_create_white_noise; + case GST_AUDIO_TEST_SRC_WAVE_WHITE_NOISE: + src->process = gst_audio_test_src_create_white_noise; - case GST_AUDIOTESTSRC_WAVE_PINK_NOISE: - gst_audiotestsrc_init_pink_noise (src); - src->process = gst_audiotestsrc_create_pink_noise; + case GST_AUDIO_TEST_SRC_WAVE_PINK_NOISE: + gst_audio_test_src_init_pink_noise (src); + src->process = gst_audio_test_src_create_pink_noise; default: GST_ERROR ("invalid wave-form"); @@ -508,7 +510,7 @@ -gst_audiotestsrc_get_times (GstBaseSrc * basesrc, GstBuffer * buffer, +gst_audio_test_src_get_times (GstBaseSrc * basesrc, GstBuffer * buffer, GstClockTime * start, GstClockTime * end) /* for live sources, sync on the timestamp of the buffer */ @@ -531,14 +533,14 @@ -gst_audiotestsrc_create (GstBaseSrc * basesrc, guint64 offset, +gst_audio_test_src_create (GstBaseSrc * basesrc, guint64 offset, guint length, GstBuffer ** buffer) GstBuffer *buf; guint tdiff; - src = GST_AUDIOTESTSRC (basesrc); + src = GST_AUDIO_TEST_SRC (basesrc); if (!src->tags_pushed) { GstTagList *taglist; @@ -578,10 +580,10 @@ -gst_audiotestsrc_set_property (GObject * object, guint prop_id, +gst_audio_test_src_set_property (GObject * object, guint prop_id, const GValue * value, GParamSpec * pspec) - GstAudioTestSrc *src = GST_AUDIOTESTSRC (object); + GstAudioTestSrc *src = GST_AUDIO_TEST_SRC (object); case PROP_SAMPLES_PER_BUFFER: @@ -589,7 +591,7 @@ case PROP_WAVE: src->wave = g_value_get_enum (value); - gst_audiotestsrc_change_wave (src); + gst_audio_test_src_change_wave (src); case PROP_FREQ: src->freq = g_value_get_double (value); @@ -610,10 +612,10 @@ -gst_audiotestsrc_get_property (GObject * object, guint prop_id, +gst_audio_test_src_get_property (GObject * object, guint prop_id, GValue * value, GParamSpec * pspec) @@ -641,9 +643,9 @@ -gst_audiotestsrc_start (GstBaseSrc * basesrc) +gst_audio_test_src_start (GstBaseSrc * basesrc) - GstAudioTestSrc *src = GST_AUDIOTESTSRC (basesrc); + GstAudioTestSrc *src = GST_AUDIO_TEST_SRC (basesrc); src->timestamp = G_GINT64_CONSTANT (0); @@ -655,7 +657,7 @@ return gst_element_register (plugin, "audiotestsrc", - GST_RANK_NONE, GST_TYPE_AUDIOTESTSRC); + GST_RANK_NONE, GST_TYPE_AUDIO_TEST_SRC); Index: gstaudiotestsrc.h RCS file: /cvs/gstreamer/gst-plugins-base/gst/audiotestsrc/gstaudiotestsrc.h,v --- gstaudiotestsrc.h 9 Oct 2005 20:47:31 -0000 1.2 +++ gstaudiotestsrc.h 1 Dec 2005 01:12:54 -0000 1.3 @@ -21,8 +21,8 @@ -#ifndef __GST_AUDIOTESTSRC_H__ -#define __GST_AUDIOTESTSRC_H__ +#ifndef __GST_AUDIO_TEST_SRC_H__ +#define __GST_AUDIO_TEST_SRC_H__ @@ -31,25 +31,25 @@ G_BEGIN_DECLS -#define GST_TYPE_AUDIOTESTSRC \ - (gst_audiotestsrc_get_type()) -#define GST_AUDIOTESTSRC(obj) \ - (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_AUDIOTESTSRC,GstAudioTestSrc)) -#define GST_AUDIOTESTSRC_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_AUDIOTESTSRC,GstAudioTestSrcClass)) -#define GST_IS_AUDIOTESTSRC(obj) \ - (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_AUDIOTESTSRC)) -#define GST_IS_AUDIOTESTSRC_CLASS(obj) \ - (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_AUDIOTESTSRC)) +#define GST_TYPE_AUDIO_TEST_SRC \ + (gst_audio_test_src_get_type()) +#define GST_AUDIO_TEST_SRC(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_AUDIO_TEST_SRC,GstAudioTestSrc)) +#define GST_AUDIO_TEST_SRC_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_AUDIO_TEST_SRC,GstAudioTestSrcClass)) +#define GST_IS_AUDIO_TEST_SRC(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_AUDIO_TEST_SRC)) +#define GST_IS_AUDIO_TEST_SRC_CLASS(obj) \ + (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_AUDIO_TEST_SRC)) typedef enum { - GST_AUDIOTESTSRC_WAVE_SINE, - GST_AUDIOTESTSRC_WAVE_SQUARE, - GST_AUDIOTESTSRC_WAVE_SAW, - GST_AUDIOTESTSRC_WAVE_TRIANGLE, - GST_AUDIOTESTSRC_WAVE_SILENCE, - GST_AUDIOTESTSRC_WAVE_WHITE_NOISE, - GST_AUDIOTESTSRC_WAVE_PINK_NOISE, + GST_AUDIO_TEST_SRC_WAVE_SINE, + GST_AUDIO_TEST_SRC_WAVE_SQUARE, + GST_AUDIO_TEST_SRC_WAVE_SAW, + GST_AUDIO_TEST_SRC_WAVE_TRIANGLE, + GST_AUDIO_TEST_SRC_WAVE_SILENCE, + GST_AUDIO_TEST_SRC_WAVE_WHITE_NOISE, + GST_AUDIO_TEST_SRC_WAVE_PINK_NOISE, } GstAudioTestSrcWaves; #define PINK_MAX_RANDOM_ROWS (30) @@ -102,9 +102,9 @@ GstBaseSrcClass parent_class; -GType gst_audiotestsrc_get_type(void); -gboolean gst_audiotestsrc_factory_init (GstElementFactory *factory); +GType gst_audio_test_src_get_type(void); +gboolean gst_audio_test_src_factory_init (GstElementFactory *factory); -#endif /* __GST_AUDIOTESTSRC_H__ */ +#endif /* __GST_AUDIO_TEST_SRC_H__ */ Index: gstvideoscale.c RCS file: /cvs/gstreamer/gst-plugins-base/gst/videoscale/gstvideoscale.c,v retrieving revision 1.72 retrieving revision 1.73 diff -u -d -r1.72 -r1.73 --- gstvideoscale.c 29 Nov 2005 01:06:51 -0000 1.72 +++ gstvideoscale.c 1 Dec 2005 01:12:55 -0000 1.73 @@ -32,10 +32,10 @@ /* debug variable definition */ -GST_DEBUG_CATEGORY (videoscale_debug); +GST_DEBUG_CATEGORY (video_scale_debug); -static GstElementDetails videoscale_details = +static GstElementDetails video_scale_details = GST_ELEMENT_DETAILS ("Video scaler", "Filter/Effect/Video", "Resizes video", @@ -48,7 +48,7 @@ /* FILL ME */ -static GstStaticCaps gst_videoscale_format_caps[] = { +static GstStaticCaps gst_video_scale_format_caps[] = { GST_STATIC_CAPS (GST_VIDEO_CAPS_RGBx), GST_STATIC_CAPS (GST_VIDEO_CAPS_xRGB), GST_STATIC_CAPS (GST_VIDEO_CAPS_BGRx), @@ -68,43 +68,43 @@ - GST_VIDEOSCALE_RGBx = 0, - GST_VIDEOSCALE_xRGB, - GST_VIDEOSCALE_BGRx, - GST_VIDEOSCALE_xBGR, - GST_VIDEOSCALE_RGB, - GST_VIDEOSCALE_BGR, - GST_VIDEOSCALE_AYUV, - GST_VIDEOSCALE_YUY2, - GST_VIDEOSCALE_YVYU, - GST_VIDEOSCALE_UYVY, - GST_VIDEOSCALE_Y, - GST_VIDEOSCALE_I420, - GST_VIDEOSCALE_YV12, - GST_VIDEOSCALE_RGB565, - GST_VIDEOSCALE_RGB555 + GST_VIDEO_SCALE_RGBx = 0, + GST_VIDEO_SCALE_xRGB, + GST_VIDEO_SCALE_BGRx, + GST_VIDEO_SCALE_xBGR, + GST_VIDEO_SCALE_RGB, + GST_VIDEO_SCALE_BGR, + GST_VIDEO_SCALE_AYUV, + GST_VIDEO_SCALE_YUY2, + GST_VIDEO_SCALE_YVYU, + GST_VIDEO_SCALE_UYVY, + GST_VIDEO_SCALE_Y, + GST_VIDEO_SCALE_I420, + GST_VIDEO_SCALE_YV12, + GST_VIDEO_SCALE_RGB565, + GST_VIDEO_SCALE_RGB555 -#define GST_TYPE_VIDEOSCALE_METHOD (gst_videoscale_method_get_type()) +#define GST_TYPE_VIDEO_SCALE_METHOD (gst_video_scale_method_get_type()) -gst_videoscale_method_get_type (void) +gst_video_scale_method_get_type (void) - static GType videoscale_method_type = 0; - static GEnumValue videoscale_methods[] = { - {GST_VIDEOSCALE_NEAREST, "Nearest Neighbour", "nearest-neighbour"}, - {GST_VIDEOSCALE_BILINEAR, "Bilinear", "bilinear"}, + static GType video_scale_method_type = 0; + static GEnumValue video_scale_methods[] = { + {GST_VIDEO_SCALE_NEAREST, "Nearest Neighbour", "nearest-neighbour"}, + {GST_VIDEO_SCALE_BILINEAR, "Bilinear", "bilinear"}, - if (!videoscale_method_type) { - videoscale_method_type = - g_enum_register_static ("GstVideoscaleMethod", videoscale_methods); + if (!video_scale_method_type) { + video_scale_method_type = + g_enum_register_static ("GstVideoScaleMethod", video_scale_methods); - return videoscale_method_type; + return video_scale_method_type; static GstCaps * -gst_videoscale_get_capslist (void) +gst_video_scale_get_capslist (void) static GstCaps *caps; @@ -112,96 +112,96 @@ int i; caps = gst_caps_new_empty (); - for (i = 0; i < G_N_ELEMENTS (gst_videoscale_format_caps); i++) + for (i = 0; i < G_N_ELEMENTS (gst_video_scale_format_caps); i++) gst_caps_append (caps, gst_caps_make_writable - (gst_static_caps_get (&gst_videoscale_format_caps[i]))); + (gst_static_caps_get (&gst_video_scale_format_caps[i]))); return caps; static GstPadTemplate * -gst_videoscale_src_template_factory (void) +gst_video_scale_src_template_factory (void) return gst_pad_template_new ("src", GST_PAD_SRC, GST_PAD_ALWAYS, - gst_caps_ref (gst_videoscale_get_capslist ())); + gst_caps_ref (gst_video_scale_get_capslist ())); -gst_videoscale_sink_template_factory (void) +gst_video_scale_sink_template_factory (void) return gst_pad_template_new ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, -static void gst_videoscale_base_init (gpointer g_class); -static void gst_videoscale_class_init (GstVideoscaleClass * klass); -static void gst_videoscale_init (GstVideoscale * videoscale); -static gboolean gst_videoscale_handle_src_event (GstPad * pad, +static void gst_video_scale_base_init (gpointer g_class); +static void gst_video_scale_class_init (GstVideoScaleClass * klass); +static void gst_video_scale_init (GstVideoScale * videoscale); +static gboolean gst_video_scale_handle_src_event (GstPad * pad, GstEvent * event); /* base transform vmethods */ -static GstCaps *gst_videoscale_transform_caps (GstBaseTransform * trans, +static GstCaps *gst_video_scale_transform_caps (GstBaseTransform * trans, GstPadDirection direction, GstCaps * caps); -static gboolean gst_videoscale_set_caps (GstBaseTransform * trans, +static gboolean gst_video_scale_set_caps (GstBaseTransform * trans, GstCaps * in, GstCaps * out); -static gboolean gst_videoscale_get_unit_size (GstBaseTransform * trans, +static gboolean gst_video_scale_get_unit_size (GstBaseTransform * trans, GstCaps * caps, guint * size); -static GstFlowReturn gst_videoscale_transform (GstBaseTransform * trans, +static GstFlowReturn gst_video_scale_transform (GstBaseTransform * trans, GstBuffer * in, GstBuffer * out); -static void gst_videoscale_fixate_caps (GstBaseTransform * base, +static void gst_video_scale_fixate_caps (GstBaseTransform * base, GstPadDirection direction, GstCaps * caps, GstCaps * othercaps); -static void gst_videoscale_set_property (GObject * object, guint prop_id, +static void gst_video_scale_set_property (GObject * object, guint prop_id, const GValue * value, GParamSpec * pspec); -static void gst_videoscale_get_property (GObject * object, guint prop_id, +static void gst_video_scale_get_property (GObject * object, guint prop_id, GValue * value, GParamSpec * pspec); GType -gst_videoscale_get_type (void) +gst_video_scale_get_type (void) - static GType videoscale_type = 0; + static GType video_scale_type = 0; - if (!videoscale_type) { - static const GTypeInfo videoscale_info = { - sizeof (GstVideoscaleClass), - gst_videoscale_base_init, + if (!video_scale_type) { + static const GTypeInfo video_scale_info = { + sizeof (GstVideoScaleClass), + gst_video_scale_base_init, - (GClassInitFunc) gst_videoscale_class_init, + (GClassInitFunc) gst_video_scale_class_init, - sizeof (GstVideoscale), + sizeof (GstVideoScale), - (GInstanceInitFunc) gst_videoscale_init, + (GInstanceInitFunc) gst_video_scale_init, - videoscale_type = - g_type_register_static (GST_TYPE_BASE_TRANSFORM, "GstVideoscale", - &videoscale_info, 0); + video_scale_type = + g_type_register_static (GST_TYPE_BASE_TRANSFORM, "GstVideoScale", + &video_scale_info, 0); - return videoscale_type; + return video_scale_type; -gst_videoscale_base_init (gpointer g_class) +gst_video_scale_base_init (gpointer g_class) - gst_element_class_set_details (element_class, &videoscale_details); + gst_element_class_set_details (element_class, &video_scale_details); - gst_videoscale_sink_template_factory ()); + gst_video_scale_sink_template_factory ()); - gst_videoscale_src_template_factory ()); + gst_video_scale_src_template_factory ()); -gst_videoscale_class_init (GstVideoscaleClass * klass) +gst_video_scale_class_init (GstVideoScaleClass * klass) GstBaseTransformClass *trans_class; @@ -209,19 +209,20 @@ trans_class = (GstBaseTransformClass *) klass; - gobject_class->set_property = gst_videoscale_set_property; - gobject_class->get_property = gst_videoscale_get_property; + gobject_class->set_property = gst_video_scale_set_property; + gobject_class->get_property = gst_video_scale_get_property; g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_METHOD, g_param_spec_enum ("method", "method", "method", - GST_TYPE_VIDEOSCALE_METHOD, 0, G_PARAM_READWRITE)); + GST_TYPE_VIDEO_SCALE_METHOD, 0, G_PARAM_READWRITE)); trans_class->transform_caps = - GST_DEBUG_FUNCPTR (gst_videoscale_transform_caps); - trans_class->set_caps = GST_DEBUG_FUNCPTR (gst_videoscale_set_caps); - trans_class->get_unit_size = GST_DEBUG_FUNCPTR (gst_videoscale_get_unit_size); - trans_class->transform = GST_DEBUG_FUNCPTR (gst_videoscale_transform); - trans_class->fixate_caps = GST_DEBUG_FUNCPTR (gst_videoscale_fixate_caps); + GST_DEBUG_FUNCPTR (gst_video_scale_transform_caps); + trans_class->set_caps = GST_DEBUG_FUNCPTR (gst_video_scale_set_caps); + trans_class->get_unit_size = + GST_DEBUG_FUNCPTR (gst_video_scale_get_unit_size); + trans_class->transform = GST_DEBUG_FUNCPTR (gst_video_scale_transform); + trans_class->fixate_caps = GST_DEBUG_FUNCPTR (gst_video_scale_fixate_caps); trans_class->passthrough_on_same_caps = TRUE; @@ -229,23 +230,23 @@ -gst_videoscale_init (GstVideoscale * videoscale) +gst_video_scale_init (GstVideoScale * videoscale) GstBaseTransform *trans = GST_BASE_TRANSFORM (videoscale); - gst_pad_set_event_function (trans->srcpad, gst_videoscale_handle_src_event); + gst_pad_set_event_function (trans->srcpad, gst_video_scale_handle_src_event); videoscale->tmp_buf = NULL; - videoscale->method = GST_VIDEOSCALE_NEAREST; - /*videoscale->method = GST_VIDEOSCALE_BILINEAR; */ + videoscale->method = GST_VIDEO_SCALE_NEAREST; + /*videoscale->method = GST_VIDEO_SCALE_BILINEAR; */ -gst_videoscale_set_property (GObject * object, guint prop_id, +gst_video_scale_set_property (GObject * object, guint prop_id, - GstVideoscale *src = GST_VIDEOSCALE (object); + GstVideoScale *src = GST_VIDEO_SCALE (object); case PROP_METHOD: @@ -258,10 +259,10 @@ -gst_videoscale_get_property (GObject * object, guint prop_id, GValue * value, +gst_video_scale_get_property (GObject * object, guint prop_id, GValue * value, GParamSpec * pspec) @@ -274,14 +275,14 @@ -gst_videoscale_transform_caps (GstBaseTransform * trans, +gst_video_scale_transform_caps (GstBaseTransform * trans, GstPadDirection direction, GstCaps * caps) - GstVideoscale *videoscale; + GstVideoScale *videoscale; GstCaps *ret; int i; - videoscale = GST_VIDEOSCALE (trans); + videoscale = GST_VIDEO_SCALE (trans); ret = gst_caps_copy (caps); @@ -299,13 +300,13 @@ static int -gst_videoscale_get_format (GstCaps * caps) +gst_video_scale_get_format (GstCaps * caps) GstCaps *icaps, *scaps; - for (i = 0; i < G_N_ELEMENTS (gst_videoscale_format_caps); i++) { - scaps = gst_static_caps_get (&gst_videoscale_format_caps[i]); + for (i = 0; i < G_N_ELEMENTS (gst_video_scale_format_caps); i++) { + scaps = gst_static_caps_get (&gst_video_scale_format_caps[i]); icaps = gst_caps_intersect (caps, scaps); if (!gst_caps_is_empty (icaps)) { gst_caps_unref (icaps); @@ -319,7 +320,7 @@ /* calculate the size of a buffer */ -gst_videoscale_prepare_size (gint format, +gst_video_scale_prepare_size (gint format, VSImage * img, gint width, gint height, guint * size) gboolean res = TRUE; @@ -328,31 +329,31 @@ img->height = height; switch (format) { - case GST_VIDEOSCALE_RGBx: - case GST_VIDEOSCALE_xRGB: - case GST_VIDEOSCALE_BGRx: - case GST_VIDEOSCALE_xBGR: - case GST_VIDEOSCALE_AYUV: + case GST_VIDEO_SCALE_RGBx: + case GST_VIDEO_SCALE_xRGB: + case GST_VIDEO_SCALE_BGRx: + case GST_VIDEO_SCALE_xBGR: + case GST_VIDEO_SCALE_AYUV: img->stride = img->width * 4; *size = img->stride * img->height; - case GST_VIDEOSCALE_RGB: - case GST_VIDEOSCALE_BGR: + case GST_VIDEO_SCALE_RGB: + case GST_VIDEO_SCALE_BGR: img->stride = GST_ROUND_UP_4 (img->width * 3); - case GST_VIDEOSCALE_YUY2: - case GST_VIDEOSCALE_YVYU: - case GST_VIDEOSCALE_UYVY: + case GST_VIDEO_SCALE_YUY2: + case GST_VIDEO_SCALE_YVYU: + case GST_VIDEO_SCALE_UYVY: img->stride = GST_ROUND_UP_4 (img->width * 2); - case GST_VIDEOSCALE_Y: + case GST_VIDEO_SCALE_Y: img->stride = GST_ROUND_UP_4 (img->width); - case GST_VIDEOSCALE_I420: - case GST_VIDEOSCALE_YV12: + case GST_VIDEO_SCALE_I420: + case GST_VIDEO_SCALE_YV12: { gulong img_u_stride, img_u_height; @@ -365,11 +366,11 @@ 2 * img_u_stride * img_u_height; } - case GST_VIDEOSCALE_RGB565: + case GST_VIDEO_SCALE_RGB565: - case GST_VIDEOSCALE_RGB555: + case GST_VIDEO_SCALE_RGB555: @@ -393,18 +394,18 @@ ret &= gst_structure_get_int (structure, "height", height); if (format) - *format = gst_videoscale_get_format (caps); + *format = gst_video_scale_get_format (caps); return ret; -gst_videoscale_set_caps (GstBaseTransform * trans, GstCaps * in, GstCaps * out) +gst_video_scale_set_caps (GstBaseTransform * trans, GstCaps * in, GstCaps * out) ret = parse_caps (in, &videoscale->format, &videoscale->from_width, &videoscale->from_height); @@ -412,11 +413,11 @@ if (!ret) goto done; - ret = gst_videoscale_prepare_size (videoscale->format, + ret = gst_video_scale_prepare_size (videoscale->format, &videoscale->src, videoscale->from_width, videoscale->from_height, &videoscale->src_size); - ret &= gst_videoscale_prepare_size (videoscale->format, + ret &= gst_video_scale_prepare_size (videoscale->format, &videoscale->dest, videoscale->to_width, videoscale->to_height, &videoscale->dest_size); @@ -438,28 +439,28 @@ -gst_videoscale_get_unit_size (GstBaseTransform * trans, GstCaps * caps, +gst_video_scale_get_unit_size (GstBaseTransform * trans, GstCaps * caps, guint * size) gint format, width, height; VSImage img; g_return_val_if_fail (size, FALSE); if (!parse_caps (caps, &format, &width, &height)) return FALSE; - if (!gst_videoscale_prepare_size (format, &img, width, height, size)) + if (!gst_video_scale_prepare_size (format, &img, width, height, size)) return TRUE; -gst_videoscale_fixate_caps (GstBaseTransform * base, GstPadDirection direction, +gst_video_scale_fixate_caps (GstBaseTransform * base, GstPadDirection direction, GstCaps * caps, GstCaps * othercaps) GstStructure *ins, *outs; @@ -554,7 +555,7 @@ -gst_videoscale_prepare_image (gint format, GstBuffer * buf, +gst_video_scale_prepare_image (gint format, GstBuffer * buf, VSImage * img, VSImage * img_u, VSImage * img_v) @@ -562,8 +563,8 @@ img->pixels = GST_BUFFER_DATA (buf); img_u->pixels = img->pixels + GST_ROUND_UP_2 (img->height) * img->stride; img_u->height = GST_ROUND_UP_2 (img->height) / 2; img_u->width = GST_ROUND_UP_2 (img->width) / 2; @@ -578,10 +579,10 @@ -gst_videoscale_transform (GstBaseTransform * trans, GstBuffer * in, +gst_video_scale_transform (GstBaseTransform * trans, GstBuffer * in, GstBuffer * out) VSImage *dest; VSImage *src; @@ -590,92 +591,92 @@ VSImage src_u; VSImage src_v; gst_buffer_stamp (out, in); src = &videoscale->src; dest = &videoscale->dest; - gst_videoscale_prepare_image (videoscale->format, in, src, &src_u, &src_v); - gst_videoscale_prepare_image (videoscale->format, out, dest, &dest_u, + gst_video_scale_prepare_image (videoscale->format, in, src, &src_u, &src_v); + gst_video_scale_prepare_image (videoscale->format, out, dest, &dest_u, &dest_v); switch (videoscale->method) { - case GST_VIDEOSCALE_NEAREST: + case GST_VIDEO_SCALE_NEAREST: switch (videoscale->format) { - case GST_VIDEOSCALE_RGBx: - case GST_VIDEOSCALE_xRGB: - case GST_VIDEOSCALE_BGRx: - case GST_VIDEOSCALE_xBGR: - case GST_VIDEOSCALE_AYUV: + case GST_VIDEO_SCALE_RGBx: + case GST_VIDEO_SCALE_xRGB: + case GST_VIDEO_SCALE_BGRx: + case GST_VIDEO_SCALE_xBGR: + case GST_VIDEO_SCALE_AYUV: vs_image_scale_nearest_RGBA (dest, src, videoscale->tmp_buf); break; - case GST_VIDEOSCALE_RGB: - case GST_VIDEOSCALE_BGR: + case GST_VIDEO_SCALE_RGB: + case GST_VIDEO_SCALE_BGR: vs_image_scale_nearest_RGB (dest, src, videoscale->tmp_buf); - case GST_VIDEOSCALE_YUY2: - case GST_VIDEOSCALE_YVYU: + case GST_VIDEO_SCALE_YUY2: + case GST_VIDEO_SCALE_YVYU: vs_image_scale_nearest_YUYV (dest, src, videoscale->tmp_buf); - case GST_VIDEOSCALE_UYVY: + case GST_VIDEO_SCALE_UYVY: vs_image_scale_nearest_UYVY (dest, src, videoscale->tmp_buf); - case GST_VIDEOSCALE_Y: + case GST_VIDEO_SCALE_Y: vs_image_scale_nearest_Y (dest, src, videoscale->tmp_buf); - case GST_VIDEOSCALE_I420: - case GST_VIDEOSCALE_YV12: + case GST_VIDEO_SCALE_I420: + case GST_VIDEO_SCALE_YV12: vs_image_scale_nearest_Y (&dest_u, &src_u, videoscale->tmp_buf); vs_image_scale_nearest_Y (&dest_v, &src_v, videoscale->tmp_buf); - case GST_VIDEOSCALE_RGB565: + case GST_VIDEO_SCALE_RGB565: vs_image_scale_nearest_RGB565 (dest, src, videoscale->tmp_buf); - case GST_VIDEOSCALE_RGB555: + case GST_VIDEO_SCALE_RGB555: vs_image_scale_nearest_RGB555 (dest, src, videoscale->tmp_buf); default: g_warning ("don't know how to scale"); } - case GST_VIDEOSCALE_BILINEAR: + case GST_VIDEO_SCALE_BILINEAR: vs_image_scale_linear_RGBA (dest, src, videoscale->tmp_buf); vs_image_scale_linear_RGB (dest, src, videoscale->tmp_buf); vs_image_scale_linear_YUYV (dest, src, videoscale->tmp_buf); vs_image_scale_linear_UYVY (dest, src, videoscale->tmp_buf); vs_image_scale_linear_Y (dest, src, videoscale->tmp_buf); //memset (dest_u.pixels, 128, dest_u.stride * dest_u.height); //memset (dest_v.pixels, 128, dest_v.stride * dest_v.height); vs_image_scale_linear_Y (&dest_u, &src_u, videoscale->tmp_buf); vs_image_scale_linear_Y (&dest_v, &src_v, videoscale->tmp_buf); vs_image_scale_linear_RGB565 (dest, src, videoscale->tmp_buf); vs_image_scale_linear_RGB555 (dest, src, videoscale->tmp_buf); @@ -694,14 +695,14 @@ -gst_videoscale_handle_src_event (GstPad * pad, GstEvent * event) +gst_video_scale_handle_src_event (GstPad * pad, GstEvent * event) double a; - videoscale = GST_VIDEOSCALE (gst_pad_get_parent (pad)); + videoscale = GST_VIDEO_SCALE (gst_pad_get_parent (pad)); GST_DEBUG_OBJECT (videoscale, "handling %s event", GST_EVENT_TYPE_NAME (event)); @@ -736,10 +737,10 @@ if (!gst_element_register (plugin, "videoscale", GST_RANK_NONE, - GST_TYPE_VIDEOSCALE)) + GST_TYPE_VIDEO_SCALE)) - GST_DEBUG_CATEGORY_INIT (videoscale_debug, "videoscale", 0, + GST_DEBUG_CATEGORY_INIT (video_scale_debug, "videoscale", 0, "videoscale element"); Index: gstvideoscale.h RCS file: /cvs/gstreamer/gst-plugins-base/gst/videoscale/gstvideoscale.h,v --- gstvideoscale.h 29 Nov 2005 01:13:06 -0000 1.15 +++ gstvideoscale.h 1 Dec 2005 01:12:55 -0000 1.16 @@ -18,8 +18,8 @@ -#ifndef __GST_VIDEOSCALE_H__ -#define __GST_VIDEOSCALE_H__ +#ifndef __GST_VIDEO_SCALE_H__ +#define __GST_VIDEO_SCALE_H__ @@ -30,33 +30,33 @@ -GST_DEBUG_CATEGORY_EXTERN (videoscale_debug); -#define GST_CAT_DEFAULT videoscale_debug +GST_DEBUG_CATEGORY_EXTERN (video_scale_debug); +#define GST_CAT_DEFAULT video_scale_debug -#define GST_TYPE_VIDEOSCALE \ - (gst_videoscale_get_type()) -#define GST_VIDEOSCALE(obj) \ - (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_VIDEOSCALE,GstVideoscale)) -#define GST_VIDEOSCALE_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_VIDEOSCALE,GstVideoscale)) -#define GST_IS_VIDEOSCALE(obj) \ - (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_VIDEOSCALE)) -#define GST_IS_VIDEOSCALE_CLASS(obj) \ - (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_VIDEOSCALE)) +#define GST_TYPE_VIDEO_SCALE \ + (gst_video_scale_get_type()) +#define GST_VIDEO_SCALE(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_VIDEO_SCALE,GstVideoScale)) +#define GST_VIDEO_SCALE_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_VIDEO_SCALE,GstVideoScale)) +#define GST_IS_VIDEO_SCALE(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_VIDEO_SCALE)) +#define GST_IS_VIDEO_SCALE_CLASS(obj) \ + (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_VIDEO_SCALE)) - GST_VIDEOSCALE_NEAREST, - GST_VIDEOSCALE_BILINEAR, + GST_VIDEO_SCALE_NEAREST, + GST_VIDEO_SCALE_BILINEAR, } GstVideoScaleMethod; -typedef struct _GstVideoscale GstVideoscale; -typedef struct _GstVideoscaleClass GstVideoscaleClass; +typedef struct _GstVideoScale GstVideoScale; +typedef struct _GstVideoScaleClass GstVideoScaleClass; -struct _GstVideoscale { +struct _GstVideoScale { GstBaseTransform element; GstVideoScaleMethod method; @@ -76,15 +76,15 @@ guint8 *tmp_buf; -struct _GstVideoscaleClass { +struct _GstVideoScaleClass { GstBaseTransformClass parent_class; -GType gst_videoscale_get_type(void); +GType gst_video_scale_get_type(void); -#endif /* __GST_VIDEOSCALE_H__ */ +#endif /* __GST_VIDEO_SCALE_H__ */ Index: gstvideotestsrc.c RCS file: /cvs/gstreamer/gst-plugins-base/gst/videotestsrc/gstvideotestsrc.c,v retrieving revision 1.92 retrieving revision 1.93 diff -u -d -r1.92 -r1.93 --- gstvideotestsrc.c 23 Nov 2005 13:25:53 -0000 1.92 +++ gstvideotestsrc.c 1 Dec 2005 01:12:55 -0000 1.93 @@ -43,11 +43,11 @@ #define USE_PEER_BUFFERALLOC -GST_DEBUG_CATEGORY (videotestsrc_debug); -#define GST_CAT_DEFAULT videotestsrc_debug +GST_DEBUG_CATEGORY (video_test_src_debug); +#define GST_CAT_DEFAULT video_test_src_debug -static GstElementDetails videotestsrc_details = +static GstElementDetails video_test_src_details = GST_ELEMENT_DETAILS ("Video test source", "Source/Video", "Creates a test video stream", @@ -64,62 +64,62 @@ -GST_BOILERPLATE (GstVideoTestSrc, gst_videotestsrc, GstPushSrc, +GST_BOILERPLATE (GstVideoTestSrc, gst_video_test_src, GstPushSrc, GST_TYPE_PUSH_SRC); -static void gst_videotestsrc_set_pattern (GstVideoTestSrc * videotestsrc, +static void gst_video_test_src_set_pattern (GstVideoTestSrc * videotestsrc, int pattern_type); -static void gst_videotestsrc_set_property (GObject * object, guint prop_id, +static void gst_video_test_src_set_property (GObject * object, guint prop_id, -static void gst_videotestsrc_get_property (GObject * object, guint prop_id, +static void gst_video_test_src_get_property (GObject * object, guint prop_id, -static GstCaps *gst_videotestsrc_getcaps (GstBaseSrc * bsrc); -static gboolean gst_videotestsrc_setcaps (GstBaseSrc * bsrc, GstCaps * caps); -static void gst_videotestsrc_src_fixate (GstPad * pad, GstCaps * caps); +static GstCaps *gst_video_test_src_getcaps (GstBaseSrc * bsrc); +static gboolean gst_video_test_src_setcaps (GstBaseSrc * bsrc, GstCaps * caps); +static void gst_video_test_src_src_fixate (GstPad * pad, GstCaps * caps); -static gboolean gst_videotestsrc_event (GstBaseSrc * bsrc, GstEvent * event); +static gboolean gst_video_test_src_event (GstBaseSrc * bsrc, GstEvent * event); -static void gst_videotestsrc_get_times (GstBaseSrc * basesrc, +static void gst_video_test_src_get_times (GstBaseSrc * basesrc, -static GstFlowReturn gst_videotestsrc_create (GstPushSrc * psrc, +static GstFlowReturn gst_video_test_src_create (GstPushSrc * psrc, GstBuffer ** buffer); -#define GST_TYPE_VIDEOTESTSRC_PATTERN (gst_videotestsrc_pattern_get_type ()) +#define GST_TYPE_VIDEO_TEST_SRC_PATTERN (gst_video_test_src_pattern_get_type ()) -gst_videotestsrc_pattern_get_type (void) +gst_video_test_src_pattern_get_type (void) - static GType videotestsrc_pattern_type = 0; + static GType video_test_src_pattern_type = 0; static GEnumValue pattern_types[] = { - {GST_VIDEOTESTSRC_SMPTE, "SMPTE 100% color bars", "smpte"}, - {GST_VIDEOTESTSRC_SNOW, "Random (television snow)", "snow"}, - {GST_VIDEOTESTSRC_BLACK, "100% Black", "black"}, + {GST_VIDEO_TEST_SRC_SMPTE, "SMPTE 100% color bars", "smpte"}, + {GST_VIDEO_TEST_SRC_SNOW, "Random (television snow)", "snow"}, + {GST_VIDEO_TEST_SRC_BLACK, "100% Black", "black"}, - if (!videotestsrc_pattern_type) { - videotestsrc_pattern_type = + if (!video_test_src_pattern_type) { + video_test_src_pattern_type = g_enum_register_static ("GstVideoTestSrcPattern", pattern_types); - return videotestsrc_pattern_type; + return video_test_src_pattern_type; -gst_videotestsrc_base_init (gpointer g_class) +gst_video_test_src_base_init (gpointer g_class) - gst_element_class_set_details (element_class, &videotestsrc_details); + gst_element_class_set_details (element_class, &video_test_src_details); gst_pad_template_new ("src", GST_PAD_SRC, GST_PAD_ALWAYS, - gst_videotestsrc_getcaps (NULL))); + gst_video_test_src_getcaps (NULL))); -gst_videotestsrc_class_init (GstVideoTestSrcClass * klass) +gst_video_test_src_class_init (GstVideoTestSrcClass * klass) @@ -129,13 +129,13 @@ gstpushsrc_class = (GstPushSrcClass *) klass; - gobject_class->set_property = gst_videotestsrc_set_property; - gobject_class->get_property = gst_videotestsrc_get_property; + gobject_class->set_property = gst_video_test_src_set_property; + gobject_class->get_property = gst_video_test_src_get_property; g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_PATTERN, g_param_spec_enum ("pattern", "Pattern", - "Type of test pattern to generate", GST_TYPE_VIDEOTESTSRC_PATTERN, 1, - G_PARAM_READWRITE)); + "Type of test pattern to generate", GST_TYPE_VIDEO_TEST_SRC_PATTERN, + 1, G_PARAM_READWRITE)); g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_TIMESTAMP_OFFSET, g_param_spec_int64 ("timestamp-offset", "Timestamp offset", @@ -145,22 +145,22 @@ g_param_spec_boolean ("is-live", "Is Live", "Whether to act as a live source", FALSE, G_PARAM_READWRITE)); - gstbasesrc_class->get_caps = gst_videotestsrc_getcaps; - gstbasesrc_class->set_caps = gst_videotestsrc_setcaps; - gstbasesrc_class->event = gst_videotestsrc_event; + gstbasesrc_class->get_caps = gst_video_test_src_getcaps; + gstbasesrc_class->set_caps = gst_video_test_src_setcaps; + gstbasesrc_class->event = gst_video_test_src_event; - gstbasesrc_class->get_times = gst_videotestsrc_get_times; - gstpushsrc_class->create = gst_videotestsrc_create; + gstbasesrc_class->get_times = gst_video_test_src_get_times; + gstpushsrc_class->create = gst_video_test_src_create; -gst_videotestsrc_init (GstVideoTestSrc * src, GstVideoTestSrcClass * g_class) +gst_video_test_src_init (GstVideoTestSrc * src, GstVideoTestSrcClass * g_class) - gst_pad_set_fixatecaps_function (pad, gst_videotestsrc_src_fixate); + gst_pad_set_fixatecaps_function (pad, gst_video_test_src_src_fixate); - gst_videotestsrc_set_pattern (src, GST_VIDEOTESTSRC_SMPTE); + gst_video_test_src_set_pattern (src, GST_VIDEO_TEST_SRC_SMPTE); src->segment_start_frame = -1; src->segment_end_frame = -1; @@ -170,7 +170,7 @@ -gst_videotestsrc_src_fixate (GstPad * pad, GstCaps * caps) +gst_video_test_src_src_fixate (GstPad * pad, GstCaps * caps) @@ -182,21 +182,22 @@ -gst_videotestsrc_set_pattern (GstVideoTestSrc * videotestsrc, int pattern_type) +gst_video_test_src_set_pattern (GstVideoTestSrc * videotestsrc, + int pattern_type) videotestsrc->pattern_type = pattern_type; GST_DEBUG_OBJECT (videotestsrc, "setting pattern to %d", pattern_type); switch (pattern_type) { - case GST_VIDEOTESTSRC_SMPTE: - videotestsrc->make_image = gst_videotestsrc_smpte; + case GST_VIDEO_TEST_SRC_SMPTE: + videotestsrc->make_image = gst_video_test_src_smpte; - case GST_VIDEOTESTSRC_SNOW: - videotestsrc->make_image = gst_videotestsrc_snow; + case GST_VIDEO_TEST_SRC_SNOW: + videotestsrc->make_image = gst_video_test_src_snow; - case GST_VIDEOTESTSRC_BLACK: - videotestsrc->make_image = gst_videotestsrc_black; + case GST_VIDEO_TEST_SRC_BLACK: + videotestsrc->make_image = gst_video_test_src_black; g_assert_not_reached (); @@ -204,14 +205,14 @@ -gst_videotestsrc_set_property (GObject * object, guint prop_id, +gst_video_test_src_set_property (GObject * object, guint prop_id, - GstVideoTestSrc *src = GST_VIDEOTESTSRC (object); + GstVideoTestSrc *src = GST_VIDEO_TEST_SRC (object); case PROP_PATTERN: - gst_videotestsrc_set_pattern (src, g_value_get_enum (value)); + gst_video_test_src_set_pattern (src, g_value_get_enum (value)); case PROP_TIMESTAMP_OFFSET: src->timestamp_offset = g_value_get_int64 (value); @@ -225,10 +226,10 @@ -gst_videotestsrc_get_property (GObject * object, guint prop_id, GValue * value, - GParamSpec * pspec) +gst_video_test_src_get_property (GObject * object, guint prop_id, + GValue * value, GParamSpec * pspec) @@ -248,7 +249,7 @@ /* threadsafe because this gets called as the plugin is loaded */ -gst_videotestsrc_getcaps (GstBaseSrc * unused) +gst_video_test_src_getcaps (GstBaseSrc * unused) static GstCaps *capslist = NULL; @@ -274,7 +275,7 @@ -gst_videotestsrc_parse_caps (const GstCaps * caps, +gst_video_test_src_parse_caps (const GstCaps * caps, gint * width, gint * height, gint * rate_numerator, gint * rate_denominator, struct fourcc_list_struct **fourcc) @@ -310,16 +311,16 @@ -gst_videotestsrc_setcaps (GstBaseSrc * bsrc, GstCaps * caps) +gst_video_test_src_setcaps (GstBaseSrc * bsrc, GstCaps * caps) gboolean res; gint width, height, rate_denominator, rate_numerator; struct fourcc_list_struct *fourcc; GstVideoTestSrc *videotestsrc; - videotestsrc = GST_VIDEOTESTSRC (bsrc); + videotestsrc = GST_VIDEO_TEST_SRC (bsrc); - res = gst_videotestsrc_parse_caps (caps, &width, &height, + res = gst_video_test_src_parse_caps (caps, &width, &height, &rate_numerator, &rate_denominator, &fourcc); if (res) { /* looks ok here */ @@ -338,13 +339,13 @@ -gst_videotestsrc_event (GstBaseSrc * bsrc, GstEvent * event) +gst_video_test_src_event (GstBaseSrc * bsrc, GstEvent * event) gint64 new_n_frames; new_n_frames = videotestsrc->n_frames; switch (GST_EVENT_TYPE (event)) { @@ -393,7 +394,7 @@ -gst_videotestsrc_get_times (GstBaseSrc * basesrc, GstBuffer * buffer, +gst_video_test_src_get_times (GstBaseSrc * basesrc, GstBuffer * buffer, @@ -416,19 +417,19 @@ -gst_videotestsrc_create (GstPushSrc * psrc, GstBuffer ** buffer) +gst_video_test_src_create (GstPushSrc * psrc, GstBuffer ** buffer) GstVideoTestSrc *src; gulong newsize; GstBuffer *outbuf; GstFlowReturn res; - src = GST_VIDEOTESTSRC (psrc); + src = GST_VIDEO_TEST_SRC (psrc); if (src->fourcc == NULL) goto not_negotiated; - newsize = gst_videotestsrc_get_size (src, src->width, src->height); + newsize = gst_video_test_src_get_size (src, src->width, src->height); g_return_val_if_fail (newsize > 0, GST_FLOW_ERROR); @@ -487,11 +488,11 @@ oil_init (); - GST_DEBUG_CATEGORY_INIT (videotestsrc_debug, "videotestsrc", 0, + GST_DEBUG_CATEGORY_INIT (video_test_src_debug, "videotestsrc", 0, "Video Test Source"); return gst_element_register (plugin, "videotestsrc", GST_RANK_NONE, - GST_TYPE_VIDEOTESTSRC); + GST_TYPE_VIDEO_TEST_SRC); Index: gstvideotestsrc.h RCS file: /cvs/gstreamer/gst-plugins-base/gst/videotestsrc/gstvideotestsrc.h,v retrieving revision 1.26 retrieving revision 1.27 diff -u -d -r1.26 -r1.27 --- gstvideotestsrc.h 22 Nov 2005 16:08:37 -0000 1.26 +++ gstvideotestsrc.h 1 Dec 2005 01:12:55 -0000 1.27 @@ -18,29 +18,29 @@ * Boston, MA 02111-1307, USA. -#ifndef __GST_VIDEOTESTSRC_H__ -#define __GST_VIDEOTESTSRC_H__ +#ifndef __GST_VIDEO_TEST_SRC_H__ +#define __GST_VIDEO_TEST_SRC_H__ #include <gst/base/gstpushsrc.h> -#define GST_TYPE_VIDEOTESTSRC \ - (gst_videotestsrc_get_type()) -#define GST_VIDEOTESTSRC(obj) \ - (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_VIDEOTESTSRC,GstVideoTestSrc)) -#define GST_VIDEOTESTSRC_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_VIDEOTESTSRC,GstVideoTestSrc)) -#define GST_IS_VIDEOTESTSRC(obj) \ - (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_VIDEOTESTSRC)) -#define GST_IS_VIDEOTESTSRC_CLASS(obj) \ - (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_VIDEOTESTSRC)) +#define GST_TYPE_VIDEO_TEST_SRC \ + (gst_video_test_src_get_type()) +#define GST_VIDEO_TEST_SRC(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_VIDEO_TEST_SRC,GstVideoTestSrc)) +#define GST_VIDEO_TEST_SRC_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_VIDEO_TEST_SRC,GstVideoTestSrc)) +#define GST_IS_VIDEO_TEST_SRC(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_VIDEO_TEST_SRC)) +#define GST_IS_VIDEO_TEST_SRC_CLASS(obj) \ + (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_VIDEO_TEST_SRC)) - GST_VIDEOTESTSRC_SMPTE, - GST_VIDEOTESTSRC_SNOW, - GST_VIDEOTESTSRC_BLACK, + GST_VIDEO_TEST_SRC_SMPTE, + GST_VIDEO_TEST_SRC_SNOW, + GST_VIDEO_TEST_SRC_BLACK, } GstVideoTestSrcPattern; typedef struct _GstVideoTestSrc GstVideoTestSrc; @@ -77,8 +77,8 @@ GstPushSrcClass parent_class; -GType gst_videotestsrc_get_type (void); +GType gst_video_test_src_get_type (void); -#endif /* __GST_VIDEOTESTSRC_H__ */ +#endif /* __GST_VIDEO_TEST_SRC_H__ */ Index: videotestsrc.c RCS file: /cvs/gstreamer/gst-plugins-base/gst/videotestsrc/videotestsrc.c,v --- videotestsrc.c 21 Nov 2005 13:32:35 -0000 1.26 +++ videotestsrc.c 1 Dec 2005 01:12:55 -0000 1.27 @@ -495,7 +495,7 @@ /* returns the size in bytes for one video frame of the given dimensions * given the fourcc in GstVideoTestSrc */ int -gst_videotestsrc_get_size (GstVideoTestSrc * v, int w, int h) +gst_video_test_src_get_size (GstVideoTestSrc * v, int w, int h) paintinfo pi = { 0 }; paintinfo *p = π @@ -513,7 +513,8 @@ void -gst_videotestsrc_smpte (GstVideoTestSrc * v, unsigned char *dest, int w, int h) +gst_video_test_src_smpte (GstVideoTestSrc * v, unsigned char *dest, int w, + int h) int y1, y2; @@ -622,7 +623,7 @@ -gst_videotestsrc_snow (GstVideoTestSrc * v, unsigned char *dest, int w, int h) +gst_video_test_src_snow (GstVideoTestSrc * v, unsigned char *dest, int w, int h) int j; @@ -656,7 +657,8 @@ -gst_videotestsrc_black (GstVideoTestSrc * v, unsigned char *dest, int w, int h) +gst_video_test_src_black (GstVideoTestSrc * v, unsigned char *dest, int w, paintinfo pi; Index: videotestsrc.h RCS file: /cvs/gstreamer/gst-plugins-base/gst/videotestsrc/videotestsrc.h,v --- videotestsrc.h 28 Jul 2005 18:42:54 -0000 1.13 +++ videotestsrc.h 1 Dec 2005 01:12:55 -0000 1.14 @@ -17,8 +17,8 @@ -#ifndef __VIDEOTESTSRC_H__ -#define __VIDEOTESTSRC_H__ +#ifndef __VIDEO_TEST_SRC_H__ +#define __VIDEO_TEST_SRC_H__ #include "_stdint.h" @@ -66,12 +66,12 @@ paintinfo_find_by_structure (const GstStructure *structure); GstStructure * paint_get_structure (struct fourcc_list_struct *format); -int gst_videotestsrc_get_size (GstVideoTestSrc * v, int w, int h); -void gst_videotestsrc_smpte (GstVideoTestSrc * v, +int gst_video_test_src_get_size (GstVideoTestSrc * v, int w, int h); +void gst_video_test_src_smpte (GstVideoTestSrc * v, unsigned char *dest, int w, int h); -void gst_videotestsrc_snow (GstVideoTestSrc * v, +void gst_video_test_src_snow (GstVideoTestSrc * v, -void gst_videotestsrc_black (GstVideoTestSrc * v, +void gst_video_test_src_black (GstVideoTestSrc * v, extern struct fourcc_list_struct fourcc_list[]; Index: gstvideorate.c RCS file: /cvs/gstreamer/gst-plugins-base/gst/videorate/gstvideorate.c,v retrieving revision 1.28 diff -u -d -r1.28 -r1.29 --- gstvideorate.c 23 Nov 2005 13:25:53 -0000 1.28 +++ gstvideorate.c 1 Dec 2005 01:12:55 -0000 1.29 @@ -23,24 +23,24 @@ -GST_DEBUG_CATEGORY (videorate_debug); -#define GST_CAT_DEFAULT videorate_debug +GST_DEBUG_CATEGORY (video_rate_debug); +#define GST_CAT_DEFAULT video_rate_debug -#define GST_TYPE_VIDEORATE \ - (gst_videorate_get_type()) -#define GST_VIDEORATE(obj) \ - (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_VIDEORATE,GstVideorate)) -#define GST_VIDEORATE_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_VIDEORATE,GstVideorate)) -#define GST_IS_VIDEORATE(obj) \ - (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_VIDEORATE)) -#define GST_IS_VIDEORATE_CLASS(obj) \ - (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_VIDEORATE)) +#define GST_TYPE_VIDEO_RATE \ + (gst_video_rate_get_type()) +#define GST_VIDEO_RATE(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_VIDEO_RATE,GstVideoRate)) +#define GST_VIDEO_RATE_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_VIDEO_RATE,GstVideoRate)) +#define GST_IS_VIDEO_RATE(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_VIDEO_RATE)) +#define GST_IS_VIDEO_RATE_CLASS(obj) \ + (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_VIDEO_RATE)) -typedef struct _GstVideorate GstVideorate; -typedef struct _GstVideorateClass GstVideorateClass; +typedef struct _GstVideoRate GstVideoRate; +typedef struct _GstVideoRateClass GstVideoRateClass; -struct _GstVideorate +struct _GstVideoRate @@ -64,19 +64,19 @@ gdouble new_pref; -struct _GstVideorateClass +struct _GstVideoRateClass -static GstElementDetails videorate_details = +static GstElementDetails video_rate_details = GST_ELEMENT_DETAILS ("Video rate adjuster", "Drops/duplicates/adjusts timestamps on video frames to make a perfect stream", -/* GstVideorate signals and args */ +/* GstVideoRate signals and args */ @@ -98,85 +98,85 @@ -static GstStaticPadTemplate gst_videorate_src_template = +static GstStaticPadTemplate gst_video_rate_src_template = GST_STATIC_PAD_TEMPLATE ("src", GST_STATIC_CAPS ("video/x-raw-yuv; video/x-raw-rgb") -static GstStaticPadTemplate gst_videorate_sink_template = +static GstStaticPadTemplate gst_video_rate_sink_template = GST_STATIC_PAD_TEMPLATE ("sink", -static void gst_videorate_base_init (gpointer g_class); -static void gst_videorate_class_init (GstVideorateClass * klass); -static void gst_videorate_init (GstVideorate * videorate); -static gboolean gst_videorate_event (GstPad * pad, GstEvent * event); -static GstFlowReturn gst_videorate_chain (GstPad * pad, GstBuffer * buffer); +static void gst_video_rate_base_init (gpointer g_class); +static void gst_video_rate_class_init (GstVideoRateClass * klass); +static void gst_video_rate_init (GstVideoRate * videorate); +static gboolean gst_video_rate_event (GstPad * pad, GstEvent * event); +static GstFlowReturn gst_video_rate_chain (GstPad * pad, GstBuffer * buffer); -static void gst_videorate_set_property (GObject * object, +static void gst_video_rate_set_property (GObject * object, -static void gst_videorate_get_property (GObject * object, +static void gst_video_rate_get_property (GObject * object, -static GstStateChangeReturn gst_videorate_change_state (GstElement * element, +static GstStateChangeReturn gst_video_rate_change_state (GstElement * element, -/*static guint gst_videorate_signals[LAST_SIGNAL] = { 0 }; */ +/*static guint gst_video_rate_signals[LAST_SIGNAL] = { 0 }; */ -gst_videorate_get_type (void) +gst_video_rate_get_type (void) - static GType videorate_type = 0; + static GType video_rate_type = 0; - if (!videorate_type) { - static const GTypeInfo videorate_info = { - sizeof (GstVideorateClass), - gst_videorate_base_init, + if (!video_rate_type) { + static const GTypeInfo video_rate_info = { + sizeof (GstVideoRateClass), + gst_video_rate_base_init, - (GClassInitFunc) gst_videorate_class_init, + (GClassInitFunc) gst_video_rate_class_init, - sizeof (GstVideorate), + sizeof (GstVideoRate), - (GInstanceInitFunc) gst_videorate_init, + (GInstanceInitFunc) gst_video_rate_init, - videorate_type = g_type_register_static (GST_TYPE_ELEMENT, - "GstVideorate", &videorate_info, 0); + video_rate_type = g_type_register_static (GST_TYPE_ELEMENT, + "GstVideoRate", &video_rate_info, 0); - return videorate_type; + return video_rate_type; -gst_videorate_base_init (gpointer g_class) +gst_video_rate_base_init (gpointer g_class) - gst_element_class_set_details (element_class, &videorate_details); + gst_element_class_set_details (element_class, &video_rate_details); - gst_static_pad_template_get (&gst_videorate_sink_template)); + gst_static_pad_template_get (&gst_video_rate_sink_template)); - gst_static_pad_template_get (&gst_videorate_src_template)); + gst_static_pad_template_get (&gst_video_rate_src_template)); -gst_videorate_class_init (GstVideorateClass * klass) +gst_video_rate_class_init (GstVideoRateClass * klass) - object_class->set_property = gst_videorate_set_property; - object_class->get_property = gst_videorate_get_property; + object_class->set_property = gst_video_rate_set_property; + object_class->get_property = gst_video_rate_get_property; @@ -199,12 +199,12 @@ "Value indicating how much to prefer new frames", 0.0, 1.0, DEFAULT_NEW_PREF, G_PARAM_READWRITE)); - element_class->change_state = gst_videorate_change_state; + element_class->change_state = gst_video_rate_change_state; /* return the caps that can be used on out_pad given in_caps on in_pad */ -gst_videorate_transformcaps (GstPad * in_pad, GstCaps * in_caps, +gst_video_rate_transformcaps (GstPad * in_pad, GstCaps * in_caps, GstPad * out_pad, GstCaps ** out_caps) GstCaps *intersect; @@ -229,13 +229,13 @@ -gst_videorate_getcaps (GstPad * pad) +gst_video_rate_getcaps (GstPad * pad) - GstVideorate *videorate; + GstVideoRate *videorate; GstCaps *caps; - videorate = GST_VIDEORATE (GST_PAD_PARENT (pad)); + videorate = GST_VIDEO_RATE (GST_PAD_PARENT (pad)); otherpad = (pad == videorate->srcpad) ? videorate->sinkpad : videorate->srcpad; @@ -245,7 +245,7 @@ if (caps) { GstCaps *transform; - gst_videorate_transformcaps (otherpad, caps, pad, &transform); + gst_video_rate_transformcaps (otherpad, caps, pad, &transform); gst_caps_unref (caps); caps = transform; } else { @@ -257,15 +257,15 @@ -gst_videorate_setcaps (GstPad * pad, GstCaps * caps) +gst_video_rate_setcaps (GstPad * pad, GstCaps * caps) gboolean ret = TRUE; GstPad *otherpad, *opeer; gint rate_numerator, rate_denominator; if (!gst_structure_get_fraction (structure, "framerate", @@ -297,7 +297,7 @@ ret = FALSE; /* see how we can transform the input caps */ - if (!gst_videorate_transformcaps (pad, caps, otherpad, &transform)) + if (!gst_video_rate_transformcaps (pad, caps, otherpad, &transform)) goto done; /* see what the peer can do */ @@ -342,7 +342,7 @@ -gst_videorate_blank_data (GstVideorate * videorate) +gst_video_rate_blank_data (GstVideoRate * videorate) GST_DEBUG ("resetting data"); if (videorate->prevbuf) @@ -367,34 +367,34 @@ -gst_videorate_init (GstVideorate * videorate) +gst_video_rate_init (GstVideoRate * videorate) - GST_DEBUG ("gst_videorate_init"); + GST_DEBUG ("gst_video_rate_init"); videorate->sinkpad = - gst_pad_new_from_static_template (&gst_videorate_sink_template, "sink"); + gst_pad_new_from_static_template (&gst_video_rate_sink_template, "sink"); gst_element_add_pad (GST_ELEMENT (videorate), videorate->sinkpad); - gst_pad_set_event_function (videorate->sinkpad, gst_videorate_event); - gst_pad_set_chain_function (videorate->sinkpad, gst_videorate_chain); - gst_pad_set_getcaps_function (videorate->sinkpad, gst_videorate_getcaps); - gst_pad_set_setcaps_function (videorate->sinkpad, gst_videorate_setcaps); + gst_pad_set_event_function (videorate->sinkpad, gst_video_rate_event); + gst_pad_set_chain_function (videorate->sinkpad, gst_video_rate_chain); + gst_pad_set_getcaps_function (videorate->sinkpad, gst_video_rate_getcaps); + gst_pad_set_setcaps_function (videorate->sinkpad, gst_video_rate_setcaps); videorate->srcpad = - gst_pad_new_from_static_template (&gst_videorate_src_template, "src"); + gst_pad_new_from_static_template (&gst_video_rate_src_template, "src"); gst_element_add_pad (GST_ELEMENT (videorate), videorate->srcpad); - gst_pad_set_getcaps_function (videorate->srcpad, gst_videorate_getcaps); - gst_pad_set_setcaps_function (videorate->srcpad, gst_videorate_setcaps); + gst_pad_set_getcaps_function (videorate->srcpad, gst_video_rate_getcaps); + gst_pad_set_setcaps_function (videorate->srcpad, gst_video_rate_setcaps); - gst_videorate_blank_data (videorate); + gst_video_rate_blank_data (videorate); videorate->silent = DEFAULT_SILENT; videorate->new_pref = DEFAULT_NEW_PREF; -gst_videorate_event (GstPad * pad, GstEvent * event) +gst_video_rate_event (GstPad * pad, GstEvent * event) case GST_EVENT_NEWSEGMENT: @@ -428,7 +428,7 @@ case GST_EVENT_FLUSH_STOP: - gst_videorate_blank_data (videorate); + gst_video_rate_blank_data (videorate); @@ -438,12 +438,12 @@ -gst_videorate_chain (GstPad * pad, GstBuffer * buffer) +gst_video_rate_chain (GstPad * pad, GstBuffer * buffer) GstFlowReturn res = GST_FLOW_OK; if (videorate->from_rate_numerator == 0 || videorate->from_rate_denominator == 0 || @@ -566,10 +566,10 @@ -gst_videorate_set_property (GObject * object, +gst_video_rate_set_property (GObject * object, - GstVideorate *videorate = GST_VIDEORATE (object); + GstVideoRate *videorate = GST_VIDEO_RATE (object); @@ -585,10 +585,10 @@ -gst_videorate_get_property (GObject * object, +gst_video_rate_get_property (GObject * object, @@ -616,12 +616,12 @@ -gst_videorate_change_state (GstElement * element, GstStateChange transition) +gst_video_rate_change_state (GstElement * element, GstStateChange transition) GstStateChangeReturn ret; - videorate = GST_VIDEORATE (element); + videorate = GST_VIDEO_RATE (element); @@ -632,7 +632,7 @@ @@ -644,11 +644,11 @@ - GST_DEBUG_CATEGORY_INIT (videorate_debug, "videorate", 0, - "Videorate stream fixer"); + GST_DEBUG_CATEGORY_INIT (video_rate_debug, "videorate", 0, + "VideoRate stream fixer"); return gst_element_register (plugin, "videorate", GST_RANK_NONE, - GST_TYPE_VIDEORATE); + GST_TYPE_VIDEO_RATE); Index: gstsubparse.c RCS file: /cvs/gstreamer/gst-plugins-base/gst/subparse/gstsubparse.c,v --- gstsubparse.c 29 Nov 2005 16:21:13 -0000 1.15 +++ gstsubparse.c 1 Dec 2005 01:12:54 -0000 1.16 @@ -29,8 +29,8 @@ #include "gstsubparse.h" -GST_DEBUG_CATEGORY_STATIC (subparse_debug); -#define GST_CAT_DEFAULT subparse_debug +GST_DEBUG_CATEGORY_STATIC (sub_parse_debug); +#define GST_CAT_DEFAULT sub_parse_debug static GstStaticPadTemplate sink_templ = GST_STATIC_PAD_TEMPLATE ("sink", @@ -44,60 +44,60 @@ GST_STATIC_CAPS ("text/plain; text/x-pango-markup") -static void gst_subparse_base_init (GstSubparseClass * klass); -static void gst_subparse_class_init (GstSubparseClass * klass); -static void gst_subparse_init (GstSubparse * subparse); +static void gst_sub_parse_base_init (GstSubParseClass * klass); +static void gst_sub_parse_class_init (GstSubParseClass * klass); +static void gst_sub_parse_init (GstSubParse * subparse); #if 0 -static const GstFormat *gst_subparse_formats (GstPad * pad); -static const GstEventMask *gst_subparse_src_eventmask (GstPad * pad); +static const GstFormat *gst_sub_parse_formats (GstPad * pad); +static const GstEventMask *gst_sub_parse_src_eventmask (GstPad * pad); #endif -static gboolean gst_subparse_src_event (GstPad * pad, GstEvent * event); +static gboolean gst_sub_parse_src_event (GstPad * pad, GstEvent * event); -static GstStateChangeReturn gst_subparse_change_state (GstElement * element, +static GstStateChangeReturn gst_sub_parse_change_state (GstElement * element, -static void gst_subparse_loop (GstPad * sinkpad); +static void gst_sub_parse_loop (GstPad * sinkpad); -static GstFlowReturn gst_subparse_chain (GstPad * sinkpad, GstBuffer * buf); +static GstFlowReturn gst_sub_parse_chain (GstPad * sinkpad, GstBuffer * buf); -static GstCaps *gst_subparse_type_find (GstBuffer * buf, gpointer private); +static GstCaps *gst_sub_parse_type_find (GstBuffer * buf, gpointer private); -gst_subparse_get_type (void) +gst_sub_parse_get_type (void) - static GType subparse_type = 0; + static GType sub_parse_type = 0; - if (!subparse_type) { - static const GTypeInfo subparse_info = { - sizeof (GstSubparseClass), - (GBaseInitFunc) gst_subparse_base_init, + if (!sub_parse_type) { + static const GTypeInfo sub_parse_info = { + sizeof (GstSubParseClass), + (GBaseInitFunc) gst_sub_parse_base_init, - (GClassInitFunc) gst_subparse_class_init, + (GClassInitFunc) gst_sub_parse_class_init, - sizeof (GstSubparse), + sizeof (GstSubParse), - (GInstanceInitFunc) gst_subparse_init, + (GInstanceInitFunc) gst_sub_parse_init, - subparse_type = g_type_register_static (GST_TYPE_ELEMENT, - "GstSubparse", &subparse_info, 0); + sub_parse_type = g_type_register_static (GST_TYPE_ELEMENT, + "GstSubParse", &sub_parse_info, 0); - return subparse_type; + return sub_parse_type; -gst_subparse_base_init (GstSubparseClass * klass) +gst_sub_parse_base_init (GstSubParseClass * klass) - static GstElementDetails subparse_details = { + static GstElementDetails sub_parse_details = { "Subtitle parsers", "Codec/Parser/Subtitle", "Parses subtitle (.sub) files into text streams", @@ -109,28 +109,28 @@ gst_static_pad_template_get (&sink_templ)); gst_static_pad_template_get (&src_templ)); - gst_element_class_set_details (element_class, &subparse_details); + gst_element_class_set_details (element_class, &sub_parse_details); -gst_subparse_class_init (GstSubparseClass * klass) +gst_sub_parse_class_init (GstSubParseClass * klass) parent_class = g_type_class_ref (GST_TYPE_ELEMENT); - element_class->change_state = gst_subparse_change_state; + element_class->change_state = gst_sub_parse_change_state; -gst_subparse_init (GstSubparse * subparse) +gst_sub_parse_init (GstSubParse * subparse) subparse->sinkpad = gst_pad_new_from_static_template (&sink_templ, "sink"); - gst_pad_set_chain_function (subparse->sinkpad, gst_subparse_chain); + gst_pad_set_chain_function (subparse->sinkpad, gst_sub_parse_chain); gst_element_add_pad (GST_ELEMENT (subparse), subparse->sinkpad); subparse->srcpad = gst_pad_new_from_static_template (&src_templ, "src"); - gst_pad_set_event_function (subparse->srcpad, gst_subparse_src_event); + gst_pad_set_event_function (subparse->srcpad, gst_sub_parse_src_event); gst_element_add_pad (GST_ELEMENT (subparse), subparse->srcpad); subparse->textbuf = g_string_new (NULL); @@ -143,7 +143,7 @@ static const GstFormat * -gst_subparse_formats (GstPad * pad) +gst_sub_parse_formats (GstPad * pad) static const GstFormat formats[] = { GST_FORMAT_TIME, @@ -154,7 +154,7 @@ static const GstEventMask * -gst_subparse_src_eventmask (GstPad * pad) +gst_sub_parse_src_eventmask (GstPad * pad) static const GstEventMask masks[] = { {GST_EVENT_SEEK, GST_SEEK_METHOD_SET}, @@ -166,9 +166,9 @@ -gst_subparse_src_event (GstPad * pad, GstEvent * event) +gst_sub_parse_src_event (GstPad * pad, GstEvent * event) - GstSubparse *self = GST_SUBPARSE (gst_pad_get_parent (pad)); + GstSubParse *self = GST_SUBPARSE (gst_pad_get_parent (pad)); GstFormat format; GstSeekType type; @@ -198,7 +198,7 @@ static gchar * -convert_encoding (GstSubparse * self, const gchar * str, gsize len) +convert_encoding (GstSubParse * self, const gchar * str, gsize len) gsize bytes_read, bytes_written; gchar *rv; @@ -235,7 +235,7 @@ -get_next_line (GstSubparse * self) +get_next_line (GstSubParse * self) char *line = NULL; const char *line_end; @@ -449,7 +449,7 @@ static GstSubParseFormat -gst_subparse_data_format_autodetect (gchar * match_str) +gst_sub_parse_data_format_autodetect (gchar * match_str) static gboolean need_init_regexps = TRUE; static regex_t mdvd_rx; @@ -490,7 +490,7 @@ -gst_subparse_format_autodetect (GstSubparse * self) +gst_sub_parse_format_autodetect (GstSubParse * self) gchar *data; GstSubParseFormat format; @@ -501,7 +501,7 @@ data = g_strndup (self->textbuf->str, 35); - format = gst_subparse_data_format_autodetect (data); + format = gst_sub_parse_data_format_autodetect (data); g_free (data); self->parser_type = format; @@ -527,7 +527,7 @@ -feed_textbuf (GstSubparse * self, GstBuffer * buf) +feed_textbuf (GstSubParse * self, GstBuffer * buf) if (GST_BUFFER_OFFSET (buf) != self->offset) { /* flush the parser state */ @@ -544,7 +544,7 @@ -handle_buffer (GstSubparse * self, GstBuffer * buf) +handle_buffer (GstSubParse * self, GstBuffer * buf) GstCaps *caps = NULL; gchar *line, *subtitle; @@ -553,7 +553,7 @@ /* make sure we know the format */ if (G_UNLIKELY (self->parser_type == GST_SUB_PARSE_FORMAT_UNKNOWN)) { - if (!(caps = gst_subparse_format_autodetect (self))) { + if (!(caps = gst_sub_parse_format_autodetect (self))) { return GST_FLOW_UNEXPECTED; @@ -590,13 +590,13 @@ -gst_subparse_loop (GstPad * sinkpad) +gst_sub_parse_loop (GstPad * sinkpad) - GstSubparse *self; + GstSubParse *self; - GST_DEBUG ("gst_subparse_loop"); + GST_DEBUG ("gst_sub_parse_loop"); self = GST_SUBPARSE (GST_OBJECT_PARENT (sinkpad)); GST_STREAM_LOCK (sinkpad); @@ -614,12 +614,12 @@ -gst_subparse_chain (GstPad * sinkpad, GstBuffer * buf) +gst_sub_parse_chain (GstPad * sinkpad, GstBuffer * buf) GstFlowReturn ret; - GST_DEBUG ("gst_subparse_chain"); + GST_DEBUG ("gst_sub_parse_chain"); ret = handle_buffer (self, buf); @@ -628,9 +628,9 @@ -gst_subparse_change_state (GstElement * element, GstStateChange transition) +gst_sub_parse_change_state (GstElement * element, GstStateChange transition) - GstSubparse *self = GST_SUBPARSE (element); + GstSubParse *self = GST_SUBPARSE (element); @@ -651,25 +651,25 @@ /* typefinding stuff */ -static GstTypeDefinition subparse_definition = { +static GstTypeDefinition sub_parse_definition = { "subparse/x-text", "text/plain", ".sub", - gst_subparse_type_find, + gst_sub_parse_type_find, -gst_subparse_type_find (GstBuffer * buf, gpointer private) +gst_sub_parse_type_find (GstBuffer * buf, gpointer private) - format = gst_subparse_data_format_autodetect (buf); + format = gst_sub_parse_data_format_autodetect (buf); case GST_SUB_PARSE_FORMAT_MDVDSUB: GST_DEBUG (GST_CAT_PLUGIN_INFO, "MicroDVD format detected"); - return gst_caps_new ("subparse_type_find", "text/plain", NULL); + return gst_caps_new ("sub_parse_type_find", "text/plain", NULL); case GST_SUB_PARSE_FORMAT_SUBRIP: GST_DEBUG (GST_CAT_PLUGIN_INFO, "SubRip format detected"); case GST_SUB_PARSE_FORMAT_UNKNOWN: GST_DEBUG (GST_CAT_PLUGIN_INFO, "no subtitle format detected"); @@ -682,7 +682,7 @@ - GST_DEBUG_CATEGORY_INIT (subparse_debug, "subparse", 0, ".sub parser"); + GST_DEBUG_CATEGORY_INIT (sub_parse_debug, "subparse", 0, ".sub parser"); return gst_element_register (plugin, "subparse", GST_RANK_PRIMARY, GST_TYPE_SUBPARSE); Index: gstsubparse.h RCS file: /cvs/gstreamer/gst-plugins-base/gst/subparse/gstsubparse.h,v --- gstsubparse.h 6 May 2005 03:32:51 -0000 1.2 +++ gstsubparse.h 1 Dec 2005 01:12:54 -0000 1.3 @@ -26,18 +26,18 @@ #define GST_TYPE_SUBPARSE \ - (gst_subparse_get_type ()) + (gst_sub_parse_get_type ()) #define GST_SUBPARSE(obj) \ - (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_SUBPARSE, GstSubparse)) + (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_SUBPARSE, GstSubParse)) #define GST_SUBPARSE_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_SUBPARSE, GstSubparse)) + (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_SUBPARSE, GstSubParse)) #define GST_IS_SUBPARSE(obj) \ (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_SUBPARSE)) #define GST_IS_SUBPARSE_CLASS(obj) \ (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_SUBPARSE)) -typedef struct _GstSubparse GstSubparse; -typedef struct _GstSubparseClass GstSubparseClass; +typedef struct _GstSubParse GstSubParse; +typedef struct _GstSubParseClass GstSubParseClass; /* format enum */ typedef enum @@ -57,7 +57,7 @@ typedef gchar* (*Parser) (ParserState *state, const gchar *line); -struct _GstSubparse { +struct _GstSubParse { GstPad *sinkpad,*srcpad; @@ -75,11 +75,11 @@ guint64 next_offset; -struct _GstSubparseClass { +struct _GstSubParseClass { -GType gst_subparse_get_type (void); +GType gst_sub_parse_get_type (void); |
From: <thomasvs@fr...> - 2005-12-01 00:55:12
|
CVS Root: /cvs/gstreamer Module: gstreamer Changes by: thomasvs Date: Wed Nov 30 2005 16:55:07 PST Log message: * plugins/elements/gstelements.c: * plugins/elements/gstfdsink.c: (gst_fd_sink__base_init), (gst_fd_sink__class_init), (gst_fd_sink__init), (gst_fd_sink__chain), (gst_fd_sink__set_property), (gst_fd_sink__get_property): * plugins/elements/gstfdsink.h: * plugins/elements/gstfdsrc.c: (_do_init), (gst_fd_src_base_init), (gst_fd_src_class_init), (gst_fd_src_init), (gst_fd_src_dispose), (gst_fd_src_update_fd), (gst_fd_src_start), (gst_fd_src_stop), (gst_fd_src_unlock), (gst_fd_src_set_property), (gst_fd_src_get_property), (gst_fd_src_create), (gst_fd_src_is_seekable), (gst_fd_src_get_size), (gst_fd_src_uri_get_type), (gst_fd_src_uri_get_protocols), (gst_fd_src_uri_get_uri), (gst_fd_src_uri_set_uri), (gst_fd_src_uri_handler_init): * plugins/elements/gstfdsrc.h: * plugins/elements/gstqueue.c: (gst_queue_get_type): more anal cleanup Modified files: . : ChangeLog docs/libs/tmpl : gstdataprotocol.sgml plugins/elements: gstelements.c gstfdsink.c gstfdsink.h gstfdsrc.c gstfdsrc.h gstqueue.c Links: http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/ChangeLog.diff?r1=1.2075&r2=1.2076 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/docs/libs/tmpl/gstdataprotocol.sgml.diff?r1=1.20&r2=1.21 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/plugins/elements/gstelements.c.diff?r1=1.73&r2=1.74 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/plugins/elements/gstfdsink.c.diff?r1=1.30&r2=1.31 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/plugins/elements/gstfdsink.h.diff?r1=1.13&r2=1.14 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/plugins/elements/gstfdsrc.c.diff?r1=1.54&r2=1.55 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/plugins/elements/gstfdsrc.h.diff?r1=1.18&r2=1.19 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/plugins/elements/gstqueue.c.diff?r1=1.168&r2=1.169 ====Begin Diffs==== Index: ChangeLog =================================================================== RCS file: /cvs/gstreamer/gstreamer/ChangeLog,v retrieving revision 1.2075 retrieving revision 1.2076 diff -u -d -r1.2075 -r1.2076 --- ChangeLog 30 Nov 2005 19:36:50 -0000 1.2075 +++ ChangeLog 1 Dec 2005 00:54:54 -0000 1.2076 @@ -1,3 +1,24 @@ +2005-12-01 Thomas Vander Stichele <thomas at apestaart dot org> + + * plugins/elements/gstelements.c: + * plugins/elements/gstfdsink.c: (gst_fd_sink__base_init), + (gst_fd_sink__class_init), (gst_fd_sink__init), + (gst_fd_sink__chain), (gst_fd_sink__set_property), + (gst_fd_sink__get_property): + * plugins/elements/gstfdsink.h: + * plugins/elements/gstfdsrc.c: (_do_init), (gst_fd_src_base_init), + (gst_fd_src_class_init), (gst_fd_src_init), (gst_fd_src_dispose), + (gst_fd_src_update_fd), (gst_fd_src_start), (gst_fd_src_stop), + (gst_fd_src_unlock), (gst_fd_src_set_property), + (gst_fd_src_get_property), (gst_fd_src_create), + (gst_fd_src_is_seekable), (gst_fd_src_get_size), + (gst_fd_src_uri_get_type), (gst_fd_src_uri_get_protocols), + (gst_fd_src_uri_get_uri), (gst_fd_src_uri_set_uri), + (gst_fd_src_uri_handler_init): + * plugins/elements/gstfdsrc.h: + * plugins/elements/gstqueue.c: (gst_queue_get_type): + more anal cleanup 2005-11-30 Thomas Vander Stichele <thomas (at) apestaart (dot) org> * docs/gst/Makefile.am: Index: gstdataprotocol.sgml RCS file: /cvs/gstreamer/gstreamer/docs/libs/tmpl/gstdataprotocol.sgml,v retrieving revision 1.20 retrieving revision 1.21 diff -u -d -r1.20 -r1.21 --- gstdataprotocol.sgml 30 Nov 2005 17:05:28 -0000 1.20 +++ gstdataprotocol.sgml 1 Dec 2005 00:54:54 -0000 1.21 @@ -27,6 +27,9 @@ #GstBuffer, #GstCaps, #GstEvent </para> +<!-- ##### SECTION Stability_Level ##### --> <!-- ##### ENUM GstDPHeaderFlag ##### --> <para> Index: gstelements.c RCS file: /cvs/gstreamer/gstreamer/plugins/elements/gstelements.c,v retrieving revision 1.73 retrieving revision 1.74 diff -u -d -r1.73 -r1.74 --- gstelements.c 29 Nov 2005 19:47:00 -0000 1.73 +++ gstelements.c 1 Dec 2005 00:54:54 -0000 1.74 @@ -53,7 +53,7 @@ {"fakesrc", GST_RANK_NONE, gst_fake_src_get_type}, {"fakesink", GST_RANK_NONE, gst_fake_sink_get_type}, #if HAVE_SYS_SOCKET_H - {"fdsrc", GST_RANK_NONE, gst_fdsrc_get_type}, + {"fdsrc", GST_RANK_NONE, gst_fd_src_get_type}, #endif {"filesrc", GST_RANK_NONE, gst_file_src_get_type}, {"identity", GST_RANK_NONE, gst_identity_get_type}, Index: gstfdsink.c RCS file: /cvs/gstreamer/gstreamer/plugins/elements/gstfdsink.c,v retrieving revision 1.30 retrieving revision 1.31 diff -u -d -r1.30 -r1.31 --- gstfdsink.c 15 Oct 2005 15:30:23 -0000 1.30 +++ gstfdsink.c 1 Dec 2005 00:54:54 -0000 1.31 @@ -34,10 +34,10 @@ GST_PAD_ALWAYS, GST_STATIC_CAPS_ANY); -GST_DEBUG_CATEGORY_STATIC (gst_fdsink_debug); -#define GST_CAT_DEFAULT gst_fdsink_debug +GST_DEBUG_CATEGORY_STATIC (gst_fd_sink__debug); +#define GST_CAT_DEFAULT gst_fd_sink__debug -static GstElementDetails gst_fdsink_details = +static GstElementDetails gst_fd_sink__details = GST_ELEMENT_DETAILS ("Filedescriptor Sink", "Sink/File", "Write data to a file descriptor", @@ -59,37 +59,37 @@ #define _do_init(bla) \ - GST_DEBUG_CATEGORY_INIT (gst_fdsink_debug, "fdsink", 0, "fdsink element"); + GST_DEBUG_CATEGORY_INIT (gst_fd_sink__debug, "fdsink", 0, "fdsink element"); -GST_BOILERPLATE_FULL (GstFdSink, gst_fdsink, GstElement, GST_TYPE_ELEMENT, +GST_BOILERPLATE_FULL (GstFdSink, gst_fd_sink_, GstElement, GST_TYPE_ELEMENT, _do_init); -static void gst_fdsink_set_property (GObject * object, guint prop_id, +static void gst_fd_sink__set_property (GObject * object, guint prop_id, const GValue * value, GParamSpec * pspec); -static void gst_fdsink_get_property (GObject * object, guint prop_id, +static void gst_fd_sink__get_property (GObject * object, guint prop_id, GValue * value, GParamSpec * pspec); -static void gst_fdsink_chain (GstPad * pad, GstData * _data); +static void gst_fd_sink__chain (GstPad * pad, GstData * _data); static void -gst_fdsink_base_init (gpointer g_class) +gst_fd_sink__base_init (gpointer g_class) { GstElementClass *gstelement_class = GST_ELEMENT_CLASS (g_class); gst_element_class_add_pad_template (gstelement_class, gst_static_pad_template_get (&sinktemplate)); - gst_element_class_set_details (gstelement_class, &gst_fdsink_details); + gst_element_class_set_details (gstelement_class, &gst_fd_sink__details); } -gst_fdsink_class_init (GstFdSinkClass * klass) +gst_fd_sink__class_init (GstFdSinkClass * klass) GObjectClass *gobject_class; gobject_class = G_OBJECT_CLASS (klass); - gobject_class->set_property = gst_fdsink_set_property; - gobject_class->get_property = gst_fdsink_get_property; + gobject_class->set_property = gst_fd_sink__set_property; + gobject_class->get_property = gst_fd_sink__get_property; g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_FD, g_param_spec_int ("fd", "fd", "An open file descriptor to write to", @@ -97,19 +97,19 @@ -gst_fdsink_init (GstFdSink * fdsink) +gst_fd_sink__init (GstFdSink * fdsink) fdsink->sinkpad = gst_pad_new_from_template (gst_static_pad_template_get (&sinktemplate), "sink"); gst_element_add_pad (GST_ELEMENT (fdsink), fdsink->sinkpad); - gst_pad_set_chain_function (fdsink->sinkpad, gst_fdsink_chain); + gst_pad_set_chain_function (fdsink->sinkpad, gst_fd_sink__chain); fdsink->fd = 1; -gst_fdsink_chain (GstPad * pad, GstData * _data) +gst_fd_sink__chain (GstPad * pad, GstData * _data) GstBuffer *buf = GST_BUFFER (_data); GstFdSink *fdsink; @@ -118,7 +118,7 @@ g_return_if_fail (GST_IS_PAD (pad)); g_return_if_fail (buf != NULL); - fdsink = GST_FDSINK (gst_pad_get_parent (pad)); + fdsink = GST_FD_SINK (gst_pad_get_parent (pad)); g_return_if_fail (fdsink->fd >= 0); @@ -132,14 +132,14 @@ -gst_fdsink_set_property (GObject * object, guint prop_id, const GValue * value, - GParamSpec * pspec) +gst_fd_sink__set_property (GObject * object, guint prop_id, + const GValue * value, GParamSpec * pspec) - g_return_if_fail (GST_IS_FDSINK (object)); + g_return_if_fail (GST_IS_FD_SINK (object)); - fdsink = GST_FDSINK (object); + fdsink = GST_FD_SINK (object); switch (prop_id) { case ARG_FD: @@ -151,14 +151,14 @@ -gst_fdsink_get_property (GObject * object, guint prop_id, GValue * value, +gst_fd_sink__get_property (GObject * object, guint prop_id, GValue * value, GParamSpec * pspec) Index: gstfdsink.h RCS file: /cvs/gstreamer/gstreamer/plugins/elements/gstfdsink.h,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- gstfdsink.h 15 Oct 2005 15:30:23 -0000 1.13 +++ gstfdsink.h 1 Dec 2005 00:54:54 -0000 1.14 @@ -21,24 +21,24 @@ */ -#ifndef __GST_FDSINK_H__ -#define __GST_FDSINK_H__ +#ifndef __GST_FD_SINK_H__ +#define __GST_FD_SINK_H__ #include <gst/gst.h> G_BEGIN_DECLS -#define GST_TYPE_FDSINK \ - (gst_fdsink_get_type()) -#define GST_FDSINK(obj) \ - (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_FDSINK,GstFdSink)) -#define GST_FDSINK_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_FDSINK,GstFdSinkClass)) -#define GST_IS_FDSINK(obj) \ - (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_FDSINK)) -#define GST_IS_FDSINK_CLASS(obj) \ - (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_FDSINK)) +#define GST_TYPE_FD_SINK \ + (gst_fd_sink__get_type()) +#define GST_FD_SINK(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_FD_SINK,GstFdSink)) +#define GST_FD_SINK_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_FD_SINK,GstFdSinkClass)) +#define GST_IS_FD_SINK(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_FD_SINK)) +#define GST_IS_FD_SINK_CLASS(obj) \ + (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_FD_SINK)) typedef struct _GstFdSink GstFdSink; typedef struct _GstFdSinkClass GstFdSinkClass; @@ -55,8 +55,8 @@ GstElementClass parent_class; }; -GType gst_fdsink_get_type(void); +GType gst_fd_sink__get_type(void); G_END_DECLS -#endif /* __GST_FDSINK_H__ */ +#endif /* __GST_FD_SINK_H__ */ Index: gstfdsrc.c RCS file: /cvs/gstreamer/gstreamer/plugins/elements/gstfdsrc.c,v retrieving revision 1.54 retrieving revision 1.55 diff -u -d -r1.54 -r1.55 --- gstfdsrc.c 27 Nov 2005 22:50:09 -0000 1.54 +++ gstfdsrc.c 1 Dec 2005 00:54:54 -0000 1.55 @@ -67,10 +67,11 @@ -GST_DEBUG_CATEGORY_STATIC (gst_fdsrc_debug); -#define GST_CAT_DEFAULT gst_fdsrc_debug +GST_DEBUG_CATEGORY_STATIC (gst_fd_src_debug); +#define GST_CAT_DEFAULT gst_fd_src_debug -static GstElementDetails gst_fdsrc_details = GST_ELEMENT_DETAILS ("Disk Source", +static GstElementDetails gst_fd_src_details = +GST_ELEMENT_DETAILS ("Disk Source", "Source/File", "Synchronous read from a file", "Erik Walthinsen <omega@...>"); @@ -81,52 +82,52 @@ PROP_FD, -static void gst_fdsrc_uri_handler_init (gpointer g_iface, gpointer iface_data); +static void gst_fd_src_uri_handler_init (gpointer g_iface, gpointer iface_data); -_do_init (GType fdsrc_type) +_do_init (GType fd_src_type) static const GInterfaceInfo urihandler_info = { - gst_fdsrc_uri_handler_init, + gst_fd_src_uri_handler_init, NULL, NULL }; - g_type_add_interface_static (fdsrc_type, GST_TYPE_URI_HANDLER, + g_type_add_interface_static (fd_src_type, GST_TYPE_URI_HANDLER, &urihandler_info); - GST_DEBUG_CATEGORY_INIT (gst_fdsrc_debug, "fdsrc", 0, "fdsrc element"); + GST_DEBUG_CATEGORY_INIT (gst_fd_src_debug, "fdsrc", 0, "fdsrc element"); -GST_BOILERPLATE_FULL (GstFdSrc, gst_fdsrc, GstElement, GST_TYPE_PUSH_SRC, +GST_BOILERPLATE_FULL (GstFdSrc, gst_fd_src, GstElement, GST_TYPE_PUSH_SRC, -static void gst_fdsrc_set_property (GObject * object, guint prop_id, +static void gst_fd_src_set_property (GObject * object, guint prop_id, -static void gst_fdsrc_get_property (GObject * object, guint prop_id, +static void gst_fd_src_get_property (GObject * object, guint prop_id, -static void gst_fdsrc_dispose (GObject * obj); +static void gst_fd_src_dispose (GObject * obj); -static gboolean gst_fdsrc_start (GstBaseSrc * bsrc); -static gboolean gst_fdsrc_stop (GstBaseSrc * bsrc); -static gboolean gst_fdsrc_unlock (GstBaseSrc * bsrc); -static gboolean gst_fdsrc_is_seekable (GstBaseSrc * bsrc); -static gboolean gst_fdsrc_get_size (GstBaseSrc * src, guint64 * size); +static gboolean gst_fd_src_start (GstBaseSrc * bsrc); +static gboolean gst_fd_src_stop (GstBaseSrc * bsrc); +static gboolean gst_fd_src_unlock (GstBaseSrc * bsrc); +static gboolean gst_fd_src_is_seekable (GstBaseSrc * bsrc); +static gboolean gst_fd_src_get_size (GstBaseSrc * src, guint64 * size); -static GstFlowReturn gst_fdsrc_create (GstPushSrc * psrc, GstBuffer ** outbuf); +static GstFlowReturn gst_fd_src_create (GstPushSrc * psrc, GstBuffer ** outbuf); -gst_fdsrc_base_init (gpointer g_class) +gst_fd_src_base_init (gpointer g_class) gst_static_pad_template_get (&srctemplate)); - gst_element_class_set_details (gstelement_class, &gst_fdsrc_details); + gst_element_class_set_details (gstelement_class, &gst_fd_src_details); -gst_fdsrc_class_init (GstFdSrcClass * klass) +gst_fd_src_class_init (GstFdSrcClass * klass) GstBaseSrcClass *gstbasesrc_class; @@ -140,25 +141,25 @@ parent_class = g_type_class_ref (GST_TYPE_PUSH_SRC); - gobject_class->set_property = gst_fdsrc_set_property; - gobject_class->get_property = gst_fdsrc_get_property; - gobject_class->dispose = gst_fdsrc_dispose; + gobject_class->set_property = gst_fd_src_set_property; + gobject_class->get_property = gst_fd_src_get_property; + gobject_class->dispose = gst_fd_src_dispose; g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_FD, g_param_spec_int ("fd", "fd", "An open file descriptor to read from", 0, G_MAXINT, 0, G_PARAM_READWRITE)); - gstbasesrc_class->start = GST_DEBUG_FUNCPTR (gst_fdsrc_start); - gstbasesrc_class->stop = GST_DEBUG_FUNCPTR (gst_fdsrc_stop); - gstbasesrc_class->unlock = GST_DEBUG_FUNCPTR (gst_fdsrc_unlock); - gstbasesrc_class->is_seekable = GST_DEBUG_FUNCPTR (gst_fdsrc_is_seekable); - gstbasesrc_class->get_size = GST_DEBUG_FUNCPTR (gst_fdsrc_get_size); + gstbasesrc_class->start = GST_DEBUG_FUNCPTR (gst_fd_src_start); + gstbasesrc_class->stop = GST_DEBUG_FUNCPTR (gst_fd_src_stop); + gstbasesrc_class->unlock = GST_DEBUG_FUNCPTR (gst_fd_src_unlock); + gstbasesrc_class->is_seekable = GST_DEBUG_FUNCPTR (gst_fd_src_is_seekable); + gstbasesrc_class->get_size = GST_DEBUG_FUNCPTR (gst_fd_src_get_size); - gstpush_src_class->create = GST_DEBUG_FUNCPTR (gst_fdsrc_create); + gstpush_src_class->create = GST_DEBUG_FUNCPTR (gst_fd_src_create); -gst_fdsrc_init (GstFdSrc * fdsrc, GstFdSrcClass * klass) +gst_fd_src_init (GstFdSrc * fdsrc, GstFdSrcClass * klass) fdsrc->fd = 0; fdsrc->new_fd = 0; @@ -168,9 +169,9 @@ -gst_fdsrc_dispose (GObject * obj) +gst_fd_src_dispose (GObject * obj) - GstFdSrc *src = GST_FDSRC (obj); + GstFdSrc *src = GST_FD_SRC (obj); g_free (src->uri); src->uri = NULL; @@ -179,7 +180,7 @@ -gst_fdsrc_update_fd (GstFdSrc * src) +gst_fd_src_update_fd (GstFdSrc * src) struct stat stat_results; @@ -205,14 +206,14 @@ static gboolean -gst_fdsrc_start (GstBaseSrc * bsrc) +gst_fd_src_start (GstBaseSrc * bsrc) - GstFdSrc *src = GST_FDSRC (bsrc); + GstFdSrc *src = GST_FD_SRC (bsrc); gint control_sock[2]; src->curoffset = 0; - gst_fdsrc_update_fd (src); + gst_fd_src_update_fd (src); if (socketpair (PF_UNIX, SOCK_STREAM, 0, control_sock) < 0) goto socket_pair; @@ -235,9 +236,9 @@ -gst_fdsrc_stop (GstBaseSrc * bsrc) +gst_fd_src_stop (GstBaseSrc * bsrc) close (READ_SOCKET (src)); close (WRITE_SOCKET (src)); @@ -246,9 +247,9 @@ -gst_fdsrc_unlock (GstBaseSrc * bsrc) +gst_fd_src_unlock (GstBaseSrc * bsrc) SEND_COMMAND (src, CONTROL_STOP); @@ -256,10 +257,10 @@ -gst_fdsrc_set_property (GObject * object, guint prop_id, const GValue * value, +gst_fd_src_set_property (GObject * object, guint prop_id, const GValue * value, - GstFdSrc *src = GST_FDSRC (object); + GstFdSrc *src = GST_FD_SRC (object); case PROP_FD: @@ -269,7 +270,7 @@ * so it is reflected in get_properties and uri */ GST_OBJECT_LOCK (object); if (GST_STATE (GST_ELEMENT (src)) <= GST_STATE_READY) { - gst_fdsrc_update_fd (src); + gst_fd_src_update_fd (src); } GST_OBJECT_UNLOCK (object); break; @@ -280,10 +281,10 @@ -gst_fdsrc_get_property (GObject * object, guint prop_id, GValue * value, +gst_fd_src_get_property (GObject * object, guint prop_id, GValue * value, @@ -296,7 +297,7 @@ static GstFlowReturn -gst_fdsrc_create (GstPushSrc * psrc, GstBuffer ** outbuf) +gst_fd_src_create (GstPushSrc * psrc, GstBuffer ** outbuf) GstFdSrc *src; GstBuffer *buf; @@ -308,7 +309,7 @@ gint retval; - src = GST_FDSRC (psrc); + src = GST_FD_SRC (psrc); #ifndef HAVE_WIN32 FD_ZERO (&readfds); @@ -398,17 +399,17 @@ gboolean -gst_fdsrc_is_seekable (GstBaseSrc * bsrc) +gst_fd_src_is_seekable (GstBaseSrc * bsrc) return src->seekable_fd; -gst_fdsrc_get_size (GstBaseSrc * bsrc, guint64 * size) +gst_fd_src_get_size (GstBaseSrc * bsrc, guint64 * size) if (!src->seekable_fd) { @@ -435,30 +436,30 @@ /*** GSTURIHANDLER INTERFACE *************************************************/ static guint -gst_fdsrc_uri_get_type (void) +gst_fd_src_uri_get_type (void) return GST_URI_SRC; static gchar ** -gst_fdsrc_uri_get_protocols (void) +gst_fd_src_uri_get_protocols (void) static gchar *protocols[] = { "fd", NULL }; return protocols; static const gchar * -gst_fdsrc_uri_get_uri (GstURIHandler * handler) +gst_fd_src_uri_get_uri (GstURIHandler * handler) - GstFdSrc *src = GST_FDSRC (handler); + GstFdSrc *src = GST_FD_SRC (handler); return src->uri; -gst_fdsrc_uri_set_uri (GstURIHandler * handler, const gchar * uri) +gst_fd_src_uri_set_uri (GstURIHandler * handler, const gchar * uri) gchar *protocol; gint fd; protocol = gst_uri_get_protocol (uri); @@ -475,7 +476,7 @@ GST_OBJECT_LOCK (src); if (GST_STATE (GST_ELEMENT (src)) <= GST_STATE_READY) { - gst_fdsrc_update_fd (src); + gst_fd_src_update_fd (src); } GST_OBJECT_UNLOCK (src); @@ -483,12 +484,12 @@ -gst_fdsrc_uri_handler_init (gpointer g_iface, gpointer iface_data) +gst_fd_src_uri_handler_init (gpointer g_iface, gpointer iface_data) GstURIHandlerInterface *iface = (GstURIHandlerInterface *) g_iface; - iface->get_type = gst_fdsrc_uri_get_type; - iface->get_protocols = gst_fdsrc_uri_get_protocols; - iface->get_uri = gst_fdsrc_uri_get_uri; - iface->set_uri = gst_fdsrc_uri_set_uri; + iface->get_type = gst_fd_src_uri_get_type; + iface->get_protocols = gst_fd_src_uri_get_protocols; + iface->get_uri = gst_fd_src_uri_get_uri; + iface->set_uri = gst_fd_src_uri_set_uri; Index: gstfdsrc.h RCS file: /cvs/gstreamer/gstreamer/plugins/elements/gstfdsrc.h,v retrieving revision 1.18 retrieving revision 1.19 diff -u -d -r1.18 -r1.19 --- gstfdsrc.h 27 Nov 2005 22:50:09 -0000 1.18 +++ gstfdsrc.h 1 Dec 2005 00:54:54 -0000 1.19 @@ -22,8 +22,8 @@ -#ifndef __GST_FDSRC_H__ -#define __GST_FDSRC_H__ +#ifndef __GST_FD_SRC_H__ +#define __GST_FD_SRC_H__ #include <gst/base/gstpushsrc.h> @@ -31,16 +31,16 @@ -#define GST_TYPE_FDSRC \ - (gst_fdsrc_get_type()) -#define GST_FDSRC(obj) \ - (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_FDSRC,GstFdSrc)) -#define GST_FDSRC_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_FDSRC,GstFdSrcClass)) -#define GST_IS_FDSRC(obj) \ - (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_FDSRC)) -#define GST_IS_FDSRC_CLASS(obj) \ - (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_FDSRC)) +#define GST_TYPE_FD_SRC \ + (gst_fd_src_get_type()) +#define GST_FD_SRC(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_FD_SRC,GstFdSrc)) +#define GST_FD_SRC_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_FD_SRC,GstFdSrcClass)) +#define GST_IS_FD_SRC(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_FD_SRC)) +#define GST_IS_FD_SRC_CLASS(obj) \ + (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_FD_SRC)) typedef struct _GstFdSrc GstFdSrc; @@ -70,8 +70,8 @@ void (*timeout) (GstElement *element); -GType gst_fdsrc_get_type(void); +GType gst_fd_src_get_type(void); -#endif /* __GST_FDSRC_H__ */ +#endif /* __GST_FD_SRC_H__ */ |