From 6dc124962527556512b6b18fbf23f9b6af9f331c Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 28 Jul 2012 18:00:33 +0200 Subject: TOOLS: remove useless crap Most of the scripts in TOOLS seem entirely useless. Remove them. There were about 3 types of scripts: - apparent developer tools (like file format dumpers, benchmarks) => I doubt any mplayer developer still alive even uses these - helpers for encoding or ripping stuff => mencoder is gone, at least from this version of mplayer - helpers meant for users (launching mplayer in weird ways, etc.) => just no, it will cause you more pain than gain So no, there is nothing useful. Under the scripts not deleted, these are needed for building mplayer: file2string.py matroska.py vdpau_functions.py These might have _some_ use (but still questionable): binary_codecs.sh checktree.sh --- TOOLS/alaw-gen.c | 68 -------------------------------------------------------- 1 file changed, 68 deletions(-) delete mode 100644 TOOLS/alaw-gen.c (limited to 'TOOLS/alaw-gen.c') diff --git a/TOOLS/alaw-gen.c b/TOOLS/alaw-gen.c deleted file mode 100644 index 92769015d1..0000000000 --- a/TOOLS/alaw-gen.c +++ /dev/null @@ -1,68 +0,0 @@ -/* - * 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. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - */ - -#include -#include - -// sox -t raw -A -r 8000 -b alaw.alaw -t sw alaw.out - -int main(void){ -int i; -FILE *f; - -f=fopen("alaw.dat","wb"); -for(i=0;i<256;i++) fwrite(&i,1,1,f); -fclose(f); - -system("sox -t raw -A -r 8000 -b alaw.dat -t sw alaw.out"); - -printf("// Generated by TOOLS/alaw-gen.c\n\n"); - -printf("#ifndef MPLAYER_ALAW_H\n"); -printf("#define MPLAYER_ALAW_H\n"); - -printf("\nconst short alaw2short[]={\n"); - -f=fopen("alaw.out","rb"); -for(i=0;i<256;i++){ - signed short x; - fread(&x,2,1,f); - printf("%7d",x); - if(i!=255) putchar(','); - if((i&7)==7) printf("\n"); -} -fclose(f); -printf("};\n"); - -system("sox -t raw -U -r 8000 -b alaw.dat -t sw alaw.out"); - -printf("\nconst short ulaw2short[]={\n"); - -f=fopen("alaw.out","rb"); -for(i=0;i<256;i++){ - signed short x; - fread(&x,2,1,f); - printf("%7d",x); - if(i!=255) putchar(','); - if((i&7)==7) printf("\n"); -} -fclose(f); -printf("};\n\n"); - -printf("#endif /* MPLAYER_ALAW_H */\n"); - -return 0; -} -- cgit v1.2.3