[MPlayer-dev-eng] Re: Need help with drop-deinterlace plugin

Andriy N. Gritsenko andrej at lucky.net
Wed Sep 4 16:29:34 CEST 2002


    Hi, Arpi!

Sometime (on Wednesday, September  4 at 16:11) I've received something...
>> 1. Where the plugin can find decoded frames: current and previous?
>it can't see preovious unless it saves it (the mpi) and flag that it
>requires the previous frame

    It has to have static variable for that mpi and save/release mpi on
each call or I got it wrong? Is there any way to place previous frame
into vf_instance_t structure? Anyway codec already has previous frame
anywhere.

>> 3. How plugin can tell to skip the frame?
>return NULL; instead of return mpi;

    Hmm... You meant vf_next_put_image(vf, NULL) ? But it will produce
segmentation fault at least. If i get it right then plugins are called
from function decode_video() by vf->put_image(vf,mpi) ? Only way I found
is just to duplicate previous then codec will duplicate frame but I'm not
sure if it's the best way.

    With best wishes.
    Andriy.



More information about the MPlayer-dev-eng mailing list