[MPlayer-dev-eng] [PATCH] Add vf_clone_mpi_attributes() call in some filters

Evgeniy Stepanov eugeni.stepanov at gmail.com
Tue Aug 21 21:42:15 CEST 2007


Hi,

here is a patch that adds vf_clone_mpi_attributes() to some filters. This way  
quantizers are passed to the next filter, allowing use of postprocessing 
further in the filter chain. For example, it may be useful to do hqdn3d 
before uspp for very noisy videos.

Doing this in filters that perform frame reordering or delaying can be risky, 
since only the pointer to quantizers is copied in vf_clone_mpi_attributes(), 
therefore it is not valid for long. This patch does not deal with such 
filters.

For some of these filters vf_clone_mpi_attributes() is probably useless 
(vf_perspective, for instance). Can't imagine postprocessing being done after 
it. But then, it does not hurt either: in the worst case user will just end 
up with suboptimal video quality.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clone-attr.patch
Type: text/x-diff
Size: 7856 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20070821/e03c7917/attachment.patch>


More information about the MPlayer-dev-eng mailing list