X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fcodecutils.cpp;fp=source%2Fcodecutils.cpp;h=6afbf95850356e61e3c4738e4029f3d1921f18f1;hb=c88a239ff3b218ad0226e8c53356350ccc1f7014;hp=0000000000000000000000000000000000000000;hpb=f47bc86e6ce900c5323e593db003c93110538268;p=libs%2Fcore.git diff --git a/source/codecutils.cpp b/source/codecutils.cpp new file mode 100644 index 0000000..6afbf95 --- /dev/null +++ b/source/codecutils.cpp @@ -0,0 +1,27 @@ +/* $Id$ + +This file is part of libmspstrings +Copyright © 2006-2007 Mikko Rasa +Distributed under the LGPL +*/ + +#include "codecutils.h" + +namespace Msp { +namespace Codecs { + +int transform_mapping_or_direct(const int *mapping, unsigned map_size, int ch, bool reverse) +{ + for(unsigned i=0; i