[MPlayer-dev-eng] [PATCH] mp_image flags in filters

Ivan Kalvachev ikalvachev at gmail.com
Thu Jul 28 12:08:19 CEST 2005


On 7/28/05, Reimar Döffinger <Reimar.Doeffinger at stud.uni-karlsruhe.de> wrote:
> Hi,
> > I think a lot of filters use the wrong flags in their vf_get_image
> 
> I forgot a few other things I saw that I think are wrong.
> E.g.
> vf_eq, vf_eq2 and vf_hue modify the original image and export them.
> But in case PRESERVE is set on the original this is incorrect i think?
> Could this be the reason for some people seeing a "pumping" effect when
> decoding e.g. MPEG4 files?

Sure.

> harddup: I reuses the same buffers, so shouldn't it set PRESERVE?

Yes.

> kerndeint: It requests two buffers. is this allowed? Why is it
> neccessary? I had the impression that one of these is really only used
> for temporary storage (filter internal), I think that's not what
> MP_IMGTYPE_TEMP is thought for?

It uses different type buffer
TYPE_IP have 2 static buffers (chaning)
TYPE_TEMP uses 1 temp buffer
So there is no collision.

> qp: Shouldn't/Couldn't it use EXPORT buffers? After all it doesn't
> change the _data_ at all, only the qscale values.

It implements own get_image() so it get next buffer, returns it as him own,
and then this buffer comes back in put_image()  as DIRECT.
Buffer that are not DR-ed are these with PRESERVE.

I don't see much sense in change TEMP to EXPORT.

Happy Coding
   Ivan Kalvachev
  iive




More information about the MPlayer-dev-eng mailing list