/* * Copyright (C) 2004 Steve Harris * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * $Id: interleavetest.c $ */ #include #include #include #include #include "gdither.h" #define SIZE 20 #define IL 5 int main(int argc, char *argv[]) { float in[SIZE]; int16_t out16[SIZE * IL]; int32_t out32[SIZE * IL]; int i, j; GDither d16 = gdither_new(GDitherNone, IL, GDither16bit, 16); GDither d32 = gdither_new(GDitherNone, IL, GDither32bit, 16); printf("checking interleaving\n"); for (j=0; j