diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2011-07-01 18:54:41 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2011-07-01 18:54:41 +0000 |
| commit | b8b7804fcc229e9c34e18dc3ec6dfafd2e3485b0 (patch) | |
| tree | 1a63bd6647225ae445adf01dceb8271632723a83 /src/ui/inlines.h | |
| parent | bb31a704825263be94b5528a2e362898af109cf9 (diff) | |
| download | qmmp-b8b7804fcc229e9c34e18dc3ec6dfafd2e3485b0.tar.gz qmmp-b8b7804fcc229e9c34e18dc3ec6dfafd2e3485b0.tar.bz2 qmmp-b8b7804fcc229e9c34e18dc3ec6dfafd2e3485b0.zip | |
moved skinned ui to separate plugin
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@2252 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/ui/inlines.h')
| -rw-r--r-- | src/ui/inlines.h | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/src/ui/inlines.h b/src/ui/inlines.h deleted file mode 100644 index 39b81bd57..000000000 --- a/src/ui/inlines.h +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) 2000-2001 Brad Hughes <bhughes@trolltech.com> -// -// Use, modification and distribution is allowed without limitation, -// warranty, or liability of any kind. -// - -#ifndef INLINES_H -#define INLINES_H - -#include "fft.h" - -// *fast* convenience functions -static inline void calc_freq(short* dest, short *src) -{ - static fft_state *state = NULL; - float tmp_out[257]; - int i; - - if (!state) - state = fft_init(); - - fft_perform(src, tmp_out, state); - - for (i = 0; i < 256; i++) - dest[i] = ((int) sqrt(tmp_out[i + 1])) >> 8; -} - -static inline void stereo16_from_multichannel(register short *l, - register short *r, - register short *s, - long cnt, int chan) -{ - while (cnt > 0) - { - l[0] = s[0]; - r[0] = s[1]; - s += chan; - l++; - r++; - cnt--; - } -} - -static inline void mono16_from_multichannel(register short *l, - register short *s, - long cnt, int chan) -{ - while (cnt > 0) - { - l[0] = s[0]; - s += chan; - l++; - cnt--; - } -} - -#endif // INLINES_H |
