[FFmpeg-devel] [RFC/HACK] ffplay direct rendering and picture changes

Michael Niedermayer michaelni
Sat May 22 21:43:52 CEST 2010


On Sun, May 23, 2010 at 12:03:36AM +0530, Jai Menon wrote:
> Hi,
> 
> With ffplay dr enabled, stuff like modifying an AVPicture's linesize,
> data pointers etc doesn't work because the picture reference isn't
> updated. I came across this when looking at the geox frame flip stuff.
> Currently, to test the patch, I can either a) disable dr or b) use the
> attached patch which checks if picture properties have changed and
> modifies the picref accordingly. Could anyone comment
> (michael/bobby/vitor?) what I'm missing here? I still need to
> understand parts of libavfilter so that's pretty much possible...

as said this isnt ideal.
yes you could flip the output like you do but you would have to disable
dr1 for that codec.
It should be possible to instead flip linesize and update data for the
stuff we get from get_buffer() and then undo that before we return or
call release buffer(), or something like that.

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

If you really think that XML is the answer, then you definitly missunderstood
the question -- Attila Kinali
-------------- 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/20100522/32849b82/attachment.pgp>



More information about the ffmpeg-devel mailing list