Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
vdecode.c
Package: celp32c.rar [view]
Upload User: tsjrly
Upload Date: 2021-02-19
Package Size: 107k
Code Size: 1k
Category:
Voice Compress
Development Platform:
C/C++
- /**************************************************************************
- *
- * ROUTINE
- * vdecode
- *
- * FUNCTION
- *
- * create excitation vector from code book index and decoded gain
- *
- * SYNOPSIS
- * subroutine vdecode(decodedgain, l, vdecoded)
- *
- * formal
- *
- * data I/O
- * name type type function
- * -------------------------------------------------------------------
- * decodedgain r i decoded gain value
- * l i i pitch&code frame length
- * vdecoded r o decoded excitation array
- *
- * external
- * data I/O
- * name type type function
- * -------------------------------------------------------------------
- * x[] float i
- *
- ***************************************************************************
- *
- * CALLED BY
- *
- * celp
- *
- * CALLS
- *
- *
- *
- **************************************************************************/
- #include "ccsub.h"
- extern int cbindex, frame;
- extern float x[MAXCODE];
- vdecode(decodedgain, l, vdecoded)
- int l;
- float decodedgain, vdecoded[];
- {
- int i, codeword;
- /* *copy selected vector to excitation array */
- codeword = 2 * (MAXNCSIZE - cbindex);
- if (codeword < 0)
- {
- printf("vdecode: cbindex > MAXNCSIZE at frame %dn", frame);
- codeword = 0;
- }
- for (i = 0; i < l; i++)
- vdecoded[i] = x[i + codeword] * decodedgain;
- }