diff options
author | wm4 <wm4@nowhere> | 2017-09-21 11:07:02 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-09-21 12:42:09 +0200 |
commit | 3a2d5e68acb2ac0f8b09b896907a692b1c48c6b3 (patch) | |
tree | 13a7e321ce6accceca720fb654cdf7ea8eee0afc /audio/aframe.h | |
parent | caaa1189ba75a7df9a4d02f7747d6c0bf3b05012 (diff) | |
download | mpv-3a2d5e68acb2ac0f8b09b896907a692b1c48c6b3.tar.bz2 mpv-3a2d5e68acb2ac0f8b09b896907a692b1c48c6b3.tar.xz |
audio: move libswresample wrapper out of audio filter code
Move it from af_lavrresample.c to a new aconverter.c file, which is
independent from the filter chain code. It also doesn't use mp_audio,
and thus has no GPL dependencies.
Preparation for later commits. Not particularly well tested, so have
fun.
Diffstat (limited to 'audio/aframe.h')
-rw-r--r-- | audio/aframe.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/audio/aframe.h b/audio/aframe.h index 5661178419..9ce19cdee1 100644 --- a/audio/aframe.h +++ b/audio/aframe.h @@ -23,6 +23,8 @@ void mp_aframe_config_copy(struct mp_aframe *dst, struct mp_aframe *src); bool mp_aframe_config_equals(struct mp_aframe *a, struct mp_aframe *b); bool mp_aframe_config_is_valid(struct mp_aframe *frame); +void mp_aframe_copy_attributes(struct mp_aframe *dst, struct mp_aframe *src); + uint8_t **mp_aframe_get_data_ro(struct mp_aframe *frame); uint8_t **mp_aframe_get_data_rw(struct mp_aframe *frame); @@ -40,6 +42,7 @@ bool mp_aframe_set_size(struct mp_aframe *frame, int samples); void mp_aframe_set_pts(struct mp_aframe *frame, double pts); int mp_aframe_get_planes(struct mp_aframe *frame); +int mp_aframe_get_total_plane_samples(struct mp_aframe *frame); size_t mp_aframe_get_sstride(struct mp_aframe *frame); void mp_aframe_skip_samples(struct mp_aframe *f, int samples); |