• Main Page
  • Related Pages
  • Modules
  • Data Structures
  • Files
  • Examples
  • File List
  • Globals

libavcodec/mpegaudiodsp.h

Go to the documentation of this file.
00001 /*
00002  * This file is part of Libav.
00003  *
00004  * Libav is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU Lesser General Public
00006  * License as published by the Free Software Foundation; either
00007  * version 2.1 of the License, or (at your option) any later version.
00008  *
00009  * Libav is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  * Lesser General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU Lesser General Public
00015  * License along with Libav; if not, write to the Free Software
00016  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
00017  */
00018 
00019 #ifndef AVCODEC_MPEGAUDIODSP_H
00020 #define AVCODEC_MPEGAUDIODSP_H
00021 
00022 #include <stdint.h>
00023 
00024 typedef struct MPADSPContext {
00025     void (*apply_window_float)(float *synth_buf, float *window,
00026                                int *dither_state, float *samples, int incr);
00027     void (*apply_window_fixed)(int32_t *synth_buf, int32_t *window,
00028                                int *dither_state, int16_t *samples, int incr);
00029     void (*dct32_float)(float *dst, const float *src);
00030     void (*dct32_fixed)(int *dst, const int *src);
00031 } MPADSPContext;
00032 
00033 void ff_mpadsp_init(MPADSPContext *s);
00034 
00035 extern int32_t ff_mpa_synth_window_fixed[];
00036 extern float   ff_mpa_synth_window_float[];
00037 
00038 void ff_mpa_synth_filter_fixed(MPADSPContext *s,
00039                                int32_t *synth_buf_ptr, int *synth_buf_offset,
00040                                int32_t *window, int *dither_state,
00041                                int16_t *samples, int incr,
00042                                int32_t *sb_samples);
00043 
00044 void ff_mpa_synth_filter_float(MPADSPContext *s,
00045                                float *synth_buf_ptr, int *synth_buf_offset,
00046                                float *window, int *dither_state,
00047                                float *samples, int incr,
00048                                float *sb_samples);
00049 
00050 void ff_mpadsp_init_arm(MPADSPContext *s);
00051 void ff_mpadsp_init_mmx(MPADSPContext *s);
00052 void ff_mpadsp_init_altivec(MPADSPContext *s);
00053 
00054 void ff_mpa_synth_init_float(float *window);
00055 void ff_mpa_synth_init_fixed(int32_t *window);
00056 
00057 void ff_mpadsp_apply_window_float(float *synth_buf, float *window,
00058                                   int *dither_state, float *samples,
00059                                   int incr);
00060 void ff_mpadsp_apply_window_fixed(int32_t *synth_buf, int32_t *window,
00061                                   int *dither_state, int16_t *samples,
00062                                   int incr);
00063 
00064 #endif /* AVCODEC_MPEGAUDIODSP_H */

Generated on Wed Apr 11 2012 07:31:34 for FFmpeg by  doxygen 1.7.1