summaryrefslogtreecommitdiffstats
path: root/gst/chart
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2002-03-19 04:10:06 +0000
committerAndy Wingo <wingo@pobox.com>2002-03-19 04:10:06 +0000
commit4359de26166000e317604b6b20283c79dd2a0521 (patch)
treebc587b41e92b76e4f12e5e11984989e4e89d9935 /gst/chart
parent0dc999da00ffc311ee1fc040ab754dab6660f2c7 (diff)
downloadgst-plugins-bad-4359de26166000e317604b6b20283c79dd2a0521.tar.gz
gst-plugins-bad-4359de26166000e317604b6b20283c79dd2a0521.tar.bz2
gst-plugins-bad-4359de26166000e317604b6b20283c79dd2a0521.zip
removal of //-style comments don't link plugins to core libs -- the versioning is done internally to the plugins with...
Original commit message from CVS: * removal of //-style comments * don't link plugins to core libs -- the versioning is done internally to the plugins with the plugin_info struct, and symbol resolution is lazy, so we can always know if a plugin can be loaded by the plugin_info data. in theory.
Diffstat (limited to 'gst/chart')
-rw-r--r--gst/chart/Makefile.am2
-rw-r--r--gst/chart/gstchart.c34
2 files changed, 18 insertions, 18 deletions
diff --git a/gst/chart/Makefile.am b/gst/chart/Makefile.am
index 4b767535..40adc263 100644
--- a/gst/chart/Makefile.am
+++ b/gst/chart/Makefile.am
@@ -2,5 +2,5 @@ plugindir = $(libdir)/gst
plugin_LTLIBRARIES = libchart.la
libchart_la_SOURCES = gstchart.c
libchart_la_CFLAGS = $(GST_CFLAGS)
-libchart_la_LIBADD = $(GST_LIBS)
+libchart_la_LIBADD =
libchart_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
diff --git a/gst/chart/gstchart.c b/gst/chart/gstchart.c
index a08c475d..331652e9 100644
--- a/gst/chart/gstchart.c
+++ b/gst/chart/gstchart.c
@@ -36,10 +36,10 @@ struct _GstChart {
GstPad *sinkpad,*srcpad;
GstBufferPool *peerpool;
- // the timestamp of the next frame
+ /* the timestamp of the next frame */
guint64 next_time;
- // video state
+ /* video state */
gint bpp;
gint depth;
gint width;
@@ -47,9 +47,9 @@ struct _GstChart {
gboolean first_buffer;
gint samplerate;
- gint framerate; // desired frame rate
- gint samples_between_frames; // number of samples between start of successive frames
- gint samples_since_last_frame; // number of samples between start of successive frames
+ gint framerate; /* desired frame rate */
+ gint samples_between_frames; /* number of samples between start of successive frames */
+ gint samples_since_last_frame; /* number of samples between start of successive frames */
};
struct _GstChartClass {
@@ -217,7 +217,7 @@ gst_chart_init (GstChart *chart)
chart->next_time = 0;
chart->peerpool = NULL;
- // reset the initial video state
+ /* reset the initial video state */
chart->bpp = 16;
chart->depth = 16;
chart->first_buffer = TRUE;
@@ -225,8 +225,8 @@ gst_chart_init (GstChart *chart)
chart->height = 128;
chart->samplerate = -1;
- chart->framerate = 25; // desired frame rate
- chart->samples_between_frames = 0; // number of samples between start of successive frames
+ chart->framerate = 25; /* desired frame rate */
+ chart->samples_between_frames = 0; /* number of samples between start of successive frames */
chart->samples_since_last_frame = 0;
}
@@ -241,8 +241,8 @@ gst_chart_sinkconnect (GstPad *pad, GstCaps *caps)
GST_DEBUG (0, "CHART: new sink caps: rate %d\n",
chart->samplerate);
- //gst_chart_sync_parms (chart);
- //
+ /*gst_chart_sync_parms (chart); */
+ /* */
return GST_PAD_CONNECT_OK;
}
@@ -333,9 +333,9 @@ gst_chart_chain (GstPad *pad, GstBuffer *bufin)
if (chart->samples_between_frames <= chart->samples_since_last_frame) {
chart->samples_since_last_frame = 0;
- // get data to draw into buffer
+ /* get data to draw into buffer */
if (samples_in >= chart->width) {
- // make a new buffer for the output
+ /* make a new buffer for the output */
bufout = gst_buffer_new ();
sizeout = chart->bpp / 8 * chart->width * chart->height;
dataout = g_malloc (sizeout);
@@ -344,16 +344,16 @@ gst_chart_chain (GstPad *pad, GstBuffer *bufin)
GST_DEBUG (0, "CHART: made new buffer: size %d, width %d, height %d\n",
sizeout, chart->width, chart->height);
- // take data and draw to new buffer
- // FIXME: call different routines for different properties
+ /* take data and draw to new buffer */
+ /* FIXME: call different routines for different properties */
draw_chart_16bpp(dataout, chart->width, chart->height, (gint16 *)datain, samples_in);
gst_buffer_unref(bufin);
- // set timestamp
+ /* set timestamp */
GST_BUFFER_TIMESTAMP (bufout) = chart->next_time;
- // Check if we need to renegotiate size.
+ /* Check if we need to renegotiate size. */
if (chart->first_buffer) {
GST_DEBUG (0, "making new pad\n");
if (!gst_pad_try_set_caps (chart->srcpad,
@@ -378,7 +378,7 @@ gst_chart_chain (GstPad *pad, GstBuffer *bufin)
}
GST_DEBUG (0, "CHART: outputting buffer\n");
- // output buffer
+ /* output buffer */
GST_BUFFER_FLAG_SET (bufout, GST_BUFFER_READONLY);
gst_pad_push (chart->srcpad, bufout);
}