[MPlayer-dev-eng] [PATCH]Implement advanced deinterlacing for vdpau with SW decoders

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sat Mar 14 18:07:19 CET 2009


On Sat, Mar 14, 2009 at 06:02:29PM +0100, Carl Eugen Hoyos wrote:
> @@ -220,6 +221,11 @@
>      for (i = 0; i <= !!(deint > 1); i++) {
>          int field = VDP_VIDEO_MIXER_PICTURE_STRUCTURE_FRAME;
>          VdpOutputSurface output_surface;
> +        VdpVideoSurface const past_pict[2] = {surface_render[(vid_surface_num+2)&3].surface,
> +                                              surface_render[(vid_surface_num+1)&3].surface};
> +        int current_pict = (deint > 2) ? (vid_surface_num + 3) & 3 : vid_surface_num;

That can't work because you don't (and without some architectural
changes can't) make sure that these surfaces have not already been
reused and a new frame rendered on them.



More information about the MPlayer-dev-eng mailing list