-Subproject commit 4e379694ae9ff9843d65cf08928642eea44abdf8
+Subproject commit 2a3efdc282fb1ecfd2720dea40523b3441f10fed
dnl # Check command line parameters, and set shell variables accordingly #
dnl ######################################################################
-GST_DEBUGINFO
-
AC_ARG_ENABLE(libmmx,
AC_HELP_STRING([--enable-libmmx],[use libmmx, if available]),
[case "${enableval}" in
* Boston, MA 02111-1307, USA.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <config.h>
#include <string.h>
/* FIXME aasink->format is never set */
- GST_DEBUG (0, "aasink: setting %08lx (" GST_FOURCC_FORMAT ")",
+ GST_DEBUG ("aasink: setting %08lx (" GST_FOURCC_FORMAT ")",
aasink->format, GST_FOURCC_ARGS(aasink->format));
g_signal_emit( G_OBJECT (aasink), gst_aasink_signals[SIGNAL_HAVE_SIZE], 0,
aa_imgwidth (aasink->context), /* dw */
aa_imgheight (aasink->context)); /* dh */
- GST_DEBUG (0,"videosink: clock wait: %" G_GUINT64_FORMAT, GST_BUFFER_TIMESTAMP(buf));
+ GST_DEBUG ("videosink: clock wait: %" G_GUINT64_FORMAT, GST_BUFFER_TIMESTAMP(buf));
if (aasink->clock) {
GstClockID id = gst_clock_new_single_shot_id (aasink->clock, GST_BUFFER_TIMESTAMP(buf));
* Boston, MA 02111-1307, USA.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <string.h>
/* First, include the header file for the plugin, to bring in the
* Boston, MA 02111-1307, USA.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <gst/gst.h>
#include <esd.h>
+#include <unistd.h>
#define GST_TYPE_ESDMON \
(gst_esdmon_get_type())
g_return_val_if_fail (pad != NULL, NULL);
esdmon = GST_ESDMON(gst_pad_get_parent (pad));
- GST_DEBUG (GST_CAT_PLUGIN_INFO, "attempting to read something from esdmon");
+ GST_DEBUG ("attempting to read something from esdmon");
buf = gst_buffer_new ();
g_return_val_if_fail (buf, NULL);
if (esdmon->depth == 16) readsamples /= 2;
esdmon->samples_since_basetime += readsamples;
- GST_DEBUG (GST_CAT_PLUGIN_INFO, "pushed buffer from esdmon of %ld bytes, timestamp %" G_GINT64_FORMAT, readbytes, GST_BUFFER_TIMESTAMP (buf));
+ GST_DEBUG ("pushed buffer from esdmon of %ld bytes, timestamp %" G_GINT64_FORMAT, readbytes, GST_BUFFER_TIMESTAMP (buf));
return buf;
}
if (src->depth == 16) esdformat |= ESD_BITS16;
else if (src->depth == 8) esdformat |= ESD_BITS8;
else {
- GST_DEBUG (0, "esdmon: invalid bit depth (%d)", src->depth);
+ GST_DEBUG ("esdmon: invalid bit depth (%d)", src->depth);
return FALSE;
}
if (src->channels == 2) esdformat |= ESD_STEREO;
else if (src->channels == 1) esdformat |= ESD_MONO;
else {
- GST_DEBUG (0, "esdmon: invalid number of channels (%d)", src->channels);
+ GST_DEBUG ("esdmon: invalid number of channels (%d)", src->channels);
return FALSE;
}
- GST_DEBUG (0, "esdmon: attempting to open connection to esound server");
+ GST_DEBUG ("esdmon: attempting to open connection to esound server");
src->fd = esd_monitor_stream(esdformat, src->frequency, src->host, connname);
if ( src->fd < 0 ) {
- GST_DEBUG (0, "esdmon: can't open connection to esound server");
+ GST_DEBUG ("esdmon: can't open connection to esound server");
return FALSE;
}
GST_FLAG_UNSET (src, GST_ESDMON_OPEN);
- GST_DEBUG (0, "esdmon: closed sound device");
+ GST_DEBUG ("esdmon: closed sound device");
}
static GstElementStateReturn
* Boston, MA 02111-1307, USA.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include "esdsink.h"
#include <esd.h>
+#include <unistd.h>
/* elementfactory information */
static GstElementDetails esdsink_details = {
if (GST_BUFFER_DATA (buf) != NULL) {
if (!esdsink->mute && esdsink->fd >= 0) {
- GST_DEBUG (0, "esdsink: fd=%d data=%p size=%d",
+ GST_DEBUG ("esdsink: fd=%d data=%p size=%d",
esdsink->fd, GST_BUFFER_DATA (buf), GST_BUFFER_SIZE (buf));
write (esdsink->fd, GST_BUFFER_DATA (buf), GST_BUFFER_SIZE (buf));
}
if (sink->depth == 16) esdformat |= ESD_BITS16;
else if (sink->depth == 8) esdformat |= ESD_BITS8;
else {
- GST_DEBUG (0, "esdsink: invalid bit depth (%d)", sink->depth);
+ GST_DEBUG ("esdsink: invalid bit depth (%d)", sink->depth);
return FALSE;
}
if (sink->channels == 2) esdformat |= ESD_STEREO;
else if (sink->channels == 1) esdformat |= ESD_MONO;
else {
- GST_DEBUG (0, "esdsink: invalid number of channels (%d)", sink->channels);
+ GST_DEBUG ("esdsink: invalid number of channels (%d)", sink->channels);
return FALSE;
}
- GST_DEBUG (0, "esdsink: attempting to open connection to esound server");
+ GST_DEBUG ("esdsink: attempting to open connection to esound server");
sink->fd = esd_play_stream_fallback(esdformat, sink->frequency, sink->host, connname);
if ( sink->fd < 0 ) {
- GST_DEBUG (0, "esdsink: can't open connection to esound server");
+ GST_DEBUG ("esdsink: can't open connection to esound server");
return FALSE;
}
close(sink->fd);
sink->fd = -1;
- GST_DEBUG (0, "esdsink: closed sound device");
+ GST_DEBUG ("esdsink: closed sound device");
}
static GstElementStateReturn
* Boston, MA 02111-1307, USA.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <string.h>
#include <sys/soundcard.h>
number_of_comments = metadata->data.vorbis_comment.num_comments;
value = NULL;
- GST_DEBUG (GST_CAT_CAPS, "%d tag(s) found", number_of_comments);
+ GST_DEBUG ("%d tag(s) found", number_of_comments);
for (cursor = 0; cursor < number_of_comments; cursor++)
{
str_ptr = metadata->data.vorbis_comment.comments[cursor].entry;
entry = gst_props_entry_new (name, GST_PROPS_STRING_TYPE, value);
gst_props_add_entry (props, (GstPropsEntry *) entry);
- GST_DEBUG (GST_CAT_CAPS, "%s : %s", name, value);
+ GST_DEBUG ("%s : %s", name, value);
g_free (name);
g_free (value);
break;
}
- GST_DEBUG (0, error);
+ GST_DEBUG (error);
gst_element_error (GST_ELEMENT (flacdec), error);
}
flacdec = GST_FLACDEC (client_data);
- GST_DEBUG (0, "seek %" G_GINT64_FORMAT, position);
+ GST_DEBUG ("seek %" G_GINT64_FORMAT, position);
if (!gst_bytestream_seek (flacdec->bs, position, GST_SEEK_METHOD_SET)) {
return FLAC__SEEKABLE_STREAM_DECODER_SEEK_STATUS_ERROR;
}
if (*position == -1)
return FLAC__SEEKABLE_STREAM_DECODER_TELL_STATUS_ERROR;
- GST_DEBUG (0, "tell %" G_GINT64_FORMAT, *position);
+ GST_DEBUG ("tell %" G_GINT64_FORMAT, *position);
return FLAC__SEEKABLE_STREAM_DECODER_TELL_STATUS_OK;
}
if (*length == -1)
return FLAC__SEEKABLE_STREAM_DECODER_TELL_STATUS_ERROR;
- GST_DEBUG (0, "length %" G_GINT64_FORMAT, *length);
+ GST_DEBUG ("length %" G_GINT64_FORMAT, *length);
return FLAC__SEEKABLE_STREAM_DECODER_LENGTH_STATUS_OK;
}
FlacDec *flacdec;
flacdec = GST_FLACDEC (client_data);
- GST_DEBUG (0, "eof %d", flacdec->eos);
+ GST_DEBUG ("eof %d", flacdec->eos);
return flacdec->eos;
}
switch (GST_EVENT_TYPE (event)) {
case GST_EVENT_EOS:
- GST_DEBUG (0, "eos");
+ GST_DEBUG ("eos");
flacdec->eos = TRUE;
gst_event_unref (event);
if (avail == 0) {
}
break;
case GST_EVENT_DISCONTINUOUS:
- GST_DEBUG (0, "discont");
+ GST_DEBUG ("discont");
/* we are not yet sending the discont, we'll do that in the next write operation */
flacdec->need_discont = TRUE;
}
if (GST_PAD_IS_USABLE (flacdec->srcpad)) {
- GST_DEBUG (0, "send discont");
+ GST_DEBUG ("send discont");
format = GST_FORMAT_TIME;
gst_pad_convert (flacdec->srcpad, GST_FORMAT_DEFAULT,
flacdec = GST_FLACDEC (element);
- GST_DEBUG (GST_CAT_PLUGIN_INFO, "flacdec: entering loop");
+ GST_DEBUG ("flacdec: entering loop");
if (flacdec->init) {
- GST_DEBUG (GST_CAT_PLUGIN_INFO, "flacdec: initializing decoder");
+ GST_DEBUG ("flacdec: initializing decoder");
FLAC__seekable_stream_decoder_init (flacdec->decoder);
/* FLAC__seekable_stream_decoder_process_metadata (flacdec->decoder); */
flacdec->init = FALSE;
}
if (flacdec->seek_pending) {
- GST_DEBUG (GST_CAT_EVENT, "perform seek to sample %" G_GINT64_FORMAT,
+ GST_DEBUG ("perform seek to sample %" G_GINT64_FORMAT,
flacdec->seek_value);
if (FLAC__seekable_stream_decoder_seek_absolute (flacdec->decoder,
flacdec->seek_value))
{
flacdec->total_samples = flacdec->seek_value;
- GST_DEBUG (GST_CAT_EVENT, "seek done");
+ GST_DEBUG ("seek done");
}
else {
- GST_DEBUG (GST_CAT_EVENT, "seek failed");
+ GST_DEBUG ("seek failed");
}
flacdec->seek_pending = FALSE;
}
- GST_DEBUG (GST_CAT_PLUGIN_INFO, "flacdec: processing single");
+ GST_DEBUG ("flacdec: processing single");
res = FLAC__seekable_stream_decoder_process_single (flacdec->decoder);
- GST_DEBUG (GST_CAT_PLUGIN_INFO, "flacdec: checking for EOS");
+ GST_DEBUG ("flacdec: checking for EOS");
if (FLAC__seekable_stream_decoder_get_state (flacdec->decoder) ==
FLAC__SEEKABLE_STREAM_DECODER_END_OF_STREAM)
{
GstEvent *event;
- GST_DEBUG (GST_CAT_PLUGIN_INFO, "flacdec: sending EOS event");
+ GST_DEBUG ("flacdec: sending EOS event");
FLAC__seekable_stream_decoder_finish(flacdec->decoder);
flacdec->init = TRUE;
}
gst_element_set_eos (element);
}
- GST_DEBUG (GST_CAT_PLUGIN_INFO, "flacdec: _loop end");
+ GST_DEBUG ("flacdec: _loop end");
}
GST_PAD_FORMATS_FUNCTION (gst_flacdec_get_src_formats,
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <stdlib.h>
#include <string.h>
* Boston, MA 02111-1307, USA.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <gst/gst.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <string.h>
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <string.h>
/*#define DEBUG_ENABLED*/
static void
gst_jpegdec_init_source (j_decompress_ptr cinfo)
{
- GST_DEBUG (0,"gst_jpegdec_chain: init_source");
+ GST_DEBUG ("gst_jpegdec_chain: init_source");
}
static gboolean
gst_jpegdec_fill_input_buffer (j_decompress_ptr cinfo)
{
- GST_DEBUG (0,"gst_jpegdec_chain: fill_input_buffer");
+ GST_DEBUG ("gst_jpegdec_chain: fill_input_buffer");
return TRUE;
}
static void
gst_jpegdec_skip_input_data (j_decompress_ptr cinfo, glong num_bytes)
{
- GST_DEBUG (0,"gst_jpegdec_chain: skip_input_data");
+ GST_DEBUG ("gst_jpegdec_chain: skip_input_data");
}
static gboolean
gst_jpegdec_resync_to_restart (j_decompress_ptr cinfo, gint desired)
{
- GST_DEBUG (0,"gst_jpegdec_chain: resync_to_start");
+ GST_DEBUG ("gst_jpegdec_chain: resync_to_start");
return TRUE;
}
static void
gst_jpegdec_term_source (j_decompress_ptr cinfo)
{
- GST_DEBUG (0,"gst_jpegdec_chain: term_source");
+ GST_DEBUG ("gst_jpegdec_chain: term_source");
}
static void
gst_jpegdec_init (GstJpegDec *jpegdec)
{
- GST_DEBUG (0,"gst_jpegdec_init: initializing");
+ GST_DEBUG ("gst_jpegdec_init: initializing");
/* create the sink and src pads */
jpegdec->sinkpad = gst_pad_new_from_template (jpegdec_sink_template, "sink");
gst_element_add_pad(GST_ELEMENT(jpegdec),jpegdec->sinkpad);
(dinfo->dc_huff_tbl_ptrs[1] == NULL) &&
(dinfo->ac_huff_tbl_ptrs[0] == NULL) &&
(dinfo->ac_huff_tbl_ptrs[1] == NULL) ) {
- GST_DEBUG (GST_CAT_PLUGIN_INFO,
+ GST_DEBUG (
"Generating standard Huffman tables for this frame.");
std_huff_tables(dinfo);
}
data = (guchar *)GST_BUFFER_DATA(buf);
size = GST_BUFFER_SIZE(buf);
- GST_DEBUG (0,"gst_jpegdec_chain: got buffer of %ld bytes in '%s'",size,
+ GST_DEBUG ("gst_jpegdec_chain: got buffer of %ld bytes in '%s'",size,
GST_OBJECT_NAME (jpegdec));
jpegdec->jsrc.next_input_byte = data;
jpegdec->jsrc.bytes_in_buffer = size;
- GST_DEBUG (0,"gst_jpegdec_chain: reading header %08lx", *(gulong *)data);
+ GST_DEBUG ("gst_jpegdec_chain: reading header %08lx", *(gulong *)data);
jpeg_read_header(&jpegdec->cinfo, TRUE);
r_h = jpegdec->cinfo.cur_comp_info[0]->h_samp_factor;
jpegdec->cinfo.out_color_space = JCS_YCbCr;
jpegdec->cinfo.dct_method = JDCT_IFAST;
jpegdec->cinfo.raw_data_out = TRUE;
- GST_DEBUG (0,"gst_jpegdec_chain: starting decompress");
+ GST_DEBUG ("gst_jpegdec_chain: starting decompress");
guarantee_huff_tables(&jpegdec->cinfo);
jpeg_start_decompress(&jpegdec->cinfo);
width = jpegdec->cinfo.output_width;
height = jpegdec->cinfo.output_height;
- GST_DEBUG (0,"gst_jpegdec_chain: width %d, height %d", width, height);
+ GST_DEBUG ("gst_jpegdec_chain: width %d, height %d", width, height);
outbuf = gst_buffer_new();
outsize = GST_BUFFER_SIZE(outbuf) = width*height +
width2 = width >> 1;
- GST_DEBUG (0,"gst_jpegdec_chain: decompressing %u", jpegdec->cinfo.rec_outbuf_height);
+ GST_DEBUG ("gst_jpegdec_chain: decompressing %u", jpegdec->cinfo.rec_outbuf_height);
for (i = 0; i < height; i += r_v*DCTSIZE) {
for (j=0, k=0; j< (r_v*DCTSIZE); j += r_v, k++) {
jpegdec->line[0][j] = base[0]; base[0] += width;
jpeg_read_raw_data(&jpegdec->cinfo, jpegdec->line, r_v*DCTSIZE);
}
- GST_DEBUG (0,"gst_jpegdec_chain: decompressing finished");
+ GST_DEBUG ("gst_jpegdec_chain: decompressing finished");
jpeg_finish_decompress(&jpegdec->cinfo);
- GST_DEBUG (0,"gst_jpegdec_chain: sending buffer");
+ GST_DEBUG ("gst_jpegdec_chain: sending buffer");
gst_pad_push(jpegdec->srcpad, outbuf);
gst_buffer_unref(buf);
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <string.h>
#include "gstjpegenc.h"
static void
gst_jpegenc_init_destination (j_compress_ptr cinfo)
{
- GST_DEBUG (0,"gst_jpegenc_chain: init_destination");
+ GST_DEBUG ("gst_jpegenc_chain: init_destination");
}
static gboolean
gst_jpegenc_flush_destination (j_compress_ptr cinfo)
{
- GST_DEBUG (0,"gst_jpegenc_chain: flush_destination: buffer too small !!!");
+ GST_DEBUG ("gst_jpegenc_chain: flush_destination: buffer too small !!!");
return TRUE;
}
static void gst_jpegenc_term_destination (j_compress_ptr cinfo)
{
- GST_DEBUG (0,"gst_jpegenc_chain: term_source");
+ GST_DEBUG ("gst_jpegenc_chain: term_source");
}
static void
jpegenc->cinfo.err = jpeg_std_error(&jpegenc->jerr);
jpeg_create_compress(&jpegenc->cinfo);
- GST_DEBUG (0,"gst_jpegenc_init: setting line buffers");
+ GST_DEBUG ("gst_jpegenc_init: setting line buffers");
jpegenc->line[0] = NULL;
jpegenc->line[1] = NULL;
jpegenc->line[2] = NULL;
guint size = 0;
gint width, height;
- GST_DEBUG (0,"gst_jpegenc_resync: resync");
+ GST_DEBUG ("gst_jpegenc_resync: resync");
jpegenc->cinfo.image_width = width = jpegenc->width;
jpegenc->cinfo.image_height = height = jpegenc->height;
jpegenc->cinfo.input_components = 3;
- GST_DEBUG (0,"gst_jpegenc_resync: wdith %d, height %d", width, height);
+ GST_DEBUG ("gst_jpegenc_resync: wdith %d, height %d", width, height);
jpeg_set_defaults(&jpegenc->cinfo);
jpegenc->cinfo.dct_method = JDCT_FASTEST;
switch (jpegenc->format) {
case GST_COLORSPACE_RGB24:
size = 3;
- GST_DEBUG (0,"gst_jpegenc_resync: setting format to RGB24");
+ GST_DEBUG ("gst_jpegenc_resync: setting format to RGB24");
jpegenc->cinfo.in_color_space = JCS_RGB;
jpegenc->cinfo.raw_data_in = FALSE;
break;
size = 2;
jpegenc->cinfo.raw_data_in = TRUE;
jpegenc->cinfo.in_color_space = JCS_YCbCr;
- GST_DEBUG (0,"gst_jpegenc_resync: setting format to YUV420P");
+ GST_DEBUG ("gst_jpegenc_resync: setting format to YUV420P");
jpegenc->cinfo.comp_info[0].h_samp_factor = 2;
jpegenc->cinfo.comp_info[0].v_samp_factor = 2;
jpegenc->cinfo.comp_info[1].h_samp_factor = 1;
jpegenc->line[2] = g_realloc(jpegenc->line[2], height*sizeof(char*)/2);
}
- GST_DEBUG (0,"gst_jpegenc_resync: setting format done");
+ GST_DEBUG ("gst_jpegenc_resync: setting format done");
break;
default:
printf("gst_jpegenc_resync: unsupported colorspace, using RGB\n");
jpeg_suppress_tables(&jpegenc->cinfo, TRUE);
jpegenc->buffer = NULL;
- GST_DEBUG (0,"gst_jpegenc_resync: resync done");
+ GST_DEBUG ("gst_jpegenc_resync: resync done");
}
static GstBuffer*
GstJpegEnc *jpegenc;
GstBuffer *newbuf;
- GST_DEBUG (0,"gst_jpegenc_chain: pull buffer");
+ GST_DEBUG ("gst_jpegenc_chain: pull buffer");
g_return_val_if_fail (pad != NULL, NULL);
g_return_val_if_fail (GST_IS_PAD (pad), NULL);
if (jpegenc->buffer == NULL || GST_BUFFER_REFCOUNT_VALUE(jpegenc->buffer) != 1) {
if (jpegenc->buffer) gst_buffer_unref(jpegenc->buffer);
- GST_DEBUG (0,"gst_jpegenc_chain: new buffer");
+ GST_DEBUG ("gst_jpegenc_chain: new buffer");
newbuf = jpegenc->buffer = gst_buffer_new();
GST_BUFFER_DATA(newbuf) = g_malloc(jpegenc->bufsize);
GST_BUFFER_SIZE(newbuf) = jpegenc->bufsize;
data = GST_BUFFER_DATA(buf);
size = GST_BUFFER_SIZE(buf);
- GST_DEBUG (0,"gst_jpegenc_chain: got buffer of %ld bytes in '%s'",size,
+ GST_DEBUG ("gst_jpegenc_chain: got buffer of %ld bytes in '%s'",size,
GST_OBJECT_NAME (jpegenc));
outbuf = gst_buffer_new();
jpeg_start_compress(&jpegenc->cinfo, TRUE);
width2 = width>>1;
- GST_DEBUG (0,"gst_jpegdec_chain: compressing");
+ GST_DEBUG ("gst_jpegdec_chain: compressing");
for (i = 0; i < height; i += 2*DCTSIZE) {
for (j=0, k=0; j<2*DCTSIZE;j+=2, k++) {
jpeg_write_raw_data(&jpegenc->cinfo, jpegenc->line, 2*DCTSIZE);
}
jpeg_finish_compress(&jpegenc->cinfo);
- GST_DEBUG (0,"gst_jpegdec_chain: compressing done");
+ GST_DEBUG ("gst_jpegdec_chain: compressing done");
GST_BUFFER_SIZE(outbuf) = (((outsize - jpegenc->jdest.free_in_buffer)+3)&~3);
for (i=0;i<desc->PortCount;i++) {
if (LADSPA_IS_PORT_AUDIO(desc->PortDescriptors[i]) &&
LADSPA_IS_PORT_INPUT(desc->PortDescriptors[i])){
- GST_DEBUG (0, "input port %d", i);
+ GST_DEBUG ("input port %d", i);
klass->sinkpad_portnums[sinkcount++] = i;
}
if (LADSPA_IS_PORT_AUDIO(desc->PortDescriptors[i]) &&
LADSPA_IS_PORT_OUTPUT(desc->PortDescriptors[i])){
- GST_DEBUG (0, "output port %d", i);
+ GST_DEBUG ("output port %d", i);
klass->srcpad_portnums[srccount++] = i;
}
if (LADSPA_IS_PORT_CONTROL(desc->PortDescriptors[i]) &&
LADSPA_IS_PORT_INPUT(desc->PortDescriptors[i])){
- GST_DEBUG (0, "control port %d", i);
+ GST_DEBUG ("control port %d", i);
klass->control_portnums[controlcount++] = i;
}
}
klass->control_info[i].param_name = argname;
- GST_DEBUG (0, "adding arg %s from %s",argname, klass->control_info[i].name);
+ GST_DEBUG ("adding arg %s from %s",argname, klass->control_info[i].name);
if (argtype==G_TYPE_BOOLEAN){
paramspec = g_param_spec_boolean(argname,argname,argname, FALSE, argperms);
if (sinkcount==0 && srccount == 1) {
/* get mode (no sink pads) */
- GST_DEBUG (0, "mono get mode with 1 src pad");
+ GST_DEBUG ("mono get mode with 1 src pad");
ladspa->newcaps = TRUE;
gst_pad_set_get_function (ladspa->srcpads[0], gst_ladspa_get);
} else if (sinkcount==1){
/* with one sink we can use the chain function */
- GST_DEBUG (0, "chain mode");
+ GST_DEBUG ("chain mode");
gst_pad_set_link_function (ladspa->sinkpads[0], gst_ladspa_connect);
gst_pad_set_chain_function (ladspa->sinkpads[0], gst_ladspa_chain);
gst_pad_set_bufferpool_function (ladspa->sinkpads[0], gst_ladspa_get_bufferpool);
} else if (sinkcount > 1){
/* more than one sink pad needs loop mode */
- GST_DEBUG (0, "loop mode with %d sink pads and %d src pads", sinkcount, srccount);
+ GST_DEBUG ("loop mode with %d sink pads and %d src pads", sinkcount, srccount);
for (i=0;i<sinkcount;i++) {
gst_pad_set_link_function (ladspa->sinkpads[i], gst_ladspa_connect);
else if (sinkcount==0 && srccount == 0){
/* for some reason these plugins exist - we'll just ignore them */
} else {
- GST_DEBUG (0, "%d sink pads, %d src pads not yet supported", sinkcount, srccount);
+ GST_DEBUG ("%d sink pads, %d src pads not yet supported", sinkcount, srccount);
}
gst_ladspa_instantiate (ladspa);
static void
gst_ladspa_force_src_caps(GstLADSPA *ladspa, GstPad *pad)
{
- GST_DEBUG (0, "forcing caps with rate %d", ladspa->samplerate);
+ GST_DEBUG ("forcing caps with rate %d", ladspa->samplerate);
gst_pad_try_set_caps (pad, gst_caps_new (
"ladspa_src_caps",
"audio/raw",
ladspa->controls[cid] = val;
}
- GST_DEBUG (0, "set arg %s to %f", control_info->name, ladspa->controls[cid]);
+ GST_DEBUG ("set arg %s to %f", control_info->name, ladspa->controls[cid]);
}
static void
control_info = &(oclass->control_info[cid]);
if (control_info->name == NULL) return;
- GST_DEBUG (0, "got arg %s as %f", control_info->name, ladspa->controls[cid]);
+ GST_DEBUG ("got arg %s as %f", control_info->name, ladspa->controls[cid]);
/* now see what type it is */
if (control_info->toggled) {
}
/* instantiate the plugin */
- GST_DEBUG (0, "instantiating the plugin");
+ GST_DEBUG ("instantiating the plugin");
ladspa->handle = desc->instantiate(desc,ladspa->samplerate);
g_return_val_if_fail (ladspa->handle != NULL, FALSE);
/* walk through the ports and add all the arguments */
for (i=0;i<oclass->numcontrols;i++) {
/* connect the argument to the plugin */
- GST_DEBUG (0, "added control port %d", oclass->control_portnums[i]);
+ GST_DEBUG ("added control port %d", oclass->control_portnums[i]);
desc->connect_port(ladspa->handle,
oclass->control_portnums[i],
&(ladspa->controls[i]));
GstLADSPA *ladspa = (GstLADSPA*)element;
desc = ladspa->descriptor;
- GST_DEBUG (0, "changing state");
+ GST_DEBUG ("changing state");
switch (GST_STATE_TRANSITION (element)) {
case GST_STATE_NULL_TO_READY:
gst_ladspa_activate(ladspa);
gst_ladspa_deactivate(ladspa);
}
- GST_DEBUG (0, "activating");
+ GST_DEBUG ("activating");
/* activate the plugin (function might be null) */
if (desc->activate != NULL) {
LADSPA_Descriptor *desc;
desc = ladspa->descriptor;
- GST_DEBUG (0, "deactivating");
+ GST_DEBUG ("deactivating");
/* deactivate the plugin (function might be null) */
if (ladspa->activated && (desc->deactivate != NULL)) {
/* find a bufferpool */
if (numsrcpads > 0 && (bufpool = gst_pad_get_bufferpool (ladspa->srcpads[0]))) {
- GST_DEBUG (0, "Got bufferpool from first source pad");
+ GST_DEBUG ("Got bufferpool from first source pad");
} else {
bufferbytesize = sizeof (LADSPA_Data) * ladspa->buffersize;
bufpool = gst_buffer_pool_get_default (bufferbytesize, ladspa->numbuffers);
- GST_DEBUG (0, "Created default bufferpool, %d x %d bytes", ladspa->numbuffers, bufferbytesize);
+ GST_DEBUG ("Created default bufferpool, %d x %d bytes", ladspa->numbuffers, bufferbytesize);
}
/* get the bytestreams for each pad */
num_empty_pads = 0;
/* first get all the necessary data from the input ports */
for (i=0 ; i<numsinkpads ; i++){
- GST_DEBUG (0, "pulling %u bytes through channel %d's bytestream", bufferbytesize, i);
+ GST_DEBUG ("pulling %u bytes through channel %d's bytestream", bufferbytesize, i);
got_bytes = gst_bytestream_read (bytestreams[i], buffers_in + i, bufferbytesize);
if (got_bytes != bufferbytesize) {
/* if we get an EOS event from one of our sink pads, we assume that
pad's finished handling data. delete the bytestream, free up the
pad, and free up the memory associated with the input channel. */
- GST_DEBUG (0, "got an EOS event on sinkpad %d", i);
+ GST_DEBUG ("got an EOS event on sinkpad %d", i);
}
/* CHECKME should maybe check for other events and try to pull more data here */
num_empty_pads++;
else {
/* all pads have EOS, time to quit */
/* CHECKME do I have to push EOS events here? */
- GST_DEBUG (0, "All sink pads have EOS, finishing.");
+ GST_DEBUG ("All sink pads have EOS, finishing.");
break;
}
}
}
for (i=0 ; i<numsrcpads ; i++) {
- GST_DEBUG (0, "pushing buffer (%p) on src pad %d", buffers_out[i], i);
+ GST_DEBUG ("pushing buffer (%p) on src pad %d", buffers_out[i], i);
gst_pad_push (ladspa->srcpads[i], buffers_out[i]);
data_out[i] = NULL;
*
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <string.h>
#include <gst/gst.h>
#include "gstpngenc.h"
/* non-0 return is from a longjmp inside of libpng */
if (setjmp (pngenc->png_struct_ptr->jmpbuf) != 0)
{
- GST_DEBUG (GST_CAT_PLUGIN_INFO, "returning from longjmp");
+ GST_DEBUG ("returning from longjmp");
png_destroy_write_struct (&pngenc->png_struct_ptr, &pngenc->png_info_ptr);
return;
}
* Boston, MA 02111-1307, USA.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include "gstmikmod.h"
#include <gst/audio/audio.h>
mikmod = GST_MIKMOD (element);
- GST_DEBUG (0,"state pending %d", GST_STATE_PENDING (element));
+ GST_DEBUG ("state pending %d", GST_STATE_PENDING (element));
if (GST_STATE_PENDING (element) == GST_STATE_READY)
{
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <gst/gst.h>
if( p[3] & 0x80 ) {
// PAL
dv1394src->frameSize = PAL_FRAMESIZE;
- GST_DEBUG(0,"PAL data");
+ GST_DEBUG ("PAL data");
if (gst_pad_try_set_caps (dv1394src->srcpad,
GST_CAPS_NEW ( "dv1394src", "video/dv",
"format", GST_PROPS_STRING("PAL"),
NULL)
) <= 0) {
- GST_ERROR(GST_ELEMENT(dv1394src), "Could not set source caps for PAL");
+ gst_element_error (GST_ELEMENT(dv1394src), "Could not set source caps for PAL");
return 0;
}
} else {
// NTSC (untested)
dv1394src->frameSize = NTSC_FRAMESIZE;
- GST_DEBUG(0,"NTSC data [untested] - please report success/failure to <dan@f3c.com>");
+ GST_DEBUG ("NTSC data [untested] - please report success/failure to <dan@f3c.com>");
if (gst_pad_try_set_caps (dv1394src->srcpad,
GST_CAPS_NEW ( "dv1394src", "video/dv",
"format", GST_PROPS_STRING ("NTSC"),
NULL)
) <= 0) {
- GST_ERROR(GST_ELEMENT(dv1394src), "Could not set source caps for NTSC");
+ gst_element_error (GST_ELEMENT(dv1394src), "Could not set source caps for NTSC");
return 0;
}
}
dv1394src->pool = gst_buffer_pool_get_default( dv1394src->frameSize, N_BUFFERS_IN_POOL );
if (dv1394src->pool == NULL) {
- GST_ERROR(GST_ELEMENT(dv1394src), "gst_buffer_pool_get_default returned NULL");
+ gst_element_error (GST_ELEMENT(dv1394src), "gst_buffer_pool_get_default returned NULL");
}
}
if( !dv1394src->drop_incomplete || dv1394src->bytesInFrame == dv1394src->frameSize ) {
dv1394src->buf = dv1394src->frame;
} else {
- GST_INFO_ELEMENT(GST_CAT_PLUGIN_INFO, GST_ELEMENT(dv1394src), "incomplete frame dropped");
+ GST_INFO_OBJECT (GST_ELEMENT(dv1394src), "incomplete frame dropped");
}
dv1394src->frame = NULL;
static
int gst_dv1394src_bus_reset(raw1394handle_t handle,
unsigned int generation) {
- GST_INFO_ELEMENT(0,GST_DV1394SRC(raw1394_get_userdata(handle)),"have bus reset");
+ GST_INFO_OBJECT (GST_DV1394SRC(raw1394_get_userdata(handle)),"have bus reset");
return 0;
}
switch (GST_STATE_TRANSITION (element)) {
case GST_STATE_NULL_TO_READY:
if ((dv1394src->handle = raw1394_new_handle()) == NULL) {
- GST_INFO_ELEMENT(0,dv1394src,"can't get raw1394 handle");
+ GST_INFO_OBJECT (dv1394src,"can't get raw1394 handle");
return GST_STATE_FAILURE;
}
raw1394_set_userdata(dv1394src->handle,dv1394src);
dv1394src->numcards = raw1394_get_port_info(dv1394src->handle,dv1394src->pinfo,16);
if (dv1394src->numcards == 0) {
- GST_INFO_ELEMENT(0,dv1394src,"no cards available for raw1394");
+ GST_INFO_OBJECT (dv1394src,"no cards available for raw1394");
return GST_STATE_FAILURE;
}
if (dv1394src->pinfo[dv1394src->card].nodes <= 1) {
- GST_INFO_ELEMENT(0,dv1394src,"there are no nodes on the 1394 bus");
+ GST_INFO_OBJECT (dv1394src,"there are no nodes on the 1394 bus");
return GST_STATE_FAILURE;
}
if (raw1394_set_port(dv1394src->handle,dv1394src->port) < 0) {
- GST_INFO_ELEMENT(0,dv1394src,"can't set 1394 port %d",dv1394src->port);
+ GST_INFO_OBJECT (dv1394src,"can't set 1394 port %d",dv1394src->port);
return GST_STATE_FAILURE;
}
raw1394_set_iso_handler(dv1394src->handle,dv1394src->channel,gst_dv1394src_iso_receive);
raw1394_set_bus_reset_handler(dv1394src->handle,gst_dv1394src_bus_reset);
dv1394src->started = FALSE;
- GST_DEBUG(0,"successfully opened up 1394 connection");
+ GST_DEBUG ("successfully opened up 1394 connection");
break;
case GST_STATE_PAUSED_TO_PLAYING:
if (raw1394_start_iso_rcv(dv1394src->handle,dv1394src->channel) < 0) {
- GST_INFO_ELEMENT(0,dv1394src,"can't start 1394 iso receive");
+ GST_INFO_OBJECT (dv1394src,"can't start 1394 iso receive");
return GST_STATE_FAILURE;
}
break;
* Boston, MA 02111-1307, USA.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include "gstshout2.h"
#include <stdlib.h>
#include <string.h>
shout2send = GST_SHOUT2SEND(element);
- GST_DEBUG (0,"state pending %d", GST_STATE_PENDING (element));
+ GST_DEBUG ("state pending %d", GST_STATE_PENDING (element));
/* if going down into NULL state, close the file if it's open */
switch (GST_STATE_TRANSITION (element)) {
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <string.h>
#include "gstspeexdec.h"
static void
gst_speexdec_init (GstSpeexDec *speexdec)
{
- GST_DEBUG (0,"gst_speexdec_init: initializing");
+ GST_DEBUG ("gst_speexdec_init: initializing");
/* create the sink and src pads */
speexdec->sinkpad = gst_pad_new_from_template (speexdec_sink_template, "sink");
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <string.h>
#include "gstspeexenc.h"
* - this might be improved upon with bytestream
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <gst/gst.h>
#include "gstfilter.h"
#include <math.h> /* M_PI */
{
len = filter->wing_size;
/* fill the lp kernel */
- GST_DEBUG (GST_CAT_PLUGIN_INFO,
+ GST_DEBUG (
"bpwsinc: initializing LP kernel of length %d with cut-off %f",
len * 2 + 1, filter->lower_frequency);
kernel_lp = (double *) g_malloc (sizeof (double) * (2 * len + 1));
for (i = 0; i <= len * 2; ++i) kernel_lp[i] /= sum;
/* fill the hp kernel */
- GST_DEBUG (GST_CAT_PLUGIN_INFO,
+ GST_DEBUG (
"bpwsinc: initializing HP kernel of length %d with cut-off %f",
len * 2 + 1, filter->upper_frequency);
kernel_hp = (double *) g_malloc (sizeof (double) * (2 * len + 1));
* - this might be improved upon with bytestream
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <gst/gst.h>
#include "gstfilter.h"
#include <math.h> /* M_PI */
/* fill the kernel */
g_print ("DEBUG: initing filter kernel\n");
len = filter->wing_size;
- GST_DEBUG (GST_CAT_PLUGIN_INFO,
+ GST_DEBUG (
"lpwsinc: initializing filter kernel of length %d", len * 2 + 1);
filter->kernel = (double *) g_malloc (sizeof (double) * (2 * len + 1));
* Zaheer Merali <zaheer@grid9.net
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <stdlib.h>
#include <string.h>
auparse = GST_AUPARSE (gst_pad_get_parent (pad));
- GST_DEBUG (0, "gst_auparse_chain: got buffer in '%s'",
+ GST_DEBUG ("gst_auparse_chain: got buffer in '%s'",
gst_element_get_name (GST_ELEMENT (auparse)));
data = GST_BUFFER_DATA (buf);
g_print ("offset %ld, size %ld, encoding %ld, frequency %ld, channels %ld\n",
auparse->offset,auparse->size,auparse->encoding,
auparse->frequency,auparse->channels);
- GST_DEBUG (0, "offset %ld, size %ld, encoding %ld, frequency %ld, channels %ld",
+ GST_DEBUG ("offset %ld, size %ld, encoding %ld, frequency %ld, channels %ld",
auparse->offset,auparse->size,auparse->encoding,
auparse->frequency,auparse->channels);
/* #define GST_DEBUG_ENABLED */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <string.h>
#include "gstavidemux.h"
gchar *data = GST_BUFFER_DATA (buf);
GstCaps *new;
- GST_DEBUG (0,"avi_demux: typefind");
+ GST_DEBUG ("avi_demux: typefind");
if (GUINT32_FROM_LE (((guint32 *)data)[0]) != GST_RIFF_TAG_RIFF)
return NULL;
avi_demux->avih.start = GUINT32_FROM_LE (avih->start);
avi_demux->avih.length = GUINT32_FROM_LE (avih->length);
- GST_INFO (GST_CAT_PLUGIN_INFO, "gst_avi_demux: avih tag found");
- GST_INFO (GST_CAT_PLUGIN_INFO, "gst_avi_demux: us_frame %d", avi_demux->avih.us_frame);
- GST_INFO (GST_CAT_PLUGIN_INFO, "gst_avi_demux: max_bps %d", avi_demux->avih.max_bps);
- GST_INFO (GST_CAT_PLUGIN_INFO, "gst_avi_demux: pad_gran %d", avi_demux->avih.pad_gran);
- GST_INFO (GST_CAT_PLUGIN_INFO, "gst_avi_demux: flags 0x%08x", avi_demux->avih.flags);
- GST_INFO (GST_CAT_PLUGIN_INFO, "gst_avi_demux: tot_frames %d", avi_demux->avih.tot_frames);
- GST_INFO (GST_CAT_PLUGIN_INFO, "gst_avi_demux: init_frames %d", avi_demux->avih.init_frames);
- GST_INFO (GST_CAT_PLUGIN_INFO, "gst_avi_demux: streams %d", avi_demux->avih.streams);
- GST_INFO (GST_CAT_PLUGIN_INFO, "gst_avi_demux: bufsize %d", avi_demux->avih.bufsize);
- GST_INFO (GST_CAT_PLUGIN_INFO, "gst_avi_demux: width %d", avi_demux->avih.width);
- GST_INFO (GST_CAT_PLUGIN_INFO, "gst_avi_demux: height %d", avi_demux->avih.height);
- GST_INFO (GST_CAT_PLUGIN_INFO, "gst_avi_demux: scale %d", avi_demux->avih.scale);
- GST_INFO (GST_CAT_PLUGIN_INFO, "gst_avi_demux: rate %d", avi_demux->avih.rate);
- GST_INFO (GST_CAT_PLUGIN_INFO, "gst_avi_demux: start %d", avi_demux->avih.start);
- GST_INFO (GST_CAT_PLUGIN_INFO, "gst_avi_demux: length %d", avi_demux->avih.length);
+ GST_INFO ( "gst_avi_demux: avih tag found");
+ GST_INFO ( "gst_avi_demux: us_frame %d", avi_demux->avih.us_frame);
+ GST_INFO ( "gst_avi_demux: max_bps %d", avi_demux->avih.max_bps);
+ GST_INFO ( "gst_avi_demux: pad_gran %d", avi_demux->avih.pad_gran);
+ GST_INFO ( "gst_avi_demux: flags 0x%08x", avi_demux->avih.flags);
+ GST_INFO ( "gst_avi_demux: tot_frames %d", avi_demux->avih.tot_frames);
+ GST_INFO ( "gst_avi_demux: init_frames %d", avi_demux->avih.init_frames);
+ GST_INFO ( "gst_avi_demux: streams %d", avi_demux->avih.streams);
+ GST_INFO ( "gst_avi_demux: bufsize %d", avi_demux->avih.bufsize);
+ GST_INFO ( "gst_avi_demux: width %d", avi_demux->avih.width);
+ GST_INFO ( "gst_avi_demux: height %d", avi_demux->avih.height);
+ GST_INFO ( "gst_avi_demux: scale %d", avi_demux->avih.scale);
+ GST_INFO ( "gst_avi_demux: rate %d", avi_demux->avih.rate);
+ GST_INFO ( "gst_avi_demux: start %d", avi_demux->avih.start);
+ GST_INFO ( "gst_avi_demux: length %d", avi_demux->avih.length);
return TRUE;
}
if (!target->strh.rate)
target->strh.rate = 1; /* avoid division by zero */
- GST_INFO (GST_CAT_PLUGIN_INFO, "gst_avi_demux: strh tag found");
- GST_INFO (GST_CAT_PLUGIN_INFO, "gst_avi_demux: type 0x%08x (%s)",
+ GST_INFO ( "gst_avi_demux: strh tag found");
+ GST_INFO ( "gst_avi_demux: type 0x%08x (%s)",
target->strh.type, gst_riff_id_to_fourcc (strh->type));
- GST_INFO (GST_CAT_PLUGIN_INFO, "gst_avi_demux: fcc_handler 0x%08x (%s)",
+ GST_INFO ( "gst_avi_demux: fcc_handler 0x%08x (%s)",
target->strh.fcc_handler, gst_riff_id_to_fourcc (strh->fcc_handler));
- GST_INFO (GST_CAT_PLUGIN_INFO, "gst_avi_demux: flags 0x%08x", strh->flags);
- GST_INFO (GST_CAT_PLUGIN_INFO, "gst_avi_demux: priority %d", target->strh.priority);
- GST_INFO (GST_CAT_PLUGIN_INFO, "gst_avi_demux: init_frames %d", target->strh.init_frames);
- GST_INFO (GST_CAT_PLUGIN_INFO, "gst_avi_demux: scale %d", target->strh.scale);
- GST_INFO (GST_CAT_PLUGIN_INFO, "gst_avi_demux: rate %d", target->strh.rate);
- GST_INFO (GST_CAT_PLUGIN_INFO, "gst_avi_demux: start %d", target->strh.start);
- GST_INFO (GST_CAT_PLUGIN_INFO, "gst_avi_demux: length %d", target->strh.length);
- GST_INFO (GST_CAT_PLUGIN_INFO, "gst_avi_demux: bufsize %d", target->strh.bufsize);
- GST_INFO (GST_CAT_PLUGIN_INFO, "gst_avi_demux: quality %d", target->strh.quality);
- GST_INFO (GST_CAT_PLUGIN_INFO, "gst_avi_demux: samplesize %d", target->strh.samplesize);
+ GST_INFO ( "gst_avi_demux: flags 0x%08x", strh->flags);
+ GST_INFO ( "gst_avi_demux: priority %d", target->strh.priority);
+ GST_INFO ( "gst_avi_demux: init_frames %d", target->strh.init_frames);
+ GST_INFO ( "gst_avi_demux: scale %d", target->strh.scale);
+ GST_INFO ( "gst_avi_demux: rate %d", target->strh.rate);
+ GST_INFO ( "gst_avi_demux: start %d", target->strh.start);
+ GST_INFO ( "gst_avi_demux: length %d", target->strh.length);
+ GST_INFO ( "gst_avi_demux: bufsize %d", target->strh.bufsize);
+ GST_INFO ( "gst_avi_demux: quality %d", target->strh.quality);
+ GST_INFO ( "gst_avi_demux: samplesize %d", target->strh.samplesize);
target->delay = 0LL;
target->total_bytes = 0LL;
if (got_bytes != len)
return;
- GST_DEBUG (0, "Stream name: \"%s\"", name);
+ GST_DEBUG ("Stream name: \"%s\"", name);
}
static void
if (got_bytes != sizeof (gst_riff_strf_vids))
return;
- GST_INFO (GST_CAT_PLUGIN_INFO, "gst_avi_demux: strf tag found in context vids");
- GST_INFO (GST_CAT_PLUGIN_INFO, "gst_avi_demux: size %d", GUINT32_FROM_LE (strf->size));
- GST_INFO (GST_CAT_PLUGIN_INFO, "gst_avi_demux: width %d", GUINT32_FROM_LE (strf->width));
- GST_INFO (GST_CAT_PLUGIN_INFO, "gst_avi_demux: height %d", GUINT32_FROM_LE (strf->height));
- GST_INFO (GST_CAT_PLUGIN_INFO, "gst_avi_demux: planes %d", GUINT16_FROM_LE (strf->planes));
- GST_INFO (GST_CAT_PLUGIN_INFO, "gst_avi_demux: bit_cnt %d", GUINT16_FROM_LE (strf->bit_cnt));
- GST_INFO (GST_CAT_PLUGIN_INFO, "gst_avi_demux: compression 0x%08x (%s)",
+ GST_INFO ( "gst_avi_demux: strf tag found in context vids");
+ GST_INFO ( "gst_avi_demux: size %d", GUINT32_FROM_LE (strf->size));
+ GST_INFO ( "gst_avi_demux: width %d", GUINT32_FROM_LE (strf->width));
+ GST_INFO ( "gst_avi_demux: height %d", GUINT32_FROM_LE (strf->height));
+ GST_INFO ( "gst_avi_demux: planes %d", GUINT16_FROM_LE (strf->planes));
+ GST_INFO ( "gst_avi_demux: bit_cnt %d", GUINT16_FROM_LE (strf->bit_cnt));
+ GST_INFO ( "gst_avi_demux: compression 0x%08x (%s)",
GUINT32_FROM_LE (strf->compression), gst_riff_id_to_fourcc (strf->compression));
- GST_INFO (GST_CAT_PLUGIN_INFO, "gst_avi_demux: image_size %d", GUINT32_FROM_LE (strf->image_size));
- GST_INFO (GST_CAT_PLUGIN_INFO, "gst_avi_demux: xpels_meter %d", GUINT32_FROM_LE (strf->xpels_meter));
- GST_INFO (GST_CAT_PLUGIN_INFO, "gst_avi_demux: ypels_meter %d", GUINT32_FROM_LE (strf->ypels_meter));
- GST_INFO (GST_CAT_PLUGIN_INFO, "gst_avi_demux: num_colors %d", GUINT32_FROM_LE (strf->num_colors));
- GST_INFO (GST_CAT_PLUGIN_INFO, "gst_avi_demux: imp_colors %d", GUINT32_FROM_LE (strf->imp_colors));
+ GST_INFO ( "gst_avi_demux: image_size %d", GUINT32_FROM_LE (strf->image_size));
+ GST_INFO ( "gst_avi_demux: xpels_meter %d", GUINT32_FROM_LE (strf->xpels_meter));
+ GST_INFO ( "gst_avi_demux: ypels_meter %d", GUINT32_FROM_LE (strf->ypels_meter));
+ GST_INFO ( "gst_avi_demux: num_colors %d", GUINT32_FROM_LE (strf->num_colors));
+ GST_INFO ( "gst_avi_demux: imp_colors %d", GUINT32_FROM_LE (strf->imp_colors));
srcpad = gst_pad_new_from_template (
GST_PAD_TEMPLATE_GET (src_video_templ), g_strdup_printf ("video_%02d",
if (got_bytes != sizeof (gst_riff_strf_auds))
return;
- GST_INFO (GST_CAT_PLUGIN_INFO, "gst_avi_demux: strf tag found in context auds");
- GST_INFO (GST_CAT_PLUGIN_INFO, "gst_avi_demux: format %d", GUINT16_FROM_LE (strf->format));
- GST_INFO (GST_CAT_PLUGIN_INFO, "gst_avi_demux: channels %d", GUINT16_FROM_LE (strf->channels));
- GST_INFO (GST_CAT_PLUGIN_INFO, "gst_avi_demux: rate %d", GUINT32_FROM_LE (strf->rate));
- GST_INFO (GST_CAT_PLUGIN_INFO, "gst_avi_demux: av_bps %d", GUINT32_FROM_LE (strf->av_bps));
- GST_INFO (GST_CAT_PLUGIN_INFO, "gst_avi_demux: blockalign %d", GUINT16_FROM_LE (strf->blockalign));
- GST_INFO (GST_CAT_PLUGIN_INFO, "gst_avi_demux: size %d", GUINT16_FROM_LE (strf->size));
+ GST_INFO ( "gst_avi_demux: strf tag found in context auds");
+ GST_INFO ( "gst_avi_demux: format %d", GUINT16_FROM_LE (strf->format));
+ GST_INFO ( "gst_avi_demux: channels %d", GUINT16_FROM_LE (strf->channels));
+ GST_INFO ( "gst_avi_demux: rate %d", GUINT32_FROM_LE (strf->rate));
+ GST_INFO ( "gst_avi_demux: av_bps %d", GUINT32_FROM_LE (strf->av_bps));
+ GST_INFO ( "gst_avi_demux: blockalign %d", GUINT16_FROM_LE (strf->blockalign));
+ GST_INFO ( "gst_avi_demux: size %d", GUINT16_FROM_LE (strf->size));
srcpad = gst_pad_new_from_template (
GST_PAD_TEMPLATE_GET (src_audio_templ), g_strdup_printf ("audio_%02d",
if (got_bytes != sizeof (gst_riff_strf_iavs))
return;
- GST_INFO (GST_CAT_PLUGIN_INFO, "gst_avi_demux: strf tag found in context iavs");
- GST_INFO (GST_CAT_PLUGIN_INFO, "gst_avi_demux: DVAAuxSrc %08x", GUINT32_FROM_LE (strf->DVAAuxSrc));
- GST_INFO (GST_CAT_PLUGIN_INFO, "gst_avi_demux: DVAAuxCtl %08x", GUINT32_FROM_LE (strf->DVAAuxCtl));
- GST_INFO (GST_CAT_PLUGIN_INFO, "gst_avi_demux: DVAAuxSrc1 %08x", GUINT32_FROM_LE (strf->DVAAuxSrc1));
- GST_INFO (GST_CAT_PLUGIN_INFO, "gst_avi_demux: DVAAuxCtl1 %08x", GUINT32_FROM_LE (strf->DVAAuxCtl1));
- GST_INFO (GST_CAT_PLUGIN_INFO, "gst_avi_demux: DVVAuxSrc %08x", GUINT32_FROM_LE (strf->DVVAuxSrc));
- GST_INFO (GST_CAT_PLUGIN_INFO, "gst_avi_demux: DVVAuxCtl %08x", GUINT32_FROM_LE (strf->DVVAuxCtl));
- GST_INFO (GST_CAT_PLUGIN_INFO, "gst_avi_demux: DVReserved1 %08x", GUINT32_FROM_LE (strf->DVReserved1));
- GST_INFO (GST_CAT_PLUGIN_INFO, "gst_avi_demux: DVReserved2 %08x", GUINT32_FROM_LE (strf->DVReserved2));
+ GST_INFO ( "gst_avi_demux: strf tag found in context iavs");
+ GST_INFO ( "gst_avi_demux: DVAAuxSrc %08x", GUINT32_FROM_LE (strf->DVAAuxSrc));
+ GST_INFO ( "gst_avi_demux: DVAAuxCtl %08x", GUINT32_FROM_LE (strf->DVAAuxCtl));
+ GST_INFO ( "gst_avi_demux: DVAAuxSrc1 %08x", GUINT32_FROM_LE (strf->DVAAuxSrc1));
+ GST_INFO ( "gst_avi_demux: DVAAuxCtl1 %08x", GUINT32_FROM_LE (strf->DVAAuxCtl1));
+ GST_INFO ( "gst_avi_demux: DVVAuxSrc %08x", GUINT32_FROM_LE (strf->DVVAuxSrc));
+ GST_INFO ( "gst_avi_demux: DVVAuxCtl %08x", GUINT32_FROM_LE (strf->DVVAuxCtl));
+ GST_INFO ( "gst_avi_demux: DVReserved1 %08x", GUINT32_FROM_LE (strf->DVReserved1));
+ GST_INFO ( "gst_avi_demux: DVReserved2 %08x", GUINT32_FROM_LE (strf->DVReserved2));
srcpad = gst_pad_new_from_template (
GST_PAD_TEMPLATE_GET (src_video_templ), g_strdup_printf ("video_%02d",
static void
gst_avi_debug_entry (const gchar *prefix, gst_avi_index_entry *entry)
{
- GST_DEBUG (0, "%s: %05d %d %08llx %05d %14" G_GINT64_FORMAT " %08x %08x (%d) %08x",
+ GST_DEBUG ("%s: %05d %d %08llx %05d %14" G_GINT64_FORMAT " %08x %08x (%d) %08x",
prefix, entry->index_nr, entry->stream_nr,
(unsigned long long)entry->bytes_before,
entry->frames_before, entry->ts, entry->flags, entry->offset,
guint32 id;
if (!gst_bytestream_seek (avi_demux->bs, filepos + offset, GST_SEEK_METHOD_SET)) {
- GST_INFO (GST_CAT_PLUGIN_INFO, "avidemux: could not seek to index");
+ GST_INFO ( "avidemux: could not seek to index");
return;
}
do {
} while (TRUE);
if (GST_BUFFER_OFFSET (buf) != filepos + offset || GST_BUFFER_SIZE (buf) != 8) {
- GST_INFO (GST_CAT_PLUGIN_INFO, "avidemux: could not get index, got %" G_GINT64_FORMAT " %d, expected %ld",
+ GST_INFO ( "avidemux: could not get index, got %" G_GINT64_FORMAT " %d, expected %ld",
GST_BUFFER_OFFSET (buf), GST_BUFFER_SIZE (buf), filepos + offset);
goto end;
}
id = GUINT32_FROM_LE (*(guint32 *)GST_BUFFER_DATA (buf));
if (id != GST_RIFF_TAG_idx1) {
- GST_INFO (GST_CAT_PLUGIN_INFO, "avidemux: no index found");
+ GST_INFO ( "avidemux: no index found");
goto end;
}
got_bytes = gst_bytestream_read (avi_demux->bs, &buf, index_size);
if (got_bytes < index_size) {
- GST_INFO (GST_CAT_PLUGIN_INFO, "avidemux: error reading index");
+ GST_INFO ( "avidemux: error reading index");
goto end;
}
avi_demux->index_size = index_size/sizeof(gst_riff_index_entry);
- GST_INFO (GST_CAT_PLUGIN_INFO, "avidemux: index size %lu", avi_demux->index_size);
+ GST_INFO ( "avidemux: index size %lu", avi_demux->index_size);
avi_demux->index_entries = g_malloc (avi_demux->index_size * sizeof (gst_avi_index_entry));
avi_stream_context *stream;
stream = &avi_demux->stream[i];
- GST_DEBUG (GST_CAT_PLUGIN_INFO, "stream %i: %d frames, %" G_GINT64_FORMAT " bytes",
+ GST_DEBUG ("stream %i: %d frames, %" G_GINT64_FORMAT " bytes",
i, stream->total_frames, stream->total_bytes);
}
gst_buffer_unref (buf);
end:
- GST_DEBUG (GST_CAT_PLUGIN_INFO, "index offset at %08lx", filepos);
+ GST_DEBUG ("index offset at %08lx", filepos);
if (!gst_bytestream_seek (avi_demux->bs, filepos, GST_SEEK_METHOD_SET)) {
- GST_INFO (GST_CAT_PLUGIN_INFO, "avidemux: could not seek back to movi");
+ GST_INFO ( "avidemux: could not seek back to movi");
return;
}
}
for (i = 0; i < avi_demux->num_streams; i++) {
stream = &avi_demux->stream[i];
- GST_DEBUG (0, "finding %d for time %" G_GINT64_FORMAT, i, time);
+ GST_DEBUG ("finding %d for time %" G_GINT64_FORMAT, i, time);
entry = gst_avi_demux_index_entry_for_time (avi_demux, stream->num, time, GST_RIFF_IF_KEYFRAME);
if (entry) {
min_index = MIN (entry->index_nr, min_index);
}
}
- GST_DEBUG (0, "first index at %d", min_index);
+ GST_DEBUG ("first index at %d", min_index);
/* now we know the entry we need to sync on. calculate number of frames to
* skip fro there on and the stream stats */
stream->current_frame = next_entry->frames_before;
stream->skip = entry->frames_before - next_entry->frames_before;
- GST_DEBUG (0, "%d skip %d", stream->num, stream->skip);
+ GST_DEBUG ("%d skip %d", stream->num, stream->skip);
}
- GST_DEBUG (0, "final index at %d", min_index);
+ GST_DEBUG ("final index at %d", min_index);
return min_index;
}
case GST_EVENT_SEEK_SEGMENT:
stream->end_pos = GST_EVENT_SEEK_ENDOFFSET (event);
case GST_EVENT_SEEK:
- GST_DEBUG (0, "seek format %d, %08x", GST_EVENT_SEEK_FORMAT (event), stream->strh.type);
+ GST_DEBUG ("seek format %d, %08x", GST_EVENT_SEEK_FORMAT (event), stream->strh.type);
switch (GST_EVENT_SEEK_FORMAT (event)) {
case GST_FORMAT_BYTES:
case GST_FORMAT_DEFAULT:
res = FALSE;
goto done;
}
- GST_DEBUG (0, "seeking to %" G_GINT64_FORMAT, desired_offset);
+ GST_DEBUG ("seeking to %" G_GINT64_FORMAT, desired_offset);
flags = GST_RIFF_IF_KEYFRAME;
avi_demux->last_seek = seek_entry->ts;
}
else {
- GST_DEBUG (0, "no index entry found for time %" G_GINT64_FORMAT, desired_offset);
+ GST_DEBUG ("no index entry found for time %" G_GINT64_FORMAT, desired_offset);
res = FALSE;
}
break;
gst_bytestream_get_status (avi_demux->bs, &remaining, &event);
type = event? GST_EVENT_TYPE (event) : GST_EVENT_UNKNOWN;
- GST_DEBUG (0, "avidemux: event %p %d", event, type);
+ GST_DEBUG ("avidemux: event %p %d", event, type);
switch (type) {
case GST_EVENT_EOS:
avi_stream_context *stream = &avi_demux->stream[i];
if (GST_PAD_IS_USABLE (stream->pad)) {
- GST_DEBUG (GST_CAT_EVENT, "sending discont on %d %" G_GINT64_FORMAT " + %" G_GINT64_FORMAT " = %" G_GINT64_FORMAT,
+ GST_DEBUG ("sending discont on %d %" G_GINT64_FORMAT " + %" G_GINT64_FORMAT " = %" G_GINT64_FORMAT,
i, avi_demux->last_seek, stream->delay, avi_demux->last_seek + stream->delay);
discont = gst_event_new_discontinuous (FALSE, GST_FORMAT_TIME,
bs = avi_demux->bs;
if (avi_demux->seek_pending) {
- GST_DEBUG (0, "avidemux: seek pending to %" G_GINT64_FORMAT " %08llx",
+ GST_DEBUG ("avidemux: seek pending to %" G_GINT64_FORMAT " %08llx",
avi_demux->seek_offset, (unsigned long long)avi_demux->seek_offset);
if (!gst_bytestream_seek (avi_demux->bs,
avi_demux->seek_offset,
GST_SEEK_METHOD_SET))
{
- GST_INFO (GST_CAT_PLUGIN_INFO, "avidemux: could not seek");
+ GST_INFO ( "avidemux: could not seek");
}
avi_demux->seek_pending = FALSE;
}
flush = 0;
break;
case GST_AVI_DEMUX_HEADER:
- GST_DEBUG (0, "riff tag: %4.4s %08x", (gchar *)&chunk.id, chunk.size);
+ GST_DEBUG ("riff tag: %4.4s %08x", (gchar *)&chunk.id, chunk.size);
switch (chunk.id) {
case GST_RIFF_TAG_LIST:
- GST_DEBUG (0, "list type: %4.4s", (gchar *)&chunk.type);
+ GST_DEBUG ("list type: %4.4s", (gchar *)&chunk.type);
switch (chunk.type) {
case GST_RIFF_LIST_movi:
{
case GST_RIFF_FCC_pads:
case GST_RIFF_FCC_txts:
default:
- GST_INFO (GST_CAT_PLUGIN_INFO, "gst_avi_demux_chain: strh type %s not supported",
+ GST_INFO ( "gst_avi_demux_chain: strh type %s not supported",
gst_riff_id_to_fourcc (avi_demux->fcc_type));
break;
}
case GST_RIFF_ISFT:
break;
default:
- GST_DEBUG (0, " ***** unknown chunkid %08x", chunk.id);
+ GST_DEBUG (" ***** unknown chunkid %08x", chunk.id);
break;
}
break;
stream = &avi_demux->stream[stream_id];
- GST_DEBUG (0,"gst_avi_demux_chain: tag found %08x size %08x stream_id %d",
+ GST_DEBUG ("gst_avi_demux_chain: tag found %08x size %08x stream_id %d",
chunk.id, chunk.size, stream_id);
format = GST_FORMAT_TIME;
if (GST_PAD_IS_USABLE (stream->pad)) {
if (next_ts >= stream->end_pos) {
gst_pad_push (stream->pad, GST_BUFFER (gst_event_new (GST_EVENT_EOS)));
- GST_DEBUG (0, "end stream %d: %" G_GINT64_FORMAT " %d %" G_GINT64_FORMAT,
+ GST_DEBUG ("end stream %d: %" G_GINT64_FORMAT " %d %" G_GINT64_FORMAT,
stream_id, next_ts, stream->current_frame - 1,
stream->end_pos);
}
/* FIXME, do some flush event here */
stream->need_flush = FALSE;
}
- GST_DEBUG (0, "send stream %d: %" G_GINT64_FORMAT " %d %" G_GINT64_FORMAT " %08x",
+ GST_DEBUG ("send stream %d: %" G_GINT64_FORMAT " %d %" G_GINT64_FORMAT " %08x",
stream_id, next_ts, stream->current_frame - 1,
stream->delay, chunk.size);
break;
}
default:
- GST_DEBUG (0, " ***** unknown chunkid %08x", chunk.id);
+ GST_DEBUG (" ***** unknown chunkid %08x", chunk.id);
break;
}
break;
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <config.h>
#include <stdlib.h>
if (!GST_CAPS_IS_FIXED (vscaps))
return GST_PAD_LINK_DELAYED;
- GST_DEBUG (0, "avimux: sinkconnect triggered on %s", gst_pad_get_name (pad));
+ GST_DEBUG ("avimux: sinkconnect triggered on %s", gst_pad_get_name (pad));
for (caps = vscaps; caps != NULL; caps = vscaps = vscaps->next)
{
gst_caps_has_property(caps, "layer"))
gst_caps_get_int(caps, "layer", &layer);
else
- GST_DEBUG(GST_CAT_PLUGIN_INFO,
+ GST_DEBUG (
"No layer specified, assuming layer 3");
/* we don't need to do anything here, compressed mp3 contains it all */
return;
}
- GST_DEBUG(GST_CAT_PLUGIN_INFO, "pad '%s' connected", padname);
+ GST_DEBUG ("pad '%s' connected", padname);
}
static void
return;
}
- GST_DEBUG(GST_CAT_PLUGIN_INFO, "pad '%s' unlinked", padname);
+ GST_DEBUG ("pad '%s' unlinked", padname);
}
static GstPad*
* Boston, MA 02111-1307, USA.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <gst/gst.h>
#include <gst/audio/audio.h>
#include "gstcutter.h"
if (!filter->have_caps) gst_cutter_get_caps (pad, filter);
in_data = (gint16 *) GST_BUFFER_DATA (buf);
- GST_DEBUG (GST_CAT_PLUGIN_INFO,
+ GST_DEBUG (
"length of prerec buffer: %.3f sec",
filter->pre_run_length);
/* if RMS below threshold, add buffer length to silent run length count
* if not, reset
*/
- GST_DEBUG (GST_CAT_PLUGIN_INFO,
+ GST_DEBUG (
"buffer stats: ms %f, RMS %f, audio length %f",
ms, RMS, gst_audio_length (filter->srcpad, buf));
if (RMS < filter->threshold_level)
/* g_print ("DEBUG: cutter: start from here, turning on out\n"); */
/* first of all, flush current buffer */
g_signal_emit (G_OBJECT (filter), gst_cutter_signals[CUT_START], 0);
- GST_DEBUG (GST_CAT_PLUGIN_INFO,
+ GST_DEBUG (
"flushing buffer of length %.3f",
filter->pre_run_length);
while (filter->pre_buffer)
gst_pad_push (filter->srcpad, prebuf);
++count;
}
- GST_DEBUG (GST_CAT_PLUGIN_INFO, "flushed %d buffers", count);
+ GST_DEBUG ("flushed %d buffers", count);
filter->pre_run_length = 0.0;
}
}
case ARG_THRESHOLD:
/* set the level */
filter->threshold_level = g_value_get_double (value);
- GST_DEBUG (GST_CAT_PLUGIN_INFO,
+ GST_DEBUG (
"DEBUG: set threshold level to %f",
filter->threshold_level);
break;
* values in dB < 0 result in values between 0 and 1
*/
filter->threshold_level = pow (10, g_value_get_double (value) / 20);
- GST_DEBUG (GST_CAT_PLUGIN_INFO,
+ GST_DEBUG (
"DEBUG: set threshold level to %f",
filter->threshold_level);
break;
* Boston, MA 02111-1307, USA.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <gst/gst.h>
#include <string.h>
GstBuffer *copy;
void *ptr;
- GST_DEBUG(0, "gst_efence_chain");
+ GST_DEBUG ("gst_efence_chain");
g_return_if_fail (GST_IS_PAD (pad));
g_return_if_fail (buffer != NULL);
GST_BUFFER_BUFFERPOOL (newbuf) = NULL;
GST_BUFFER_POOL_PRIVATE (newbuf) = NULL;
- GST_DEBUG(0, "new buffer=%p", newbuf);
+ GST_DEBUG ("new buffer=%p", newbuf);
return newbuf;
}
{
GstFencedBuffer *fenced_buffer;
- GST_DEBUG(0, "free buffer=%p", buffer);
+ GST_DEBUG ("free buffer=%p", buffer);
g_return_if_fail (buffer != NULL);
/* free our data */
if (!GST_BUFFER_FLAG_IS_SET (buffer, GST_BUFFER_DONTFREE) &&
GST_BUFFER_DATA (buffer)) {
- GST_DEBUG(0, "free region %p %d", fenced_buffer->region,
+ GST_DEBUG ("free region %p %d", fenced_buffer->region,
fenced_buffer->length);
munmap(fenced_buffer->region, fenced_buffer->length);
}else{
- GST_DEBUG(0, "not freeing region %p %d %p", fenced_buffer->region,
+ GST_DEBUG ("not freeing region %p %d %p", fenced_buffer->region,
GST_BUFFER_FLAGS(buffer), GST_BUFFER_DATA(buffer));
}
GstFencedBuffer *fenced_buffer = (GstFencedBuffer *) buffer;
int page_size;
- GST_DEBUG(0, "buffer=%p length=%d fence_top=%d", buffer, length, fence_top);
+ GST_DEBUG ("buffer=%p length=%d fence_top=%d", buffer, length, fence_top);
if(length==0)return NULL;
fenced_buffer->region = region;
fenced_buffer->length = alloc_size;
- GST_DEBUG(0, "new region %p %d", fenced_buffer->region,
+ GST_DEBUG ("new region %p %d", fenced_buffer->region,
fenced_buffer->length);
if(fence_top){
* Boston, MA 02111-1307, USA.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <string.h>
#include "gsteffectv.h"
* 270 degrees. The amount of rotation for each square is chosen at random.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <string.h>
#include <gst/gst.h>
#include "gsteffectv.h"
* Boston, MA 02111-1307, USA.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <string.h>
#include <gst/gst.h>
#include "gsteffectv.h"
* Boston, MA 02111-1307, USA.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <math.h>
#include <string.h>
#include <gst/gst.h>
* Boston, MA 02111-1307, USA.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <math.h>
#include <string.h>
#include <gst/gst.h>
* Boston, MA 02111-1307, USA.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <math.h>
#include <string.h>
#include <gst/gst.h>
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <math.h>
#include <string.h>
#include <gst/gst.h>
* by sam lantinga slouken@devolution.com
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <string.h>
#include <math.h>
#include <gst/gst.h>
* Boston, MA 02111-1307, USA.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <string.h>
#include "flx_fmt.h"
g_return_if_fail (element != NULL);
g_return_if_fail (GST_IS_FLXDEC(element));
- GST_DEBUG (0, "entering loop function");
+ GST_DEBUG ("entering loop function");
flxdec = GST_FLXDEC(element);
* Boston, MA 02111-1307, USA.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <config.h>
#include <gst/gst.h>
goom = GST_GOOM (gst_pad_get_parent (pad));
- GST_DEBUG (0, "GOOM: chainfunc called");
+ GST_DEBUG ("GOOM: chainfunc called");
if (GST_IS_EVENT (bufin)) {
GstEvent *event = GST_EVENT (bufin);
samples_in = GST_BUFFER_SIZE (bufin) / (sizeof (gint16) * goom->channels);
- GST_DEBUG (0, "input buffer has %d samples", samples_in);
+ GST_DEBUG ("input buffer has %d samples", samples_in);
if (GST_BUFFER_TIMESTAMP (bufin) < goom->next_time || samples_in < 512) {
goto done;
done:
gst_buffer_unref (bufin);
- GST_DEBUG (0, "GOOM: exiting chainfunc");
+ GST_DEBUG ("GOOM: exiting chainfunc");
}
static GstElementStateReturn
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include "alaw-encode.h"
#include "alaw-decode.h"
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include "mulaw-encode.h"
#include "mulaw-decode.h"
* Boston, MA 02111-1307, USA.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <gst/gst.h>
#include "gstlevel.h"
#include "math.h"
* Boston, MA 02111-1307, USA.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <string.h>
#include <gstmedian.h>
data = GST_BUFFER_DATA(buf);
size = GST_BUFFER_SIZE(buf);
- GST_DEBUG (0,"median: have buffer of %d", GST_BUFFER_SIZE(buf));
+ GST_DEBUG ("median: have buffer of %d", GST_BUFFER_SIZE(buf));
outbuf = gst_buffer_new();
GST_BUFFER_DATA(outbuf) = g_malloc(GST_BUFFER_SIZE(buf));
* Boston, MA 02111-1307, USA.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <config.h>
#include <gst/gst.h>
monoscope = GST_MONOSCOPE (gst_pad_get_parent (pad));
- GST_DEBUG (0, "Monoscope: chainfunc called");
+ GST_DEBUG ("Monoscope: chainfunc called");
samples_in = GST_BUFFER_SIZE (bufin) / sizeof (gint16);
- GST_DEBUG (0, "input buffer has %d samples", samples_in);
+ GST_DEBUG ("input buffer has %d samples", samples_in);
/* FIXME: should really select the first 1024 samples after the timestamp. */
if (GST_BUFFER_TIMESTAMP (bufin) < monoscope->next_time || samples_in < 1024) {
- GST_DEBUG (0, "timestamp is %" G_GUINT64_FORMAT ": want >= %" G_GUINT64_FORMAT, GST_BUFFER_TIMESTAMP (bufin), monoscope->next_time);
+ GST_DEBUG ("timestamp is %" G_GUINT64_FORMAT ": want >= %" G_GUINT64_FORMAT, GST_BUFFER_TIMESTAMP (bufin), monoscope->next_time);
gst_buffer_unref (bufin);
return;
}
monoscope->visstate = monoscope_init (monoscope->width, monoscope->height);
g_assert(monoscope->visstate != 0);
- GST_DEBUG (0, "making new pad");
+ GST_DEBUG ("making new pad");
caps = GST_CAPS_NEW (
"monoscopesrc",
gst_buffer_unref (bufin);
- GST_DEBUG (0, "Monoscope: exiting chainfunc");
+ GST_DEBUG ("Monoscope: exiting chainfunc");
}
* Boston, MA 02111-1307, USA.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include "qtdemux.h"
#include <string.h>
gst_bytestream_get_status(qtdemux->bs, &remaining, &event);
type = event ? GST_EVENT_TYPE(event) : GST_EVENT_UNKNOWN;
- GST_DEBUG(0,"qtdemux: event %p %d", event, type);
+ GST_DEBUG ("qtdemux: event %p %d", event, type);
switch(type){
case GST_EVENT_EOS:
g_warning("flush event");
break;
case GST_EVENT_DISCONTINUOUS:
- GST_DEBUG(0,"discontinuous event\n");
+ GST_DEBUG ("discontinuous event\n");
//gst_bytestream_flush_fast(qtdemux->bs, remaining);
break;
default:
//cur_offset = gst_bytestream_tell(qtdemux->bs);
cur_offset = qtdemux->offset;
- GST_DEBUG(0,"loop at position %d",cur_offset);
+ GST_DEBUG ("loop at position %d",cur_offset);
switch(qtdemux->state){
case QTDEMUX_STATE_HEADER:
}while(1);
length = GUINT32_FROM_BE(*(guint32 *)data);
- GST_DEBUG(0,"length %08x",length);
+ GST_DEBUG ("length %08x",length);
fourcc = GUINT32_FROM_LE(*(guint32 *)(data+4));
- GST_DEBUG(0,"fourcc " GST_FOURCC_FORMAT, GST_FOURCC_ARGS(fourcc));
+ GST_DEBUG ("fourcc " GST_FOURCC_FORMAT, GST_FOURCC_ARGS(fourcc));
if(length==0){
length = gst_bytestream_length(qtdemux->bs) - cur_offset;
}
guint32 length1, length2;
length1 = GUINT32_FROM_BE(*(guint32 *)(data+8));
- GST_DEBUG(0,"length1 %08x",length1);
+ GST_DEBUG ("length1 %08x",length1);
length2 = GUINT32_FROM_BE(*(guint32 *)(data+12));
- GST_DEBUG(0,"length2 %08x",length2);
+ GST_DEBUG ("length2 %08x",length2);
length=length2;
}
do{
ret = gst_bytestream_read(qtdemux->bs, &moov, length);
if(ret < length){
- GST_DEBUG(0,"read failed (%d < %d)",ret,length);
+ GST_DEBUG ("read failed (%d < %d)",ret,length);
if(!gst_qtdemux_handle_sink_event(qtdemux)){
return;
}
ret = gst_bytestream_seek(qtdemux->bs, cur_offset + length,
GST_SEEK_METHOD_SET);
qtdemux->offset = cur_offset + length;
- GST_DEBUG(0,"seek returned %d\n",ret);
+ GST_DEBUG ("seek returned %d\n",ret);
break;
}
case QTDEMUX_STATE_SEEKING_EOS:
GST_BUFFER(gst_event_new (GST_EVENT_EOS)));
}
ret = gst_bytestream_seek(qtdemux->bs, 0, GST_SEEK_METHOD_END);
- GST_DEBUG(0,"seek returned %d",ret);
+ GST_DEBUG ("seek returned %d",ret);
qtdemux->state = QTDEMUX_STATE_SEEKING_EOS;
return;
offset = stream->samples[stream->sample_index].offset;
size = stream->samples[stream->sample_index].size;
- GST_DEBUG(0,"pushing from stream %d, sample_index=%d offset=%d size=%d",
+ GST_DEBUG ("pushing from stream %d, sample_index=%d offset=%d size=%d",
index, stream->sample_index, offset, size);
cur_offset = gst_bytestream_tell(qtdemux->bs);
if(offset != cur_offset){
- GST_DEBUG(0,"seeking to offset %d",offset);
+ GST_DEBUG ("seeking to offset %d",offset);
ret = gst_bytestream_seek(qtdemux->bs, offset, GST_SEEK_METHOD_SET);
- GST_DEBUG(0,"seek returned %d",ret);
+ GST_DEBUG ("seek returned %d",ret);
return;
}
- GST_DEBUG(0,"reading %d bytes\n",size);
+ GST_DEBUG ("reading %d bytes\n",size);
buf = NULL;
do{
ret = gst_bytestream_read(qtdemux->bs, &buf, size);
if(ret < size){
- GST_DEBUG(0,"read failed (%d < %d)",ret,size);
+ GST_DEBUG ("read failed (%d < %d)",ret,size);
if(!gst_qtdemux_handle_sink_event(qtdemux)){
return;
}
QtDemuxStream *stream;
int i;
- GST_DEBUG(0,"gst_qtdemux_src_getcaps");
+ GST_DEBUG ("gst_qtdemux_src_getcaps");
qtdemux = GST_QTDEMUX(gst_pad_get_parent(pad));
g_return_val_if_fail(GST_IS_QTDEMUX(qtdemux), NULL);
- GST_DEBUG(0, "looking for pad %p in qtdemux %p", pad, qtdemux);
- GST_DEBUG(0, "n_streams is %d", qtdemux->n_streams);
+ GST_DEBUG ("looking for pad %p in qtdemux %p", pad, qtdemux);
+ GST_DEBUG ("n_streams is %d", qtdemux->n_streams);
for(i=0;i<qtdemux->n_streams;i++){
stream = qtdemux->streams[i];
if(stream->pad == pad){
}
}
- GST_DEBUG(0,"Couldn't find stream cooresponding to pad\n");
+ GST_DEBUG ("Couldn't find stream cooresponding to pad\n");
return NULL;
}
QtDemuxStream *stream;
int i;
- GST_DEBUG(0,"gst_qtdemux_src_link");
+ GST_DEBUG ("gst_qtdemux_src_link");
qtdemux = GST_QTDEMUX(gst_pad_get_parent(pad));
- GST_DEBUG(0, "looking for pad %p in qtdemux %p", pad, qtdemux);
+ GST_DEBUG ("looking for pad %p in qtdemux %p", pad, qtdemux);
g_return_val_if_fail(GST_IS_QTDEMUX(qtdemux), GST_PAD_LINK_REFUSED);
- GST_DEBUG(0, "n_streams is %d", qtdemux->n_streams);
+ GST_DEBUG ("n_streams is %d", qtdemux->n_streams);
for(i=0;i<qtdemux->n_streams;i++){
stream = qtdemux->streams[i];
- GST_DEBUG(0, "pad[%d] is %p", i, stream->pad);
+ GST_DEBUG ("pad[%d] is %p", i, stream->pad);
if(stream->pad == pad){
return GST_PAD_LINK_OK;
}
}
- GST_DEBUG(0,"Couldn't find stream cooresponding to pad\n");
+ GST_DEBUG ("Couldn't find stream cooresponding to pad\n");
return GST_PAD_LINK_REFUSED;
}
qtdemux->streams[qtdemux->n_streams] = stream;
qtdemux->n_streams++;
- GST_DEBUG(0, "n_streams is now %d", qtdemux->n_streams);
+ GST_DEBUG ("n_streams is now %d", qtdemux->n_streams);
- GST_DEBUG(0, "adding pad %p to qtdemux %p", stream->pad, qtdemux);
+ GST_DEBUG ("adding pad %p to qtdemux %p", stream->pad, qtdemux);
gst_element_add_pad(GST_ELEMENT (qtdemux), stream->pad);
/* Note: we need to have everything set up before calling try_set_caps */
* Library General Public License for more
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <string.h>
#include "gstrtpL16parse.h"
#include "gstrtp-common.h"
memcpy (GST_BUFFER_DATA (outbuf), rtp_packet_get_payload (packet), GST_BUFFER_SIZE (outbuf));
- GST_DEBUG (0,"gst_rtpL16parse_chain: pushing buffer of size %d", GST_BUFFER_SIZE(outbuf));
+ GST_DEBUG ("gst_rtpL16parse_chain: pushing buffer of size %d", GST_BUFFER_SIZE(outbuf));
/* FIXME: According to RFC 1890, this is required, right? */
#if G_BYTE_ORDER == G_LITTLE_ENDIAN
rtpL16parse = GST_RTP_L16_PARSE (element);
- GST_DEBUG (0, "state pending %d\n", GST_STATE_PENDING (element));
+ GST_DEBUG ("state pending %d\n", GST_STATE_PENDING (element));
switch (GST_STATE_TRANSITION (element)) {
case GST_STATE_NULL_TO_READY:
* Boston, MA 02111-1307, USA.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <string.h>
#include "gstrtpL16enc.h"
switch (GST_EVENT_TYPE (event)) {
case GST_EVENT_DISCONTINUOUS:
- GST_DEBUG (GST_CAT_EVENT, "discont");
+ GST_DEBUG ("discont");
rtpL16enc->next_time = 0;
gst_pad_event_default (pad, event);
return;
memcpy (GST_BUFFER_DATA (outbuf), packet->data, rtp_packet_get_packet_len (packet));
memcpy (GST_BUFFER_DATA (outbuf) + rtp_packet_get_packet_len(packet), GST_BUFFER_DATA (buf), GST_BUFFER_SIZE (buf));
- GST_DEBUG (0,"gst_rtpL16enc_chain: pushing buffer of size %d", GST_BUFFER_SIZE(outbuf));
+ GST_DEBUG ("gst_rtpL16enc_chain: pushing buffer of size %d", GST_BUFFER_SIZE(outbuf));
gst_pad_push (rtpL16enc->srcpad, outbuf);
++rtpL16enc->seq;
rtpL16enc = GST_RTP_L16_ENC (element);
- GST_DEBUG (0, "state pending %d\n", GST_STATE_PENDING (element));
+ GST_DEBUG ("state pending %d\n", GST_STATE_PENDING (element));
/* if going down into NULL state, close the file if it's open */
switch (GST_STATE_TRANSITION (element)) {
* Library General Public License for more
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <string.h>
#include "gstrtpL16parse.h"
#include "gstrtp-common.h"
memcpy (GST_BUFFER_DATA (outbuf), rtp_packet_get_payload (packet), GST_BUFFER_SIZE (outbuf));
- GST_DEBUG (0,"gst_rtpL16parse_chain: pushing buffer of size %d", GST_BUFFER_SIZE(outbuf));
+ GST_DEBUG ("gst_rtpL16parse_chain: pushing buffer of size %d", GST_BUFFER_SIZE(outbuf));
/* FIXME: According to RFC 1890, this is required, right? */
#if G_BYTE_ORDER == G_LITTLE_ENDIAN
rtpL16parse = GST_RTP_L16_PARSE (element);
- GST_DEBUG (0, "state pending %d\n", GST_STATE_PENDING (element));
+ GST_DEBUG ("state pending %d\n", GST_STATE_PENDING (element));
switch (GST_STATE_TRANSITION (element)) {
case GST_STATE_NULL_TO_READY:
* Boston, MA 02111-1307, USA.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <string.h>
#include "gstrtpL16enc.h"
switch (GST_EVENT_TYPE (event)) {
case GST_EVENT_DISCONTINUOUS:
- GST_DEBUG (GST_CAT_EVENT, "discont");
+ GST_DEBUG ("discont");
rtpL16enc->next_time = 0;
gst_pad_event_default (pad, event);
return;
memcpy (GST_BUFFER_DATA (outbuf), packet->data, rtp_packet_get_packet_len (packet));
memcpy (GST_BUFFER_DATA (outbuf) + rtp_packet_get_packet_len(packet), GST_BUFFER_DATA (buf), GST_BUFFER_SIZE (buf));
- GST_DEBUG (0,"gst_rtpL16enc_chain: pushing buffer of size %d", GST_BUFFER_SIZE(outbuf));
+ GST_DEBUG ("gst_rtpL16enc_chain: pushing buffer of size %d", GST_BUFFER_SIZE(outbuf));
gst_pad_push (rtpL16enc->srcpad, outbuf);
++rtpL16enc->seq;
rtpL16enc = GST_RTP_L16_ENC (element);
- GST_DEBUG (0, "state pending %d\n", GST_STATE_PENDING (element));
+ GST_DEBUG ("state pending %d\n", GST_STATE_PENDING (element));
/* if going down into NULL state, close the file if it's open */
switch (GST_STATE_TRANSITION (element)) {
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <string.h>
#include "gstsmoothwave.h"
/* gtk_widget_set_default_colormap (gdk_rgb_get_cmap()); */
/* gtk_widget_set_default_visual (gdk_rgb_get_visual()); */
-/* GST_DEBUG (0,"creating palette"); */
+/* GST_DEBUG ("creating palette"); */
for (i=0;i<256;i++)
palette[i] = (i << 16) || (i << 8);
-/* GST_DEBUG (0,"creating cmap"); */
+/* GST_DEBUG ("creating cmap"); */
smoothwave->cmap = gdk_rgb_cmap_new(palette,256);
-/* GST_DEBUG (0,"created cmap"); */
+/* GST_DEBUG ("created cmap"); */
/* gtk_widget_set_default_colormap (smoothwave->cmap); */
smoothwave->image = gtk_drawing_area_new();
qheight = smoothwave->height/4;
-/* GST_DEBUG (0,"traversing %d",smoothwave->width); */
+/* GST_DEBUG ("traversing %d",smoothwave->width); */
for (i=0;i<MAX(smoothwave->width,samplecount);i++) {
gint16 y1 = (gint32)(samples[i*2] * qheight) / 32768 +
qheight;
ptr++;
}
-/* GST_DEBUG (0,"drawing"); */
-/* GST_DEBUG (0,"gdk_draw_indexed_image(%p,%p,%d,%d,%d,%d,%s,%p,%d,%p);",
+/* GST_DEBUG ("drawing"); */
+/* GST_DEBUG ("gdk_draw_indexed_image(%p,%p,%d,%d,%d,%d,%s,%p,%d,%p);",
smoothwave->image->window,
smoothwave->image->style->fg_gc[GTK_STATE_NORMAL],
0,0,smoothwave->width,smoothwave->height,
* Boston, MA 02111-1307, USA.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <string.h>
#include <gstsmpte.h>
#include "paint.h"
* Boston, MA 02111-1307, USA.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <string.h>
#include "gstspectrum.h"
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include "gstudpsink.h"
#define UDP_DEFAULT_HOST "localhost"
if (udpsink->clock) {
GstClockID id = gst_clock_new_single_shot_id (udpsink->clock, GST_BUFFER_TIMESTAMP (buf));
- GST_DEBUG (0, "udpsink: clock wait: %" G_GUINT64_FORMAT "\n", GST_BUFFER_TIMESTAMP (buf));
+ GST_DEBUG ("udpsink: clock wait: %" G_GUINT64_FORMAT "\n", GST_BUFFER_TIMESTAMP (buf));
gst_element_clock_wait (GST_ELEMENT (udpsink), id, NULL);
gst_clock_id_free (id);
}
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "gstudpsrc.h"
+#include <unistd.h>
#define UDP_DEFAULT_PORT 4951
#define UDP_DEFAULT_MULTICAST_GROUP "0.0.0.0"
* Boston, MA 02111-1307, USA.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <gst/gst.h>
#include <string.h>
/*#define DEBUG_ENABLED */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <gstvideoflip.h>
#include <videoflip.h>
GstCaps *sizecaps;
int i;
- GST_DEBUG(0,"gst_videoflip_src_link");
+ GST_DEBUG ("gst_videoflip_src_link");
videoflip = GST_VIDEOFLIP (gst_pad_get_parent (pad));
/* get list of peer's caps */
GstPadLinkReturn ret;
GstCaps *peercaps;
- GST_DEBUG(0,"gst_videoflip_src_link");
+ GST_DEBUG ("gst_videoflip_src_link");
videoflip = GST_VIDEOFLIP (gst_pad_get_parent (pad));
if (!GST_CAPS_IS_FIXED (caps)) {
gst_caps_get_int (caps, "width", &videoflip->to_width);
gst_caps_get_int (caps, "height", &videoflip->to_height);
- GST_DEBUG(0,"width %d height %d",videoflip->to_width,videoflip->to_height);
+ GST_DEBUG ("width %d height %d",videoflip->to_width,videoflip->to_height);
peercaps = gst_caps_copy(caps);
GstPadLinkReturn ret;
GstCaps *peercaps;
- GST_DEBUG(0,"gst_videoflip_src_link");
+ GST_DEBUG ("gst_videoflip_src_link");
videoflip = GST_VIDEOFLIP (gst_pad_get_parent (pad));
if (!GST_CAPS_IS_FIXED (caps)) {
static void
gst_videoflip_init (GstVideoflip *videoflip)
{
- GST_DEBUG(0,"gst_videoflip_init");
+ GST_DEBUG ("gst_videoflip_init");
videoflip->sinkpad = gst_pad_new_from_template (
GST_PAD_TEMPLATE_GET (gst_videoflip_sink_template_factory),
"sink");
gulong size;
GstBuffer *outbuf;
- GST_DEBUG (0,"gst_videoflip_chain");
+ GST_DEBUG ("gst_videoflip_chain");
g_return_if_fail (pad != NULL);
g_return_if_fail (GST_IS_PAD (pad));
return;
}
- GST_DEBUG (0,"gst_videoflip_chain: got buffer of %ld bytes in '%s'",size,
+ GST_DEBUG ("gst_videoflip_chain: got buffer of %ld bytes in '%s'",size,
GST_OBJECT_NAME (videoflip));
- GST_DEBUG(0,"size=%ld from=%dx%d to=%dx%d fromsize=%ld (should be %d) tosize=%d",
+ GST_DEBUG ("size=%ld from=%dx%d to=%dx%d fromsize=%ld (should be %d) tosize=%d",
size,
videoflip->from_width, videoflip->from_height,
videoflip->to_width, videoflip->to_height,
GST_BUFFER_TIMESTAMP(outbuf) = GST_BUFFER_TIMESTAMP(buf);
g_return_if_fail(videoflip->format);
- GST_DEBUG (0,"format %s",videoflip->format->fourcc);
+ GST_DEBUG ("format %s",videoflip->format->fourcc);
g_return_if_fail(videoflip->format->scale);
videoflip->format->scale(videoflip, GST_BUFFER_DATA(outbuf), data);
- GST_DEBUG (0,"gst_videoflip_chain: pushing buffer of %d bytes in '%s'",GST_BUFFER_SIZE(outbuf),
+ GST_DEBUG ("gst_videoflip_chain: pushing buffer of %d bytes in '%s'",GST_BUFFER_SIZE(outbuf),
GST_OBJECT_NAME (videoflip));
gst_pad_push(videoflip->srcpad, outbuf);
g_return_if_fail(GST_IS_VIDEOFLIP(object));
src = GST_VIDEOFLIP(object);
- GST_DEBUG(0,"gst_videoflip_set_property");
+ GST_DEBUG ("gst_videoflip_set_property");
switch (prop_id) {
case ARG_METHOD:
src->method = g_value_get_enum (value);
{
int i;
- GST_DEBUG (0,"finding %p",caps);
+ GST_DEBUG ("finding %p",caps);
g_return_val_if_fail(caps != NULL, NULL);
break;
}
- GST_DEBUG (0,"format=%p \"%s\" from %dx%d to %dx%d",
+ GST_DEBUG ("format=%p \"%s\" from %dx%d to %dx%d",
videoflip->format, videoflip->format->fourcc,
videoflip->from_width, videoflip->from_height,
videoflip->to_width, videoflip->to_height);
if(videoflip->method == GST_VIDEOFLIP_METHOD_IDENTITY){
- GST_DEBUG (0,"videoflip: using passthru");
+ GST_DEBUG ("videoflip: using passthru");
videoflip->passthru = TRUE;
videoflip->inited = TRUE;
return;
int dw = scale->to_width;
int dh = scale->to_height;
- GST_DEBUG (0,"videoflip: scaling planar 4:1:1 %dx%d to %dx%d", sw, sh, dw, dh);
+ GST_DEBUG ("videoflip: scaling planar 4:1:1 %dx%d to %dx%d", sw, sh, dw, dh);
gst_videoflip_flip(scale, dest, src, sw, sh, dw, dh);
*
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <string.h>
#include <gstwavenc.h>
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <string.h>
#include <gstwavparse.h>
g_return_if_fail (GST_BUFFER_DATA (buf) != NULL);
wavparse = GST_WAVPARSE (gst_pad_get_parent (pad));
- GST_DEBUG (0, "gst_wavparse_chain: got buffer in '%s'",
+ GST_DEBUG ("gst_wavparse_chain: got buffer in '%s'",
gst_object_get_name (GST_OBJECT (wavparse)));
size = GST_BUFFER_SIZE (buf);
}
if (wavparse->state == GST_WAVPARSE_OTHER) {
- GST_DEBUG (0, "we're in unknown territory here, not passing on");
+ GST_DEBUG ("we're in unknown territory here, not passing on");
return;
}
if (wavparse->state == GST_WAVPARSE_UNKNOWN) {
gint retval;
- GST_DEBUG (0, "GstWavParse: checking for RIFF format");
+ GST_DEBUG ("GstWavParse: checking for RIFF format");
/* create a new RIFF parser */
wavparse->riff = gst_riff_new ();
retval = gst_riff_next_buffer (wavparse->riff, buf, 0);
buffer_riffed = TRUE;
if (retval < 0) {
- GST_DEBUG (0, "sorry, isn't RIFF");
+ GST_DEBUG ("sorry, isn't RIFF");
return;
}
/* this has to be a file of form WAVE for us to deal with it */
if (wavparse->riff->form != gst_riff_fourcc_to_id ("WAVE")) {
- GST_DEBUG (0, "sorry, isn't WAVE");
+ GST_DEBUG ("sorry, isn't WAVE");
return;
}
GstRiffChunk *fmt;
GstWavParseFormat *format;
- GST_DEBUG (0, "GstWavParse: looking for fmt chunk");
+ GST_DEBUG ("GstWavParse: looking for fmt chunk");
/* there's a good possibility we may not have parsed this buffer */
if (buffer_riffed == FALSE) {
return;
}
- GST_DEBUG (0, "frequency %d, channels %d",
+ GST_DEBUG ("frequency %d, channels %d",
wavparse->rate, wavparse->channels);
/* we're now looking for the data chunk */
GstBuffer *newbuf;
GstRiffChunk *datachunk;
- GST_DEBUG (0, "GstWavParse: looking for data chunk");
+ GST_DEBUG ("GstWavParse: looking for data chunk");
/* again, we might need to parse the buffer */
if (buffer_riffed == FALSE) {
if (datachunk != NULL) {
gulong subsize;
- GST_DEBUG (0, "data begins at %ld", datachunk->offset);
+ GST_DEBUG ("data begins at %ld", datachunk->offset);
wavparse->datastart = datachunk->offset;
/* now we construct a new buffer for the remainder */
subsize = size - datachunk->offset;
- GST_DEBUG (0, "sending last %ld bytes along as audio", subsize);
+ GST_DEBUG ("sending last %ld bytes along as audio", subsize);
newbuf = gst_buffer_create_sub (buf, datachunk->offset, subsize);
gst_buffer_unref (buf);
bytes_per_sample = wavparse->channels * wavparse->width / 8;
if (bytes_per_sample == 0) {
- GST_DEBUG (0, "bytes_per_sample is 0, probably an mp3 - channels %d, width %d\n",
+ GST_DEBUG ("bytes_per_sample is 0, probably an mp3 - channels %d, width %d\n",
wavparse->channels, wavparse->width);
return FALSE;
}
g_warning ("byterate is 0, internal error\n");
return FALSE;
}
- GST_DEBUG (0, "bytes per sample: %d\n", bytes_per_sample);
+ GST_DEBUG ("bytes per sample: %d\n", bytes_per_sample);
switch (src_format) {
case GST_FORMAT_BYTES:
g_warning ("Could not query sink pad's peer\n");
return FALSE;
}
- GST_DEBUG (0, "pad_query done, value %" G_GINT64_FORMAT "\n", *value);
+ GST_DEBUG ("pad_query done, value %" G_GINT64_FORMAT "\n", *value);
return TRUE;
}
GstWavParse *wavparse = GST_WAVPARSE (GST_PAD_PARENT (pad));
gboolean res = FALSE;
- GST_DEBUG(0, "event %d", GST_EVENT_TYPE (event));
+ GST_DEBUG ("event %d", GST_EVENT_TYPE (event));
switch (GST_EVENT_TYPE (event)) {
case GST_EVENT_SEEK:
AC_DEFUN(AS_SLURP_FFMPEG,
[
# save original dir
+ FAILED=""
DIRECTORY=`pwd`
# get/update cvs
if test ! -d $1; then mkdir -p $1; fi
# check out cvs code
AC_MSG_NOTICE(checking out ffmpeg cvs code from $2 into $1)
cvs -Q -d:pserver:anonymous@cvs.ffmpeg.sourceforge.net:/cvsroot/ffmpeg co -D '$2' ffmpeg || FAILED=yes
- cd ffmpeg
+ echo "$2" > Tag
else
# compare against Tag file and see if it needs updating
- if diff -q Tag ffmpeg/CVS/Tag > /dev/null 2> /dev/null
- then
- # diff returned no problem
+ if test "`cat Tag`" == "$2"; then
AC_MSG_NOTICE(ffmpeg cvs code in sync)
else
- # diff says they differ
cd ffmpeg
- AC_MSG_NOTICE(updating ffmpeg cvs code)
+ AC_MSG_NOTICE(updating ffmpeg cvs code to $2)
cvs -Q update -dP -D '$2' || FAILED=yes
+ cd ..
+ echo "$2" > Tag
fi
fi
if (sign == TRUE) {
if (endianness == G_LITTLE_ENDIAN) {
*format = AFMT_S16_LE;
- GST_DEBUG (GST_CAT_PLUGIN_INFO,
+ GST_DEBUG (
"16 bit signed LE, no law (%d)", *format);
}
else if (endianness == G_BIG_ENDIAN) {
*format = AFMT_S16_BE;
- GST_DEBUG (GST_CAT_PLUGIN_INFO,
+ GST_DEBUG (
"16 bit signed BE, no law (%d)", *format);
}
}
else {
if (endianness == G_LITTLE_ENDIAN) {
*format = AFMT_U16_LE;
- GST_DEBUG (GST_CAT_PLUGIN_INFO,
+ GST_DEBUG (
"16 bit unsigned LE, no law (%d)", *format);
}
else if (endianness == G_BIG_ENDIAN) {
*format = AFMT_U16_BE;
- GST_DEBUG (GST_CAT_PLUGIN_INFO,
+ GST_DEBUG (
"16 bit unsigned BE, no law (%d)", *format);
}
}
else if (width == 8) {
if (sign == TRUE) {
*format = AFMT_S8;
- GST_DEBUG (GST_CAT_PLUGIN_INFO,
+ GST_DEBUG (
"8 bit signed, no law (%d)", *format);
}
else {
*format = AFMT_U8;
- GST_DEBUG (GST_CAT_PLUGIN_INFO,
+ GST_DEBUG (
"8 bit unsigned, no law (%d)", *format);
}
*bps = 1;
}
} else if (law == 1) {
*format = AFMT_MU_LAW;
- GST_DEBUG (GST_CAT_PLUGIN_INFO,
+ GST_DEBUG (
"mu law (%d)", *format);
} else if (law == 2) {
*format = AFMT_A_LAW;
- GST_DEBUG (GST_CAT_PLUGIN_INFO,
+ GST_DEBUG (
"a law (%d)", *format);
} else {
g_critical ("unknown law");
if (!gst_ossformat_get (common->law, common->endianness, common->sign,
common->width, common->depth, &format, &bps))
{
- GST_DEBUG (GST_CAT_PLUGIN_INFO, "could not get format");
+ GST_DEBUG ("could not get format");
return FALSE;
}
else
frag = 0x7FFF0000 | common->fragment;
- GST_INFO (GST_CAT_PLUGIN_INFO,
+ GST_INFO (
"common: setting sound card to %dHz %d format %s (%08x fragment)",
common->rate, common->format,
(common->channels == 2) ? "stereo" : "mono", frag);
}
common->fragment = space.fragstotal << 16 | frag_ln;
- GST_INFO (GST_CAT_PLUGIN_INFO,
+ GST_INFO (
"common: set sound card to %dHz, %d format, %s "
"(%d bytes buffer, %08x fragment)",
common->rate, common->format,
space.bytes, common->fragment);
common->fragment_time = (GST_SECOND * common->fragment_size) / common->bps;
- GST_INFO (GST_CAT_PLUGIN_INFO, "fragment time %u %" G_GUINT64_FORMAT "\n",
+ GST_INFO ( "fragment time %u %" G_GUINT64_FORMAT "\n",
common->bps, common->fragment_time);
if (target_format != common->format ||
gint caps;
g_return_val_if_fail (common->fd == -1, FALSE);
- GST_INFO (GST_CAT_PLUGIN_INFO, "common: attempting to open sound device");
+ GST_INFO ( "common: attempting to open sound device");
/* first try to open the sound card */
if (mode == GST_OSSCOMMON_WRITE) {
/* set card state */
ioctl (common->fd, SNDCTL_DSP_GETCAPS, &caps);
- GST_INFO (GST_CAT_PLUGIN_INFO, "osscommon: Capabilities %08x", caps);
+ GST_INFO ( "osscommon: Capabilities %08x", caps);
- if (caps & DSP_CAP_DUPLEX) GST_INFO (GST_CAT_PLUGIN_INFO, "osscommon: Full duplex");
- if (caps & DSP_CAP_REALTIME) GST_INFO (GST_CAT_PLUGIN_INFO, "osscommon: Realtime");
- if (caps & DSP_CAP_BATCH) GST_INFO (GST_CAT_PLUGIN_INFO, "osscommon: Batch");
- if (caps & DSP_CAP_COPROC) GST_INFO (GST_CAT_PLUGIN_INFO, "osscommon: Has coprocessor");
- if (caps & DSP_CAP_TRIGGER) GST_INFO (GST_CAT_PLUGIN_INFO, "osscommon: Trigger");
- if (caps & DSP_CAP_MMAP) GST_INFO (GST_CAT_PLUGIN_INFO, "osscommon: Direct access");
+ if (caps & DSP_CAP_DUPLEX) GST_INFO ( "osscommon: Full duplex");
+ if (caps & DSP_CAP_REALTIME) GST_INFO ( "osscommon: Realtime");
+ if (caps & DSP_CAP_BATCH) GST_INFO ( "osscommon: Batch");
+ if (caps & DSP_CAP_COPROC) GST_INFO ( "osscommon: Has coprocessor");
+ if (caps & DSP_CAP_TRIGGER) GST_INFO ( "osscommon: Trigger");
+ if (caps & DSP_CAP_MMAP) GST_INFO ( "osscommon: Direct access");
#ifdef DSP_CAP_MULTI
- if (caps & DSP_CAP_MULTI) GST_INFO (GST_CAT_PLUGIN_INFO, "osscommon: Multiple open");
+ if (caps & DSP_CAP_MULTI) GST_INFO ( "osscommon: Multiple open");
#endif /* DSP_CAP_MULTI */
#ifdef DSP_CAP_BIND
- if (caps & DSP_CAP_BIND) GST_INFO (GST_CAT_PLUGIN_INFO, "osscommon: Channel binding");
+ if (caps & DSP_CAP_BIND) GST_INFO ( "osscommon: Channel binding");
#endif /* DSP_CAP_BIND */
ioctl(common->fd, SNDCTL_DSP_GETFMTS, &caps);
- GST_INFO (GST_CAT_PLUGIN_INFO, "osscommon: Formats %08x", caps);
- if (caps & AFMT_MU_LAW) GST_INFO (GST_CAT_PLUGIN_INFO, "osscommon: MU_LAW");
- if (caps & AFMT_A_LAW) GST_INFO (GST_CAT_PLUGIN_INFO, "osscommon: A_LAW");
- if (caps & AFMT_IMA_ADPCM) GST_INFO (GST_CAT_PLUGIN_INFO, "osscommon: IMA_ADPCM");
- if (caps & AFMT_U8) GST_INFO (GST_CAT_PLUGIN_INFO, "osscommon: U8");
- if (caps & AFMT_S16_LE) GST_INFO (GST_CAT_PLUGIN_INFO, "osscommon: S16_LE");
- if (caps & AFMT_S16_BE) GST_INFO (GST_CAT_PLUGIN_INFO, "osscommon: S16_BE");
- if (caps & AFMT_S8) GST_INFO (GST_CAT_PLUGIN_INFO, "osscommon: S8");
- if (caps & AFMT_U16_LE) GST_INFO (GST_CAT_PLUGIN_INFO, "osscommon: U16_LE");
- if (caps & AFMT_U16_BE) GST_INFO (GST_CAT_PLUGIN_INFO, "osscommon: U16_BE");
- if (caps & AFMT_MPEG) GST_INFO (GST_CAT_PLUGIN_INFO, "osscommon: MPEG");
+ GST_INFO ( "osscommon: Formats %08x", caps);
+ if (caps & AFMT_MU_LAW) GST_INFO ( "osscommon: MU_LAW");
+ if (caps & AFMT_A_LAW) GST_INFO ( "osscommon: A_LAW");
+ if (caps & AFMT_IMA_ADPCM) GST_INFO ( "osscommon: IMA_ADPCM");
+ if (caps & AFMT_U8) GST_INFO ( "osscommon: U8");
+ if (caps & AFMT_S16_LE) GST_INFO ( "osscommon: S16_LE");
+ if (caps & AFMT_S16_BE) GST_INFO ( "osscommon: S16_BE");
+ if (caps & AFMT_S8) GST_INFO ( "osscommon: S8");
+ if (caps & AFMT_U16_LE) GST_INFO ( "osscommon: U16_LE");
+ if (caps & AFMT_U16_BE) GST_INFO ( "osscommon: U16_BE");
+ if (caps & AFMT_MPEG) GST_INFO ( "osscommon: MPEG");
#ifdef AFMT_AC3
- if (caps & AFMT_AC3) GST_INFO (GST_CAT_PLUGIN_INFO, "osscommon: AC3");
+ if (caps & AFMT_AC3) GST_INFO ( "osscommon: AC3");
#endif
- GST_INFO (GST_CAT_PLUGIN_INFO,
+ GST_INFO (
"osscommon: opened audio (%s) with fd=%d", common->device, common->fd);
common->caps = caps;
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
gint width = 16;
gboolean supported = TRUE;
- GST_DEBUG (0, "have format 0x%08x %d %d", format, stereo, rate);
+ GST_DEBUG ("have format 0x%08x %d %d", format, stereo, rate);
switch (format) {
case AFMT_MU_LAW:
pipe(ossgst->fdin);
pipe(ossgst->fdout);
- GST_DEBUG (0, "about to fork");
+ GST_DEBUG ("about to fork");
if((ossgst->childpid = fork()) == -1)
{
gst_element_error(GST_ELEMENT(ossgst),"forking");
return FALSE;
}
- GST_DEBUG (0,"forked %d", ossgst->childpid);
+ GST_DEBUG ("forked %d", ossgst->childpid);
if(ossgst->childpid == 0)
{
gchar **args;
- GST_DEBUG (0, "fork command %d", ossgst->childpid);
+ GST_DEBUG ("fork command %d", ossgst->childpid);
ld_preload = getenv ("LD_PRELOAD");
* Boston, MA 02111-1307, USA.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <sys/ioctl.h>
#include <sys/soundcard.h>
#include <errno.h>
+#include <unistd.h>
-#include <gstosssink.h>
+#include "gstosssink.h"
/* elementfactory information */
static GstElementDetails gst_osssink_details = {
gst_osscommon_close_audio (&osssink->common);
GST_FLAG_UNSET (osssink, GST_OSSSINK_OPEN);
- GST_INFO (GST_CAT_PLUGIN_INFO, "osssink: closed sound device");
+ GST_INFO ( "osssink: closed sound device");
}
break;
}
* Boston, MA 02111-1307, USA.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
src = GST_OSSSRC(gst_pad_get_parent (pad));
- GST_DEBUG (GST_CAT_PLUGIN_INFO, "attempting to read something from the soundcard");
+ GST_DEBUG ("attempting to read something from the soundcard");
if (src->need_eos) {
src->need_eos = FALSE;
src->curoffset += readbytes;
- GST_DEBUG (GST_CAT_PLUGIN_INFO, "pushed buffer from soundcard of %ld bytes, timestamp %" G_GINT64_FORMAT,
+ GST_DEBUG ("pushed buffer from soundcard of %ld bytes, timestamp %" G_GINT64_FORMAT,
readbytes, GST_BUFFER_TIMESTAMP (buf));
return buf;
{
GstOssSrc *osssrc = GST_OSSSRC (element);
- GST_DEBUG (GST_CAT_PLUGIN_INFO, "osssrc: state change");
+ GST_DEBUG ("osssrc: state change");
switch (GST_STATE_TRANSITION (element)) {
case GST_STATE_NULL_TO_READY:
break;
}
default:
- GST_DEBUG(GST_CAT_PLUGIN_INFO,
+ GST_DEBUG (
"Unknown fourcc 0x%08x " GST_FOURCC_FORMAT ", trying default",
fourcc, GST_FOURCC_ARGS(fourcc));
#include "v4l2_calls.h"
#define DEBUG(format, args...) \
- GST_DEBUG_ELEMENT(GST_CAT_PLUGIN_INFO, \
+ GST_DEBUG_OBJECT (\
GST_ELEMENT(v4l2element), \
"V4L2-overlay: " format, ##args)
#include "v4l2_calls.h"
#define DEBUG(format, args...) \
- GST_DEBUG_ELEMENT(GST_CAT_PLUGIN_INFO, \
+ GST_DEBUG_OBJECT (\
GST_ELEMENT(v4l2element), \
"V4L2: " format, ##args)
#include <sys/time.h>
#define DEBUG(format, args...) \
- GST_DEBUG_ELEMENT(GST_CAT_PLUGIN_INFO, \
+ GST_DEBUG_OBJECT (\
GST_ELEMENT(v4l2src), \
"V4L2SRC: " format, ##args)
while (v4l2src->frame_queue_state[v4l2src->queue_frame] !=
QUEUE_STATE_READY_FOR_QUEUE &&
!v4l2src->quit) {
- GST_DEBUG(GST_CAT_PLUGIN_INFO,
+ GST_DEBUG (
"Waiting for frames to become available (%d < %d)",
v4l2src->num_queued, MIN_BUFFERS_QUEUED);
g_cond_wait(v4l2src->cond_queue_state,