{
GstResampler *resampler = params->resampler;
gint j;
- guint *offset, *n_taps, *phase;
+ guint32 *offset, *n_taps, *phase;
gint tap_offs;
gint max_taps;
gint in_size, out_size;
shift = params->shift;
resampler->taps = g_malloc (sizeof (gdouble) * max_taps * out_size);
- n_taps = resampler->n_taps = g_malloc (sizeof (guint) * out_size);
- offset = resampler->offset = g_malloc (sizeof (guint) * out_size);
- phase = resampler->phase = g_malloc (sizeof (guint) * out_size);
+ n_taps = resampler->n_taps = g_malloc (sizeof (guint32) * out_size);
+ offset = resampler->offset = g_malloc (sizeof (guint32) * out_size);
+ phase = resampler->phase = g_malloc (sizeof (guint32) * out_size);
for (j = 0; j < out_size; j++) {
gdouble ox, x;
{
guint i, out_size, max_taps;
gdouble *taps;
- guint *offset, *phase;
+ guint32 *offset, *phase;
g_return_if_fail (r1->max_taps == r2->max_taps);
out_size = r1->out_size + r2->out_size;
max_taps = r1->max_taps;
- offset = g_malloc (sizeof (guint) * out_size);
- phase = g_malloc (sizeof (guint) * out_size);
+ offset = g_malloc (sizeof (guint32) * out_size);
+ phase = g_malloc (sizeof (guint32) * out_size);
taps = g_malloc (sizeof (gdouble) * max_taps * out_size);
resampler->in_size = r1->in_size + r2->in_size;
resampler->max_taps = max_taps;
resampler->offset = offset;
resampler->phase = phase;
- resampler->n_taps = g_malloc (sizeof (guint) * out_size);
+ resampler->n_taps = g_malloc (sizeof (guint32) * out_size);
resampler->taps = taps;
for (i = 0; i < out_size; i++) {
{
gint i;
guint32 *s, *d;
- guint *offset;
+ guint32 *offset;
offset = scale->resampler.offset + dest_offset;
gint16 *taps, *t;
gint i, j, max_taps, sum0, sum1, sum2, sum3;
guint8 *s, *d;
- guint *offset, *phase;
+ guint32 *offset, *phase;
if (scale->taps_s16 == NULL)
make_s16_taps (scale);