summaryrefslogtreecommitdiff
path: root/libavcodec/mlpdsp.h
diff options
context:
space:
mode:
authorBen Avison <bavison@riscosopen.org>2014-03-20 18:59:17 +0000
committerMichael Niedermayer <michaelni@gmx.at>2014-03-26 20:56:38 +0100
commitb01a2562ae3ff50198ba189c878023ee4ac34c72 (patch)
tree1fbe39bb00cc22fe1bda2bbb56a3524cb03b5ef4 /libavcodec/mlpdsp.h
parent44dc373d4a7ef484387fa3646b4e7513d5595bd5 (diff)
downloadffmpeg-b01a2562ae3ff50198ba189c878023ee4ac34c72.tar.gz
truehd: break out part of output_data 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.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/libavcodec/mlpdsp.h b/libavcodec/mlpdsp.h
index f98e9be41d..a0edeb7762 100644
--- a/libavcodec/mlpdsp.h
+++ b/libavcodec/mlpdsp.h
@@ -23,6 +23,7 @@
#define AVCODEC_MLPDSP_H
#include <stdint.h>
+#include "mlp.h"
void ff_mlp_rematrix_channel(int32_t *samples,
const int32_t *coeffs,
@@ -36,6 +37,15 @@ void ff_mlp_rematrix_channel(int32_t *samples,
int access_unit_size_pow2,
int32_t mask);
+int32_t ff_mlp_pack_output(int32_t lossless_check_data,
+ uint16_t blockpos,
+ int32_t (*sample_buffer)[MAX_CHANNELS],
+ void *data,
+ uint8_t *ch_assign,
+ int8_t *output_shift,
+ uint8_t max_matrix_channel,
+ int is32);
+
typedef struct MLPDSPContext {
void (*mlp_filter_channel)(int32_t *state, const int32_t *coeff,
int firorder, int iirorder,
@@ -52,6 +62,18 @@ typedef struct MLPDSPContext {
int matrix_noise_shift,
int access_unit_size_pow2,
int32_t mask);
+ int32_t (*(*mlp_select_pack_output)(uint8_t *ch_assign,
+ int8_t *output_shift,
+ uint8_t max_matrix_channel,
+ int is32))(int32_t, uint16_t, int32_t (*)[], void *, uint8_t*, int8_t *, uint8_t, int);
+ int32_t (*mlp_pack_output)(int32_t lossless_check_data,
+ uint16_t blockpos,
+ int32_t (*sample_buffer)[MAX_CHANNELS],
+ void *data,
+ uint8_t *ch_assign,
+ int8_t *output_shift,
+ uint8_t max_matrix_channel,
+ int is32);
} MLPDSPContext;
void ff_mlpdsp_init(MLPDSPContext *c);