00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef AVCODEC_FLACDSP_H
00020 #define AVCODEC_FLACDSP_H
00021
00022 #include <stdint.h>
00023 #include "libavutil/samplefmt.h"
00024
00025 typedef struct FLACDSPContext {
00026 void (*decorrelate[4])(uint8_t **out, int32_t **in, int channels,
00027 int len, int shift);
00028 void (*lpc)(int32_t *samples, const int coeffs[32], int order,
00029 int qlevel, int len);
00030 void (*lpc_encode)(int32_t *res, const int32_t *smp, int len, int order,
00031 const int32_t *coefs, int shift);
00032 } FLACDSPContext;
00033
00034 void ff_flacdsp_init(FLACDSPContext *c, enum AVSampleFormat fmt, int bps);
00035 void ff_flacdsp_init_arm(FLACDSPContext *c, enum AVSampleFormat fmt, int bps);
00036
00037 #endif