summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-04-28 11:52:56 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-04-28 11:52:56 +0000
commita0016473017b5f17df5756ddeaa2eca3f24e3d0a (patch)
treebd336c7661925207f19aea50f575e4d6ac69453d
parentdf22d5fd5dde9d1f75f0ba41987e833996509ba6 (diff)
downloadmpv-a0016473017b5f17df5756ddeaa2eca3f24e3d0a.tar.bz2
mpv-a0016473017b5f17df5756ddeaa2eca3f24e3d0a.tar.xz
Remove obsolete and non-working test program.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26558 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--loader/Makefile3
-rw-r--r--loader/dshow/test.c71
-rw-r--r--loader/dshow/test.divxbin9294 -> 0 bytes
3 files changed, 0 insertions, 74 deletions
diff --git a/loader/Makefile b/loader/Makefile
index 3765c8c6ad..648c356030 100644
--- a/loader/Makefile
+++ b/loader/Makefile
@@ -39,9 +39,6 @@ win32.o: CFLAGS += $(CFLAG_STACKREALIGN)
TEST_OBJS = $(LIBNAME_COMMON) ../cpudetect.o ../mp_msg.o ../mp_fifo.o ../osdep/libosdep.a
TEST_LDFLAGS = -ltermcap -ldl -lm -lpthread -g
-dshow/test: dshow/test.c ../get_path.o $(TEST_OBJS)
- $(CC) $(CFLAGS) -o $@ $^ $(TEST_LDFLAGS) -lstdc++
-
qtx/qtxload: qtx/qtxload.c $(TEST_OBJS)
$(CC) -o $@ $^ $(TEST_LDFLAGS)
diff --git a/loader/dshow/test.c b/loader/dshow/test.c
deleted file mode 100644
index 1b9818886e..0000000000
--- a/loader/dshow/test.c
+++ /dev/null
@@ -1,71 +0,0 @@
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
-#include "wine/mmreg.h"
-#include "wine/vfw.h"
-
-#include "formats.h"
-#include "com.h"
-
-#include "DS_VideoDec.h"
-
-int main(int argc,char* argv[]){
- FILE *f;
- BITMAPINFOHEADER bih;
- int len;
- char *src;
- char *dst=0;
- GUID CLSID_DivxDecompressorCF={0x82CCd3E0, 0xF71A, 0x11D0,
- { 0x9f, 0xe5, 0x00, 0x60, 0x97, 0x78, 0xaa, 0xaa}};
-
- f=fopen("test.divx","rb");
-
- fread(&bih,sizeof(BITMAPINFOHEADER),1,f);
- printf("frame dim: %d x %d \n",(int)bih.biWidth,(int)bih.biHeight);
-
- src=malloc(512000);
- len=fread(src,1,512000,f);
- printf("frame len = %d\n",len);
-
- DS_VideoDecoder_Open("divx_c32.ax", &CLSID_DivxDecompressorCF, &bih, 0, &dst);
-
-// DS_VideoDecoder_SetDestFmt(16,fccYUY2);
- DS_VideoDecoder_SetDestFmt(24,0);
-
- printf("DivX setting result = %d\n", DS_SetAttr_DivX("Quality",4) );
-
- DS_VideoDecoder_Start();
-
- printf("DivX setting result = %d\n", DS_SetValue_DivX("Brightness",60) );
-
- DS_VideoDecoder_DecodeFrame(src, len, 1, 1);
-
-#if 0
- f2=fopen("test.yuy2","wb");
- fwrite(dst,bih.biWidth*bih.biHeight*2,1,f2);
- fclose(f2);
-#endif
-
- { unsigned char raw_head[32];
- FILE *f=fopen("test.raw","wb");
-
- strcpy((char*)raw_head,"mhwanh");
- raw_head[7]=4;
- raw_head[8]=bih.biWidth>>8;
- raw_head[9]=bih.biWidth&0xFF;
- raw_head[10]=bih.biHeight>>8;
- raw_head[11]=bih.biHeight&0xFF;
- raw_head[12]=raw_head[13]=0; // 24bit
- raw_head[14]=1;raw_head[15]=0x2C;
- raw_head[16]=1;raw_head[17]=0x2C;
- memset(raw_head+18,0,32-18);
- fwrite(raw_head,32,1,f);
-
- fwrite(dst,bih.biWidth*bih.biHeight*3,1,f);
- fclose(f);
- }
-
-
-return 0;
-}
diff --git a/loader/dshow/test.divx b/loader/dshow/test.divx
deleted file mode 100644
index 397f72989a..0000000000
--- a/loader/dshow/test.divx
+++ /dev/null
Binary files differ