[Mplayer-cvslog] CVS: main/libmpcodecs ve_qtvideo.c,1.1,1.2

Arpi of Ize arpi at mplayerhq.hu
Sat Dec 21 21:42:43 CET 2002


Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv13445

Modified Files:
	ve_qtvideo.c 
Log Message:
set keyframe flag at encoding


Index: ve_qtvideo.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ve_qtvideo.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ve_qtvideo.c	16 Dec 2002 01:49:39 -0000	1.1
+++ ve_qtvideo.c	21 Dec 2002 20:42:40 -0000	1.2
@@ -172,7 +172,7 @@
 
     OSErr cres;
     long framesizemax;
-    UInt8 similarity;
+    UInt8 similarity=0;
     long compressedsize;
     int in_format=kYUVSPixelFormat;
     int width = mpi->width;
@@ -216,6 +216,7 @@
        &framesizemax );
     printf("GetMaxCompressionSize returned:%i : MaxSize:%i\n",cres&0xFFFF,framesizemax);
     frame_comp=malloc(framesizemax);
+
     desc = (ImageDescriptionHandle)NewHandleClear(MAX_IDSIZE); //memory where the desc will be stored
     (*desc)->idSize=MAX_IDSIZE;
 
@@ -230,7 +231,7 @@
        compressor,  // codec component
        codecNormalQuality, //codecNormalQuality,
        codecMaxQuality, //codecNormalQuality,
-       10*25, // keyframe rate
+       10*30, // keyframe rate
        0,
        0,
        desc);
@@ -251,11 +252,11 @@
         0);
 
     if(cres&0xFFFF)printf("CompressSequenceFrame returned:%i\n",cres&0xFFFF);
-    printf("Size %i->%i   \n",stride*height,compressedsize);
 #if 0
+    printf("Size %i->%i   \n",stride*height,compressedsize);
     printf("Ratio: %i:1\n",(stride*height)/compressedsize);
 #endif
-    mencoder_write_chunk(mux_v, compressedsize , 0x10);
+    mencoder_write_chunk(mux_v, compressedsize , similarity?0:0x10);
 
     if(((*desc)->idSize)>MAX_IDSIZE){
 	printf("FATAL! idSize=%d too big, increase MAX_IDSIZE in ve_qtvideo.c!\n",((*desc)->idSize));




More information about the MPlayer-cvslog mailing list