changeset 6944:c72555c4bc63

mpeg4 mpeg quantizer encoding
author michael
date Wed, 07 Aug 2002 00:08:57 +0000
parents 9d0090eae586
children 1b5bad50b21d
files libmpcodecs/ve_lavc.c
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ve_lavc.c	Tue Aug 06 22:01:45 2002 +0000
+++ b/libmpcodecs/ve_lavc.c	Wed Aug 07 00:08:57 2002 +0000
@@ -67,6 +67,7 @@
 static int lavc_param_strict= 0;
 static int lavc_param_data_partitioning= 0;
 static int lavc_param_gray=0;
+static int lavc_param_mpeg_quant=0;
 
 #include "cfgparser.h"
 
@@ -101,6 +102,9 @@
 #if LIBAVCODEC_BUILD >= 4614
 	{"gray", &lavc_param_gray, CONF_TYPE_FLAG, 0, 0, CODEC_FLAG_PART, NULL},
 #endif
+#if LIBAVCODEC_BUILD >= 4619
+	{"mpeg_quant", &lavc_param_mpeg_quant, CONF_TYPE_FLAG, 0, 0, 1, NULL},
+#endif
 	{NULL, NULL, 0, 0, 0, 0, NULL}
 };
 #endif
@@ -156,7 +160,10 @@
     if(lavc_param_packet_size )lavc_venc_context.rtp_mode=1;
     lavc_venc_context.strict_std_compliance= lavc_param_strict;
 #endif
-
+#if LIBAVCODEC_BUILD >= 4619
+    lavc_venc_context.mpeg_quant=lavc_param_mpeg_quant;
+#endif
+    
     /* keyframe interval */
     if (lavc_param_keyint >= 0) /* != -1 */
 	lavc_venc_context.gop_size = lavc_param_keyint;