comparison mpegvideo.c @ 478:055d9ac1584d libavcodec

use ff_idct_put/add()
author bellard
date Wed, 05 Jun 2002 18:36:03 +0000
parents 11dbd00682fc
children 29a7e17d19dd
comparison
equal deleted inserted replaced
477:bc7ceb6461eb 478:055d9ac1584d
1101 static inline void put_dct(MpegEncContext *s, 1101 static inline void put_dct(MpegEncContext *s,
1102 DCTELEM *block, int i, UINT8 *dest, int line_size) 1102 DCTELEM *block, int i, UINT8 *dest, int line_size)
1103 { 1103 {
1104 if (!s->mpeg2) 1104 if (!s->mpeg2)
1105 s->dct_unquantize(s, block, i, s->qscale); 1105 s->dct_unquantize(s, block, i, s->qscale);
1106 ff_idct (block); 1106 ff_idct_put (dest, line_size, block);
1107 put_pixels_clamped(block, dest, line_size);
1108 } 1107 }
1109 1108
1110 /* add block[] to dest[] */ 1109 /* add block[] to dest[] */
1111 static inline void add_dct(MpegEncContext *s, 1110 static inline void add_dct(MpegEncContext *s,
1112 DCTELEM *block, int i, UINT8 *dest, int line_size) 1111 DCTELEM *block, int i, UINT8 *dest, int line_size)
1117 if (s->block_last_index[i] >= 0) { 1116 if (s->block_last_index[i] >= 0) {
1118 if (!s->mpeg2) 1117 if (!s->mpeg2)
1119 if(s->encoding || (!s->h263_msmpeg4)) 1118 if(s->encoding || (!s->h263_msmpeg4))
1120 s->dct_unquantize(s, block, i, s->qscale); 1119 s->dct_unquantize(s, block, i, s->qscale);
1121 1120
1122 ff_idct (block); 1121 ff_idct_add (dest, line_size, block);
1123 add_pixels_clamped(block, dest, line_size);
1124 } 1122 }
1125 } 1123 }
1126 1124
1127 /** 1125 /**
1128 * cleans dc, ac, coded_block for the current non intra MB 1126 * cleans dc, ac, coded_block for the current non intra MB