changeset 5265:a5e1cc69033d libavcodec

move ff_set_qscale from h263.c to mpegvideo.c
author aurel
date Mon, 09 Jul 2007 21:07:24 +0000
parents 810df021dbef
children 91fa81e4d14d
files h263.c mpegvideo.c
diffstat 2 files changed, 16 insertions(+), 17 deletions(-) [+]
line wrap: on
line diff
--- a/h263.c	Mon Jul 09 16:26:11 2007 +0000
+++ b/h263.c	Mon Jul 09 21:07:24 2007 +0000
@@ -2517,23 +2517,6 @@
 #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
--- a/mpegvideo.c	Mon Jul 09 16:26:11 2007 +0000
+++ b/mpegvideo.c	Mon Jul 09 21:07:24 2007 +0000
@@ -2352,3 +2352,19 @@
     }
 }
 
+/**
+ * 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 ];
+}