libavcodec/g729dec.c File Reference

#include <stdlib.h>
#include <inttypes.h>
#include <limits.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <assert.h>
#include "avcodec.h"
#include "libavutil/avutil.h"
#include "bitstream.h"
#include "g729.h"
#include "lsp.h"
#include "celp_math.h"
#include "acelp_filters.h"
#include "acelp_pitch_delay.h"
#include "acelp_vectors.h"
#include "g729data.h"

Go to the source code of this file.

Data Structures

struct  G729_format_description


#define LSFQ_MIN   40
 minimum quantized LSF value (3.2.4) 0.005 in Q13
#define LSFQ_MAX   25681
 maximum quantized LSF value (3.2.4) 3.135 in Q13
#define LSFQ_DIFF_MIN   321
 minimum LSF distance (3.2.4) 0.0391 in Q13
#define SHARP_MIN   3277
 minimum gain pitch value (3.8, Equation 47) 0.2 in (1.14)
#define SHARP_MAX   13017
 maximum gain pitch value (3.8, Equation 47) (EE) This does not comply with the specification.


static uint16_t g729_random (uint16_t value)
 pseudo random number generator
static int g729_get_parity (uint8_t value)
 Get parity bit of bit 2.
 if (avctx->channels!=1)
 ff_acelp_weighted_vector_sum (fc+pitch_delay_int[i], fc+pitch_delay_int[i], fc, 1<< 14, av_clip(ctx->gain_pitch, SHARP_MIN, SHARP_MAX), 0, 14, ctx->subframe_size-pitch_delay_int[i])
 if (ctx->frame_erasure)

Define Documentation

#define LSFQ_DIFF_MIN   321

minimum LSF distance (3.2.4) 0.0391 in Q13

Definition at line 57 of file g729dec.c.

#define LSFQ_MAX   25681

maximum quantized LSF value (3.2.4) 3.135 in Q13

Definition at line 51 of file g729dec.c.

#define LSFQ_MIN   40

minimum quantized LSF value (3.2.4) 0.005 in Q13

Definition at line 45 of file g729dec.c.

#define SHARP_MAX   13017

maximum gain pitch value (3.8, Equation 47) (EE) This does not comply with the specification.

Specification says about 0.8, which should be 13107 in (1.14), but reference C code uses 13017 (equals to 0.7945) instead of it.

Definition at line 72 of file g729dec.c.

#define SHARP_MIN   3277

minimum gain pitch value (3.8, Equation 47) 0.2 in (1.14)

Definition at line 63 of file g729dec.c.

Function Documentation

ff_acelp_weighted_vector_sum ( fc+  pitch_delay_int[i],
fc+  pitch_delay_int[i],
fc  ,
1<<  14,
av_clip(ctx->gain_pitch, SHARP_MIN, SHARP_MAX)  ,
14  ,
ctx->subframe_size-  pitch_delay_int[i] 

static int g729_get_parity ( uint8_t  value  )  [inline, static]

Get parity bit of bit 2.


Definition at line 96 of file g729dec.c.

static uint16_t g729_random ( uint16_t  value  )  [inline, static]

pseudo random number generator

Definition at line 88 of file g729dec.c.

if ( ctx->  frame_erasure  ) 

Definition at line 117 of file g729dec.c.

if ( avctx->channels!  = 1  ) 

Definition at line 101 of file g729dec.c.

Referenced by ape_decode_value(), ape_read_header(), audio_read_header(), audio_read_packet(), av_encode(), av_ext2dbl(), avcodec_default_reget_buffer(), average_quantized_coeffs(), avs_decode_frame(), blend_subrect(), cavs_decode_frame(), cin_read_packet(), cmv_decode_inter(), compute_pkt_fields(), compute_status(), decode_end(), dv_extract_audio(), dv_inject_audio(), dvbsub_display_end_segment(), dvbsub_parse_page_segment(), dvbsub_parse_region_segment(), dvvideo_init(), ebml_parse_elem(), ff_mjpeg_decode_sos(), ff_vdpau_mpeg_picture_complete(), ff_vdpau_vc1_decode_picture(), ff_xvmc_decode_mb(), ff_xvmc_field_start(), FfmpegFindNextSchroParseUnit(), flashsv_decode_frame(), g726_init(), id3v2_read_ttag(), imc_decode_frame(), imdct_and_windowing(), ipvideo_decode_block_opcode_0x9(), ipvideo_decode_block_opcode_0xA(), ipvideo_decode_frame(), main(), matroska_probe(), mlp_parse(), mm_decode_inter(), motion_search(), mpeg1_encode_sequence_header(), mpeg_mux_init(), mpegps_probe(), mpegts_write_pes(), MPV_common_init(), msrle_decode_8_16_24_32(), mxf_parse_mpeg2_frame(), mxf_read_header(), nut_probe(), nut_read_seek(), ogg_read_page(), paint_mouse_pointer(), qdm2_decode(), qdm2_fft_tone_synthesizer(), qtrle_decode_1bpp(), rpza_decode_stream(), rtsp_read_packet(), shorten_decode_frame(), smc_decode_stream(), svq3_decode_frame(), svq3_mc_dir(), sws_getContext(), tgv_decode_inter(), tm2_decode_blocks(), vc1_decode_b_mb(), video_image_display(), vorbis_parse_setup_hdr_codebooks(), vp3_decode_frame(), vp56_init(), wsvqa_read_header(), and X264_init().

Generated on Fri Oct 26 02:35:43 2012 for FFmpeg by  doxygen 1.5.8