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
resample.c
Package: tcpmp.rar [view]
Upload User: wstnjxml
Upload Date: 2014-04-03
Package Size: 7248k
Code Size: 1k
Category:
Windows CE
Development Platform:
C/C++
- // a52_resample_init should find the requested converter (from type flags ->
- // given number of channels) and set up some function pointers...
- // a52_resample() should do the conversion.
- #include "a52.h"
- #include "mm_accel.h"
- #include "config.h"
- #include "../libpostproc/mangle.h"
- int (* a52_resample) (float * _f, int16_t * s16)=NULL;
- #include "resample_c.c"
- #ifdef ARCH_X86
- #include "resample_mmx.c"
- #endif
- void* a52_resample_init(uint32_t mm_accel,int flags,int chans){
- void* tmp;
- #ifdef ARCH_X86
- if(mm_accel&MM_ACCEL_X86_MMX){
- tmp=a52_resample_MMX(flags,chans);
- if(tmp){
- if(a52_resample==NULL) fprintf(stderr, "Using MMX optimized resamplern");
- a52_resample=tmp;
- return tmp;
- }
- }
- #endif
- tmp=a52_resample_C(flags,chans);
- if(tmp){
- if(a52_resample==NULL) fprintf(stderr, "No accelerated resampler foundn");
- a52_resample=tmp;
- return tmp;
- }
- fprintf(stderr, "Unimplemented resampler for mode 0x%X -> %d channels conversion - Contact MPlayer developers!n", flags, chans);
- return NULL;
- }