mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-18 12:15:19 +00:00
Fix several C++ style comments.
Original commit message from CVS: Fix several C++ style comments.
This commit is contained in:
parent
31b3a71dc8
commit
f1a8a9c502
2 changed files with 8 additions and 8 deletions
|
@ -38,17 +38,17 @@ struct _GstMonoscope {
|
||||||
GstPad *sinkpad,*srcpad;
|
GstPad *sinkpad,*srcpad;
|
||||||
GstBufferPool *peerpool;
|
GstBufferPool *peerpool;
|
||||||
|
|
||||||
// the timestamp of the next frame
|
/* the timestamp of the next frame */
|
||||||
guint64 next_time;
|
guint64 next_time;
|
||||||
gint16 datain[512];
|
gint16 datain[512];
|
||||||
|
|
||||||
// video state
|
/* video state */
|
||||||
gint fps;
|
gint fps;
|
||||||
gint width;
|
gint width;
|
||||||
gint height;
|
gint height;
|
||||||
gboolean first_buffer;
|
gboolean first_buffer;
|
||||||
|
|
||||||
// visualisation state
|
/* visualisation state */
|
||||||
struct monoscope_state * visstate;
|
struct monoscope_state * visstate;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -201,11 +201,11 @@ gst_monoscope_init (GstMonoscope *monoscope)
|
||||||
monoscope->next_time = 0;
|
monoscope->next_time = 0;
|
||||||
monoscope->peerpool = NULL;
|
monoscope->peerpool = NULL;
|
||||||
|
|
||||||
// reset the initial video state
|
/* reset the initial video state */
|
||||||
monoscope->first_buffer = TRUE;
|
monoscope->first_buffer = TRUE;
|
||||||
monoscope->width = 256;
|
monoscope->width = 256;
|
||||||
monoscope->height = 128;
|
monoscope->height = 128;
|
||||||
monoscope->fps = 25; // desired frame rate
|
monoscope->fps = 25; /* desired frame rate */
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -247,7 +247,7 @@ gst_monoscope_chain (GstPad *pad, GstBuffer *bufin)
|
||||||
}
|
}
|
||||||
|
|
||||||
data = (gint16 *) GST_BUFFER_DATA (bufin);
|
data = (gint16 *) GST_BUFFER_DATA (bufin);
|
||||||
// FIXME: get rid of this: waste of effort.
|
/* FIXME: Select samples in a better way. */
|
||||||
for (i=0; i < 512; i++) {
|
for (i=0; i < 512; i++) {
|
||||||
monoscope->datain[i] = *data++;
|
monoscope->datain[i] = *data++;
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,8 +9,8 @@
|
||||||
|
|
||||||
struct monoscope_state {
|
struct monoscope_state {
|
||||||
gint16 copyEq[CONVOLVE_BIG];
|
gint16 copyEq[CONVOLVE_BIG];
|
||||||
int avgEq[CONVOLVE_SMALL]; // a running average of the last few.
|
int avgEq[CONVOLVE_SMALL]; /* a running average of the last few. */
|
||||||
int avgMax; // running average of max sample.
|
int avgMax; /* running average of max sample. */
|
||||||
guint32 display[(scope_width + 1) * (scope_height + 1)];
|
guint32 display[(scope_width + 1) * (scope_height + 1)];
|
||||||
|
|
||||||
convolve_state *cstate;
|
convolve_state *cstate;
|
||||||
|
|
Loading…
Reference in a new issue