[FFmpeg-devel] [PATCH] lavfi: use min_perms and rej_perms for out pads.

Michael Niedermayer michaelni at gmx.at
Sun Aug 12 16:26:32 CEST 2012


On Sun, Aug 12, 2012 at 11:40:46AM +0200, Nicolas George wrote:
> There are several reasons for doing that:
> 
> 1. It documents the code for the reader and helps find
>    inconsistencies and bugs.
> 
> 2. For rej_perms, it guarantees the change will be done
>    even if the output reference can be created by several
>    code paths.
> 
> 3. It can be used to predict cases where a copy will,
>    or will not happen and optimize buffer allocation
>    (for example not request a rare direct-rendering buffer
>    from a device sink if it will be copied anyway).
> 
> Note that a filter is still allowed to manage the permissions
> on its own without using these fields.
> 
> Signed-off-by: Nicolas George <nicolas.george at normalesup.org>

LGTM

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

No snowflake in an avalanche ever feels responsible. -- Voltaire
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120812/dc9bc12c/attachment.asc>


More information about the ffmpeg-devel mailing list