[FFmpeg-cvslog] r9567 - in trunk/libavcodec: h263.c mpegvideo.c

aurel subversion
Mon Jul 9 23:07:24 CEST 2007


Author: aurel
Date: Mon Jul  9 23:07:24 2007
New Revision: 9567

Log:
move ff_set_qscale from h263.c to mpegvideo.c

Modified:
   trunk/libavcodec/h263.c
   trunk/libavcodec/mpegvideo.c

Modified: trunk/libavcodec/h263.c
==============================================================================
--- trunk/libavcodec/h263.c	(original)
+++ trunk/libavcodec/h263.c	Mon Jul  9 23:07:24 2007
@@ -2517,23 +2517,6 @@ void mpeg4_encode_picture_header(MpegEnc
 #endif //CONFIG_ENCODERS
 
 /**
- * set qscale and update qscale dependent variables.
- */
-void ff_set_qscale(MpegEncContext * s, int qscale)
-{
-    if (qscale < 1)
-        qscale = 1;
-    else if (qscale > 31)
-        qscale = 31;
-
-    s->qscale = qscale;
-    s->chroma_qscale= s->chroma_qscale_table[qscale];
-
-    s->y_dc_scale= s->y_dc_scale_table[ qscale ];
-    s->c_dc_scale= s->c_dc_scale_table[ s->chroma_qscale ];
-}
-
-/**
  * predicts the dc.
  * encoding quantized level -> quantized diff
  * decoding quantized diff -> quantized level

Modified: trunk/libavcodec/mpegvideo.c
==============================================================================
--- trunk/libavcodec/mpegvideo.c	(original)
+++ trunk/libavcodec/mpegvideo.c	Mon Jul  9 23:07:24 2007
@@ -2352,3 +2352,19 @@ static void dct_unquantize_h263_inter_c(
     }
 }
 
+/**
+ * set qscale and update qscale dependent variables.
+ */
+void ff_set_qscale(MpegEncContext * s, int qscale)
+{
+    if (qscale < 1)
+        qscale = 1;
+    else if (qscale > 31)
+        qscale = 31;
+
+    s->qscale = qscale;
+    s->chroma_qscale= s->chroma_qscale_table[qscale];
+
+    s->y_dc_scale= s->y_dc_scale_table[ qscale ];
+    s->c_dc_scale= s->c_dc_scale_table[ s->chroma_qscale ];
+}




More information about the ffmpeg-cvslog mailing list