summaryrefslogtreecommitdiffstats
path: root/libaf/af_format.c
Commit message (Collapse)AuthorAgeFilesLines
* Error out when invalid format is specifiedreimar2005-05-011-0/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15312 b3059339-0415-0410-9bf9-f77b7e298cf2
* 100l for me, lrintf is better. now fixed so it should be prototyped, and ↵rfelker2005-02-241-12/+23
| | | | | | should work even if there is no prototype git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14792 b3059339-0415-0410-9bf9-f77b7e298cf2
* finally the dreaded white-noise-with-floats bug is fixed!!!!rfelker2005-02-221-16/+8
| | | | | | | | | | | | | | the problem is that lrintf was not prototyped on some systems, but it's easier and faster just not to use it at all. looks like the cola goes to our friends the glibc developers for forgetting to put lrintf in math.h in some versions. :))) i'm sure there are other broken libcs too though. also fixed a minor bug in the int->float conversion where the range for float samples was exceeded... git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14759 b3059339-0415-0410-9bf9-f77b7e298cf2
* move the format related stuff to format.calex2005-02-211-201/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14749 b3059339-0415-0410-9bf9-f77b7e298cf2
* confusing mixture of typecasts and casted variable, removed typecastsreimar2005-02-171-10/+10
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14718 b3059339-0415-0410-9bf9-f77b7e298cf2
* always cancel down fractions (frac_t) to avoid overflows and playbackreimar2005-01-081-0/+1
| | | | | | | | problems (e.g. when using resample and equalizer filters together, see http://mplayerhq.hu/pipermail/mplayer-users/2004-December/050058.html) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14434 b3059339-0415-0410-9bf9-f77b7e298cf2
* af_fmt2str fixes (remove trailing space, call with size of buffer, not size-1)reimar2005-01-061-10/+13
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14400 b3059339-0415-0410-9bf9-f77b7e298cf2
* af_bits2fmt and af_str2fmt_short, also removed the extra FORMAT_BPS control ↵alex2005-01-031-36/+59
| | | | | | in format.c git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14336 b3059339-0415-0410-9bf9-f77b7e298cf2
* accelerated conversionsalex2004-12-291-6/+98
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14273 b3059339-0415-0410-9bf9-f77b7e298cf2
* af_fmt2str_shortalex2004-12-281-0/+33
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14264 b3059339-0415-0410-9bf9-f77b7e298cf2
* 100l use right mask type when checking for input formatrtognimp2004-12-281-9/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14262 b3059339-0415-0410-9bf9-f77b7e298cf2
* ensure af_fmt2str always return a 0 terminated stringreimar2004-12-271-0/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14257 b3059339-0415-0410-9bf9-f77b7e298cf2
* removing AFMT_ dependancyalex2004-12-271-12/+35
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14246 b3059339-0415-0410-9bf9-f77b7e298cf2
* declare check_format and check_bps static, they are used nowhere else.reimar2004-11-201-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13990 b3059339-0415-0410-9bf9-f77b7e298cf2
* using bswap.h for endianness conversionreimar2004-05-181-9/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12487 b3059339-0415-0410-9bf9-f77b7e298cf2
* fix endian conversion for (curently unused) case where in buffer != out bufferreimar2004-05-161-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12482 b3059339-0415-0410-9bf9-f77b7e298cf2
* support for 24 bit pcm/wav filesreimar2004-05-161-2/+79
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12479 b3059339-0415-0410-9bf9-f77b7e298cf2
* more stupid craprfelker2004-05-011-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12387 b3059339-0415-0410-9bf9-f77b7e298cf2
* export fmt2str()arpi2003-01-181-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8995 b3059339-0415-0410-9bf9-f77b7e298cf2
* Changes includes:anders2002-12-281-27/+47
| | | | | | | | | | | | | | | | | - Improved runtime control system - 3 New filter panning, compressor/limiter and a noise gate - The compressor/limiter and the noise gate are not yet finished - The panning filter does combined mixing and channel routing and can be used to down-mix from stereo to mono (for example) - Improvements to volume and channel - volume now has a very good soft clipping using sin() - channel can handle generic routing of audio data - Conversion of all filters to handle floating point data - Cleanup of message printing - Fix for the sig 11 bug reported by Denes git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8608 b3059339-0415-0410-9bf9-f77b7e298cf2
* 10landers2002-11-141-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8186 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fixing segfault bug and addnig support for lrintf() in format conversionanders2002-11-131-39/+55
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8181 b3059339-0415-0410-9bf9-f77b7e298cf2
* New features:anders2002-11-121-201/+356
| | | | | | | | | | | | | | | | -- Support for runtime cpu detection -- Stand alone compile of libaf -- Unlimited number of channels (compiletime switch) -- Sample format defined by bit-fields -- New formats: float, A-Law and mu-law -- Format conversion set in human readable format i.e. format=4:us_be to set 32 bit unsigned big endian output -- Format reporting in human readable format -- Volume control has only one parameter for setting the volume i.e. volume=-10.0:1:0:1 to set atenuation = -10dB git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8168 b3059339-0415-0410-9bf9-f77b7e298cf2
* Adding commandline options for filters and fixing stupid bug in cfganders2002-10-311-0/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7999 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix for audio filters on big endian cpus. It's working now on Solaris SPARC &jkeil2002-10-121-4/+12
| | | | | | | x86 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7720 b3059339-0415-0410-9bf9-f77b7e298cf2
* Correcting counters and flagsanders2002-10-111-9/+9
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7712 b3059339-0415-0410-9bf9-f77b7e298cf2
* Adding Support for non-reentrant audio filtersanders2002-10-061-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7616 b3059339-0415-0410-9bf9-f77b7e298cf2
* Adding support for multiple audio streams and removing annoying message from ↵anders2002-10-011-1/+1
| | | | | | resample and format git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7572 b3059339-0415-0410-9bf9-f77b7e298cf2
* Adding new audio output filter layer libafanders2002-10-011-0/+291
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7569 b3059339-0415-0410-9bf9-f77b7e298cf2