summaryrefslogtreecommitdiff
path: root/libavcodec/h263.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2009-12-03 21:36:58 +0000
committerMichael Niedermayer <michaelni@gmx.at>2009-12-03 21:36:58 +0000
commit9015b095bc2407ebb009c1af0a1d1692ce72c46d (patch)
tree260ae5536e814d1ca978921dbc32c8198c9dddef /libavcodec/h263.c
parentbdcc13f2bf251f60bf5af33d5f88f78b63b1c81b (diff)
downloadffmpeg-9015b095bc2407ebb009c1af0a1d1692ce72c46d.tar.gz
Move ff_init_qscale_tab() from h263.c to mpegvideo, the function is not h263 specific.
Originally committed as revision 20725 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h263.c')
-rw-r--r--libavcodec/h263.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/libavcodec/h263.c b/libavcodec/h263.c
index 85da205815..831e4c1697 100644
--- a/libavcodec/h263.c
+++ b/libavcodec/h263.c
@@ -504,20 +504,6 @@ static inline void restore_ac_coeffs(MpegEncContext * s, DCTELEM block[6][64], i
}
/**
- * init s->current_picture.qscale_table from s->lambda_table
- */
-static void ff_init_qscale_tab(MpegEncContext *s){
- int8_t * const qscale_table= s->current_picture.qscale_table;
- int i;
-
- for(i=0; i<s->mb_num; i++){
- unsigned int lam= s->lambda_table[ s->mb_index2xy[i] ];
- int qp= (lam*139 + FF_LAMBDA_SCALE*64) >> (FF_LAMBDA_SHIFT + 7);
- qscale_table[ s->mb_index2xy[i] ]= av_clip(qp, s->avctx->qmin, s->avctx->qmax);
- }
-}
-
-/**
* modify qscale so that encoding is acually possible in h263 (limit difference to -2..2)
*/
void ff_clean_h263_qscales(MpegEncContext *s){