diff options
author | Ben Avison <bavison@riscosopen.org> | 2014-03-20 18:58:39 +0000 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2014-03-26 19:54:29 +0200 |
commit | b9eb03416d93a5c4ece27ffef5e6e11c81bec6fa (patch) | |
tree | 2e4943d60c142029b2e5894238bf4e618355dbca /libavcodec/mlpdsp.h | |
parent | fcf5fc444522d24caa9907225802817ae788f511 (diff) | |
download | ffmpeg-b9eb03416d93a5c4ece27ffef5e6e11c81bec6fa.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: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavcodec/mlpdsp.h')
-rw-r--r-- | libavcodec/mlpdsp.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/libavcodec/mlpdsp.h b/libavcodec/mlpdsp.h index bd864d9e05..acd48fc663 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); |