summaryrefslogtreecommitdiff
path: root/libavcodec/mlpdsp.h
diff options
context:
space:
mode:
authorBen Avison <bavison@riscosopen.org>2014-03-20 18:59:15 +0000
committerMichael Niedermayer <michaelni@gmx.at>2014-03-26 20:41:48 +0100
commit3f4e73afe92743e96a633aa5b80416e4714e4783 (patch)
tree8c8dacd0c6830a5d99b2a8abe24a13e033bd0ef5 /libavcodec/mlpdsp.h
parentf38af0143c1849e8c8cea8d3374b4a554763eeee (diff)
downloadffmpeg-3f4e73afe92743e96a633aa5b80416e4714e4783.tar.gz
truehd: break out part of rematrix_channels into platform-specific callback.
Verified with profiling that this doesn't have a measurable effect upon overall performance. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mlpdsp.h')
-rw-r--r--libavcodec/mlpdsp.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/libavcodec/mlpdsp.h b/libavcodec/mlpdsp.h
index 129bcfe7fb..f98e9be41d 100644
--- a/libavcodec/mlpdsp.h
+++ b/libavcodec/mlpdsp.h
@@ -24,11 +24,34 @@
#include <stdint.h>
+void ff_mlp_rematrix_channel(int32_t *samples,
+ const int32_t *coeffs,
+ const uint8_t *bypassed_lsbs,
+ const int8_t *noise_buffer,
+ int index,
+ unsigned int dest_ch,
+ uint16_t blockpos,
+ unsigned int maxchan,
+ int matrix_noise_shift,
+ int access_unit_size_pow2,
+ int32_t mask);
+
typedef struct MLPDSPContext {
void (*mlp_filter_channel)(int32_t *state, const int32_t *coeff,
int firorder, int iirorder,
unsigned int filter_shift, int32_t mask,
int blocksize, int32_t *sample_buffer);
+ void (*mlp_rematrix_channel)(int32_t *samples,
+ const int32_t *coeffs,
+ const uint8_t *bypassed_lsbs,
+ const int8_t *noise_buffer,
+ int index,
+ unsigned int dest_ch,
+ uint16_t blockpos,
+ unsigned int maxchan,
+ int matrix_noise_shift,
+ int access_unit_size_pow2,
+ int32_t mask);
} MLPDSPContext;
void ff_mlpdsp_init(MLPDSPContext *c);