Mercurial > libavcodec.hg
comparison snow.c @ 6437:5154ab444372 libavcodec
move draw_edges() into dsputil
author | aurel |
---|---|
date | Tue, 04 Mar 2008 00:07:41 +0000 |
parents | fd74b42a19f4 |
children | e6995f3fbf7f |
comparison
equal
deleted
inserted
replaced
6436:6491d3284f89 | 6437:5154ab444372 |
---|---|
4118 AVFrame tmp; | 4118 AVFrame tmp; |
4119 int w= s->avctx->width; //FIXME round up to x16 ? | 4119 int w= s->avctx->width; //FIXME round up to x16 ? |
4120 int h= s->avctx->height; | 4120 int h= s->avctx->height; |
4121 | 4121 |
4122 if(s->current_picture.data[0]){ | 4122 if(s->current_picture.data[0]){ |
4123 draw_edges(s->current_picture.data[0], s->current_picture.linesize[0], w , h , EDGE_WIDTH ); | 4123 s->dsp.draw_edges(s->current_picture.data[0], s->current_picture.linesize[0], w , h , EDGE_WIDTH ); |
4124 draw_edges(s->current_picture.data[1], s->current_picture.linesize[1], w>>1, h>>1, EDGE_WIDTH/2); | 4124 s->dsp.draw_edges(s->current_picture.data[1], s->current_picture.linesize[1], w>>1, h>>1, EDGE_WIDTH/2); |
4125 draw_edges(s->current_picture.data[2], s->current_picture.linesize[2], w>>1, h>>1, EDGE_WIDTH/2); | 4125 s->dsp.draw_edges(s->current_picture.data[2], s->current_picture.linesize[2], w>>1, h>>1, EDGE_WIDTH/2); |
4126 } | 4126 } |
4127 | 4127 |
4128 tmp= s->last_picture[s->max_ref_frames-1]; | 4128 tmp= s->last_picture[s->max_ref_frames-1]; |
4129 memmove(s->last_picture+1, s->last_picture, (s->max_ref_frames-1)*sizeof(AVFrame)); | 4129 memmove(s->last_picture+1, s->last_picture, (s->max_ref_frames-1)*sizeof(AVFrame)); |
4130 memmove(s->halfpel_plane+1, s->halfpel_plane, (s->max_ref_frames-1)*sizeof(void*)*4*4); | 4130 memmove(s->halfpel_plane+1, s->halfpel_plane, (s->max_ref_frames-1)*sizeof(void*)*4*4); |