summaryrefslogtreecommitdiffstats
path: root/gst/speexresample/speex_resampler_wrapper.h
diff options
context:
space:
mode:
authorSebastian Dröge <slomo@circular-chaos.org>2008-10-30 13:44:41 +0000
committerSebastian Dröge <slomo@circular-chaos.org>2008-10-30 13:44:41 +0000
commita915c3ec730776b020efdc757a7de13fbbdc7c67 (patch)
tree0b2b1fa66ba7a853886f40f536499be80fbd9286 /gst/speexresample/speex_resampler_wrapper.h
parente74c4fe4c71538cd7d5103f26caae023ae7e0f0e (diff)
downloadgst-plugins-bad-a915c3ec730776b020efdc757a7de13fbbdc7c67.tar.gz
gst-plugins-bad-a915c3ec730776b020efdc757a7de13fbbdc7c67.tar.bz2
gst-plugins-bad-a915c3ec730776b020efdc757a7de13fbbdc7c67.zip
gst/speexresample/: Add support for int8, int24 and int32 input by converting internally to/from int16 or double.
Original commit message from CVS: * gst/speexresample/gstspeexresample.c: (gst_speex_resample_stop), (gst_speex_resample_get_funcs), (gst_speex_resample_transform_size), (gst_speex_resample_convert_buffer), (gst_speex_resample_push_drain), (gst_speex_resample_process): * gst/speexresample/gstspeexresample.h: * gst/speexresample/speex_resampler_wrapper.h: Add support for int8, int24 and int32 input by converting internally to/from int16 or double.
Diffstat (limited to 'gst/speexresample/speex_resampler_wrapper.h')
-rw-r--r--gst/speexresample/speex_resampler_wrapper.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/gst/speexresample/speex_resampler_wrapper.h b/gst/speexresample/speex_resampler_wrapper.h
index 6f3fba9b..c5a214de 100644
--- a/gst/speexresample/speex_resampler_wrapper.h
+++ b/gst/speexresample/speex_resampler_wrapper.h
@@ -56,6 +56,7 @@ typedef struct {
int (*reset_mem) (SpeexResamplerState * st);
int (*skip_zeros) (SpeexResamplerState * st);
const char * (*strerror) (gint err);
+ unsigned int width;
} SpeexResampleFuncs;
SpeexResamplerState *resample_float_resampler_init (guint32 nb_channels,
@@ -87,7 +88,8 @@ static const SpeexResampleFuncs float_funcs =
resample_float_resampler_set_quality,
resample_float_resampler_reset_mem,
resample_float_resampler_skip_zeros,
- resample_float_resampler_strerror
+ resample_float_resampler_strerror,
+ 16
};
SpeexResamplerState *resample_double_resampler_init (guint32 nb_channels,
@@ -119,7 +121,8 @@ static const SpeexResampleFuncs double_funcs =
resample_double_resampler_set_quality,
resample_double_resampler_reset_mem,
resample_double_resampler_skip_zeros,
- resample_double_resampler_strerror
+ resample_double_resampler_strerror,
+ 64
};
SpeexResamplerState *resample_int_resampler_init (guint32 nb_channels,
@@ -151,7 +154,8 @@ static const SpeexResampleFuncs int_funcs =
resample_int_resampler_set_quality,
resample_int_resampler_reset_mem,
resample_int_resampler_skip_zeros,
- resample_int_resampler_strerror
+ resample_int_resampler_strerror,
+ 32
};
#endif /* __SPEEX_RESAMPLER_WRAPPER_H__ */