On 19/03/14 2:24 PM, Ben Avison wrote:
> diff --git a/libavcodec/mlpdsp.h b/libavcodec/mlpdsp.h
> index bd864d9..7b7640e 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,
> + int32_t (*sample_buffer)[MAX_CHANNELS],
> + void *data,
> + uint16_t blockpos,
> + uint8_t max_matrix_channel,
> + int is32,
> + uint8_t *ch_assign,
> + int8_t *output_shift);
> +
> 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 max_matrix_channel,
> + int is32,
> + uint8_t *ch_assign,
> + int8_t *output_shift))(int32_t,
> int32_t (*)[], void *, uint16_t, uint8_t, int, uint8_t*, int8_t *);
> + int32_t (*mlp_pack_output)(int32_t lossless_check_data,
> + int32_t (*sample_buffer)[MAX_CHANNELS],
> + void *data,
> + uint16_t blockpos,
> + uint8_t max_matrix_channel,
> + int is32,
> + uint8_t *ch_assign,
> + int8_t *output_shift);
> } MLPDSPContext;
>
> void ff_mlpdsp_init(MLPDSPContext *c);
>
Please put pointers first if possible, like you did for mlp_rematrix_channel.
Something like
+ int32_t (*mlp_pack_output)(int32_t (*sample_buffer)[MAX_CHANNELS],
+ void *data,
+ uint8_t *ch_assign,
+ int8_t *output_shift,
+ int32_t lossless_check_data,
+ uint16_t blockpos,
+ uint8_t max_matrix_channel,
+ int is32);
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel