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

libavcodec/acelp_vectors.h

Go to the documentation of this file.
00001 /*
00002  * adaptive and fixed codebook vector operations for ACELP-based codecs
00003  *
00004  * Copyright (c) 2008 Vladimir Voroshilov
00005  *
00006  * This file is part of FFmpeg.
00007  *
00008  * FFmpeg is free software; you can redistribute it and/or
00009  * modify it under the terms of the GNU Lesser General Public
00010  * License as published by the Free Software Foundation; either
00011  * version 2.1 of the License, or (at your option) any later version.
00012  *
00013  * FFmpeg is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016  * Lesser General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU Lesser General Public
00019  * License along with FFmpeg; if not, write to the Free Software
00020  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
00021  */
00022 
00023 #ifndef AVCODEC_ACELP_VECTORS_H
00024 #define AVCODEC_ACELP_VECTORS_H
00025 
00026 #include <stdint.h>
00027 
00042 extern const uint8_t ff_fc_4pulses_8bits_tracks_13[16];
00043 
00055 extern const uint8_t ff_fc_4pulses_8bits_track_4[32];
00056 
00071 extern const uint8_t ff_fc_2pulses_9bits_track1[16];
00072 extern const uint8_t ff_fc_2pulses_9bits_track1_gray[16];
00073 
00103 extern const uint8_t ff_fc_2pulses_9bits_track2_gray[32];
00104 
00119 void ff_acelp_fc_pulse_per_track(
00120         int16_t* fc_v,
00121         const uint8_t *tab1,
00122         const uint8_t *tab2,
00123         int pulse_indexes,
00124         int pulse_signs,
00125         int pulse_count,
00126         int bits);
00127 
00143 void ff_acelp_weighted_vector_sum(
00144         int16_t* out,
00145         const int16_t *in_a,
00146         const int16_t *in_b,
00147         int16_t weight_coeff_a,
00148         int16_t weight_coeff_b,
00149         int16_t rounder,
00150         int shift,
00151         int length);
00152 
00153 #endif /* AVCODEC_ACELP_VECTORS_H */

Generated on Tue Nov 4 2014 12:59:21 for ffmpeg by  doxygen 1.7.1