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
pack.c
Package: celp_3.2a.tar.gz [view]
Upload User: szhypcb168
Upload Date: 2007-01-06
Package Size: 2187k
Code Size: 1k
Category:
Voice Compress
Development Platform:
Unix_Linux
- /**************************************************************************
- *
- * ROUTINE
- * pack (pack tau into binaru bit stream)
- *
- * FUNCTION
- * Input decimal value and number of binary bits,
- * program returns binary value packed in array.
- *
- * SYNOPSIS
- * subroutine pack(value, bits, array, pointer)
- *
- * formal
- *
- * data I/O
- * name type type function
- * -------------------------------------------------------------------
- * value int i decimal value
- * bits int i number of bits to convert to
- * (ie. 01001 for 5 bits, 1st 0 incl.)
- * array short o array to which one bit is assigned
- * for binary representation
- * pointer int * i/o points to appropriate element in
- * array
- *
- ***************************************************************************
- *
- * DESCRIPTION
- *
- * This program packs a decimal value into a binary value
- * to be decoded by unpack.c in CELP synthesizer sections.
- *
- ***************************************************************************
- *
- * CALLED BY
- *
- * celp
- *
- * CALLS
- *
- *
- *
- **************************************************************************/
- pack(value, bits, array, pointer)
- int value, bits, *pointer;
- short array[];
- {
- int i;
- for (i = 0; i < bits; (*pointer)++, i++)
- array[*pointer] = (value & 1 << i) >> i;
- }