summaryrefslogtreecommitdiff
path: root/libswresample/swresample_internal.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-06-03 01:22:25 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-06-04 05:37:32 +0200
commitcc17b43d8dd324fbae98407124618e746a390a76 (patch)
treed13f812cc871e1a338819af23ac4dc20e33ea7ea /libswresample/swresample_internal.h
parentda7c8fd91761dff3f9202e813bb5a5963a2d657c (diff)
downloadffmpeg-cc17b43d8dd324fbae98407124618e746a390a76.tar.gz
swresample: Add swr_get_out_samples()
Previous version reviewed-by: Pavel Koshevoy <pkoshevoy@gmail.com> Previous version reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswresample/swresample_internal.h')
-rw-r--r--libswresample/swresample_internal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libswresample/swresample_internal.h b/libswresample/swresample_internal.h
index 774593938b..7595588f41 100644
--- a/libswresample/swresample_internal.h
+++ b/libswresample/swresample_internal.h
@@ -76,6 +76,7 @@ typedef int (* resample_flush_func)(struct SwrContext *c);
typedef int (* set_compensation_func)(struct ResampleContext *c, int sample_delta, int compensation_distance);
typedef int64_t (* get_delay_func)(struct SwrContext *s, int64_t base);
typedef int (* invert_initial_buffer_func)(struct ResampleContext *c, AudioData *dst, const AudioData *src, int src_size, int *dst_idx, int *dst_count);
+typedef int64_t (* get_out_samples_func)(struct SwrContext *s, int in_samples);
struct Resampler {
resample_init_func init;
@@ -85,6 +86,7 @@ struct Resampler {
set_compensation_func set_compensation;
get_delay_func get_delay;
invert_initial_buffer_func invert_initial_buffer;
+ get_out_samples_func get_out_samples;
};
extern struct Resampler const swri_resampler;