summaryrefslogtreecommitdiffstats
path: root/libavcodec/alacdsp.h
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2015-10-04 14:09:05 -0300
committerJames Almer <jamrial@gmail.com>2015-10-04 14:10:05 -0300
commitb70566d6ca7b7ae60ec1db01b50d461672c8b03f (patch)
treeec3a706901d86735cc323bbc7aef97d0fbe60128 /libavcodec/alacdsp.h
parent2cbaa078d18a8cf0ca28e5bb2ee9398a3e08b7b6 (diff)
downloadffmpeg-streaming-b70566d6ca7b7ae60ec1db01b50d461672c8b03f.zip
ffmpeg-streaming-b70566d6ca7b7ae60ec1db01b50d461672c8b03f.tar.gz
avcodec/alacdec: split off decorrelate_stereo and append_extra_bits as alacdsp
Reviewed-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/alacdsp.h')
-rw-r--r--libavcodec/alacdsp.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/libavcodec/alacdsp.h b/libavcodec/alacdsp.h
new file mode 100644
index 0000000..a7acdbb
--- /dev/null
+++ b/libavcodec/alacdsp.h
@@ -0,0 +1,33 @@
+/*
+ * This file is part of FFmpeg.
+ *
+ * FFmpeg is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * FFmpeg is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with FFmpeg; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#ifndef AVCODEC_ALACDSP_H
+#define AVCODEC_ALACDSP_H
+
+#include <stdint.h>
+
+typedef struct ALACDSPContext {
+ void (*decorrelate_stereo)(int32_t *buffer[2], int nb_samples,
+ int decorr_shift, int decorr_left_weight);
+ void (*append_extra_bits[2])(int32_t *buffer[2], int32_t *extra_bits_buffer[2],
+ int extra_bits, int channels, int nb_samples);
+} ALACDSPContext;
+
+void ff_alacdsp_init(ALACDSPContext *c);
+
+#endif /* AVCODEC_ALACDSP_H */
OpenPOWER on IntegriCloud