[FFmpeg-devel] [PATCH][RFC] Indeo3 replacement
Maxim
max_pole
Mon Jul 27 17:28:07 CEST 2009
Michael Niedermayer schrieb:
>
>> /* setup output and reference pointers */
>> dst = &plane->pixels[buf_switch][(cell->ypos << 2) * plane->pitch + (cell->xpos << 2)];
>> /* reference block = prev_frame(cell_xpos + mv_x, cell_ypos + mv_y) */
>> mv_y = cell->mv_ptr[0];
>> mv_x = cell->mv_ptr[1];
>> offset = ((cell->ypos << 2) + mv_y) * plane->pitch + (cell->xpos << 2) + mv_x;
>> src = &plane->pixels[buf_switch ^ 1][offset];
>>
>> for (y = cell->height << 2; y > 0; src += plane->pitch, dst += plane->pitch, y--)
>> memcpy(dst, src, cell->width << 2);
>> }
>>
>
> also, cant the dsputil block copy code be used?
>
Which function I have to look into? Plz help, I'm not a dsputil's guru...
Regards
Maxim
More information about the ffmpeg-devel
mailing list