summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/resampler.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix checking for NULL after usageAndy Shevchenko2009-08-281-2/+1
| | | | | | The pa_xmalloc calls oom() in case of NULL pointer returned by malloc() on one hand and dereferencing of pointer is happen early than actual check on other hand. Thus, just remove useless checks.
* remap: move remapping code in separate fileWim Taymans2009-08-201-152/+3
| | | | | Move the remapping code into a separate file. Have functions to install custom init functions that can install optimized versions, when they want.
* resamples; refactor the channel remapping bitsWim Taymans2009-08-201-81/+105
| | | | | | Move the channel remapping bits into a separate structure. We'll make this structure global so that optimized versions can use it to perform the channel remapping.
* whitespace fixesWim Taymans2009-08-201-21/+44
|
* resampler: avoid some multiplies when we canWim Taymans2009-08-201-2/+7
|
* resampler: fix identity checkWim Taymans2009-08-201-10/+6
| | | | | | Fix the identity matrix check for mono to stereo. Help the compiler generate better code for the C implementation of the channel remapping code.
* resample: fix countersWim Taymans2009-08-201-4/+4
|
* resample: refactor the channel remapping a littleWim Taymans2009-08-201-88/+109
| | | | | | | | Factor out the channel remap matrix code into a separate function. Keep a pointer to the channel remapping function so we can install custom functions. Catch the common mono->stereo remapping case and install a custom, more optimized function.
* resampler: cache integer channel_mapWim Taymans2009-08-201-33/+33
| | | | | Calculate and cache an integer version of the channel map so that we don't have to regenerate it when dealing with s16 samples.
* Get rid of liboilWim Taymans2009-08-201-32/+37
| | | | | | | Get rid of the liboil dependency and reimplement the liboil functions with an equivalent C implementation. Note that most of these functions are deprecated in liboil and that none of them had any optimisations. We can further specialize our handrolled versions for some extra speedups.
* resampler: round up when estimating input/output sizesLennart Poettering2009-08-141-2/+6
|
* Use LGPL 2.1 on all files previously using LGPL 2Colin Guthrie2009-03-031-1/+1
|
* simplify code a bit by using pa_sample_size_of_format()Lennart Poettering2009-02-041-11/+1
|
* allow sample spec/channel map to be queried for pa_resampler objectsLennart Poettering2009-01-231-0/+24
|
* Use #ifdef to avoid warning about undefined macro.Diego E. 'Flameeyes' Pettenò2009-01-221-1/+1
|
* Add support for 24bit samples encoded in the LSB of 32 bit wordsLennart Poettering2009-01-161-1/+3
|
* add support for 24bit packed samplesLennart Poettering2009-01-161-1/+3
|
* Don't mix front-center into rear channelsLennart Poettering2008-12-171-3/+93
| | | | | | | | If there's a center channel on input that is not available on output make sure we mix front-center only into front-left/right and rear-center into rear-left/right. Closes #400
* make sure peaks resampler also works for very short input buffersLennart Poettering2008-09-091-11/+20
|
* Add new option to disable remixing from/to LFE and set it to on by defaultLennart Poettering2008-09-051-2/+6
|
* remove a few more gcc warningsLennart Poettering2008-08-301-1/+1
|
* add a few missing castsLennart Poettering2008-08-201-2/+2
|
* add a few more gcc warning flags and fix quite a few problems found by doing soLennart Poettering2008-08-191-39/+39
|
* get rid of our internal copy of the speex resampler. Instead, link against a ↵Lennart Poettering2008-06-281-34/+15
| | | | system-installes libspeexdsp
* get rid of svn $ keywordsLennart Poettering2008-06-181-2/+0
|
* fix peak detection pseudo resamplerLennart Poettering2008-05-171-6/+8
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2453 fefdeb5f-60dc-0310-8127-8f9354f1896f
* merge glitch-free branch back into trunkLennart Poettering2008-05-151-16/+136
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2445 fefdeb5f-60dc-0310-8127-8f9354f1896f
* deal with a possibly failing pa_channel_map_init_auto() correctlyLennart Poettering2008-02-131-4/+4
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2105 fefdeb5f-60dc-0310-8127-8f9354f1896f
* add API for resetting allocated resamplersLennart Poettering2007-12-231-7/+31
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2088 fefdeb5f-60dc-0310-8127-8f9354f1896f
* add a simple fully-automatic fully-linearupmixer/downmixer and enable it by ↵Lennart Poettering2007-11-111-63/+505
| | | | | | default git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2044 fefdeb5f-60dc-0310-8127-8f9354f1896f
* add support for 32bit integer samplesLennart Poettering2007-11-091-1/+3
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2037 fefdeb5f-60dc-0310-8127-8f9354f1896f
* make speex-float-3 the default resamplerLennart Poettering2007-10-291-3/+3
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1973 fefdeb5f-60dc-0310-8127-8f9354f1896f
* merge 'lennart' branch back into trunk.Lennart Poettering2007-10-281-347/+752
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1971 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Add copyright notices to all relevant files. (based on svn log)Pierre Ossman2007-02-131-0/+2
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1426 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Huge trailing whitespace cleanup. Let's keep the tree pure from here on,Pierre Ossman2007-01-041-52/+52
| | | | | | | mmmkay? git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1418 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Revert r1404 and keep it on a development branch until it is fully tested.Pierre Ossman2006-11-061-128/+119
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1409 fefdeb5f-60dc-0310-8127-8f9354f1896f
* rework memory block management to be thread-safe and mostly lock-free.Lennart Poettering2006-09-261-119/+128
| | | | | | | | | | | | | | | | | | | | | pa_memblock is now an opaque structure. Access to its fields is now done through various accessor functions in a thread-safe manner. pa_memblock_acquire() and pa_memblock_release() are now used to access the attached audio data. Why? To allow safe manipulation of the memory pointer maintained by the memory block. Internally _acquire() and _release() maintain a reference counter. Please do not confuse this reference counter whith the one maintained by pa_memblock_ref()/_unref()! As a side effect this patch removes all direct usages of AO_t and replaces it with pa_atomic_xxx based code. This stuff needs some serious testing love. Especially if threads are actively used. git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1404 fefdeb5f-60dc-0310-8127-8f9354f1896f
* rework the resample to allocate temporary memory with pa_memblock_new() ↵Lennart Poettering2006-08-191-25/+58
| | | | | | instead of pa_xrealloc() git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1291 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Rework memory management to allow shared memory data transfer. The central ideaLennart Poettering2006-08-181-10/+11
| | | | | | | | | | | | | | | is to allocate all audio memory blocks from a per-process memory pool which is available as read-only SHM segment to other local processes. Then, instead of writing the actual audio data to the socket just write references to this shared memory pool. To work optimally all memory blocks should now be of type PA_MEMBLOCK_POOL or PA_MEMBLOCK_POOL_EXTERNAL. The function pa_memblock_new() now generates memory blocks of this type by default. git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1266 fefdeb5f-60dc-0310-8127-8f9354f1896f
* big s/polyp/pulse/gLennart Poettering2006-06-191-0/+618
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1033 fefdeb5f-60dc-0310-8127-8f9354f1896f