Commit 7a3fbb05 authored by vitor's avatar vitor

Merge loops

Commited in SoC by Vitor Sessak on 2008-02-10 09:01:31


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12046 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent baa966e6
...@@ -261,15 +261,11 @@ void avfilter_draw_slice(AVFilterLink *link, int y, int h) ...@@ -261,15 +261,11 @@ void avfilter_draw_slice(AVFilterLink *link, int y, int h)
} else } else
src[i] = dst[i] = NULL; src[i] = dst[i] = NULL;
} }
for(j = 0; j < h; j ++) {
memcpy(dst[0], src[0], link->cur_pic->linesize[0]); for(i = 0; i < 4; i ++) {
src[0] += link->srcpic ->linesize[0];
dst[0] += link->cur_pic->linesize[0];
}
for(i = 1; i < 4; i ++) {
if(!src[i]) continue; if(!src[i]) continue;
for(j = 0; j < h >> vsub; j ++) { for(j = 0; j < h >> (i==0 ? 0 : vsub); j ++) {
memcpy(dst[i], src[i], link->cur_pic->linesize[i]); memcpy(dst[i], src[i], link->cur_pic->linesize[i]);
src[i] += link->srcpic ->linesize[i]; src[i] += link->srcpic ->linesize[i];
dst[i] += link->cur_pic->linesize[i]; dst[i] += link->cur_pic->linesize[i];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment