[FFmpeg-devel] [PATCH][RFC] Indeo3 replacement

Michael Niedermayer michaelni
Tue Jul 28 02:05:01 CEST 2009


On Mon, Jul 27, 2009 at 05:28:07PM +0200, Maxim wrote:
> 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...

put_no_rnd_pixels_tab
note, you might have to add a 4pixel version

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Asymptotically faster algorithms should always be preferred if you have
asymptotical amounts of data
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090728/78fe18c5/attachment.pgp>



More information about the ffmpeg-devel mailing list