Skip to content

Commit

Permalink
doc: update SetFrameProp docs
Browse files Browse the repository at this point in the history
and suggest users to look into SetFrameProps and RemoveFrameProps APIs.

Fixes vapoursynth#736.

Signed-off-by: akarin <[email protected]>
  • Loading branch information
AkarinVS committed Sep 2, 2021
1 parent ed6946d commit 8abd15e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions doc/functions/setframeprop.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
SetFrameProp
============

.. function:: SetFrameProp(vnode clip, string prop[, int[] intval, float[] floatval, string[] data])
.. function:: SetFrameProp(vnode clip, string prop[, bint delete=False, int[] intval, float[] floatval, string[] data])
:module: std

Adds a frame property to every frame in *clip*.
Adds/deletes a frame property to every frame in *clip*.

If there is already a property with the name *prop* in the frames,
it will be overwritten.
Expand All @@ -18,3 +18,7 @@ SetFrameProp
For example, to set the field order to top field first::

clip = c.std.SetFrameProp(clip, prop="_FieldBased", intval=2)

For users not requiring compatibility with R54 or older VapourSynth releases, it
is recommended to use the more intuitive *SetFrameProps* and *RemoveFrameProps*
functions instead.

0 comments on commit 8abd15e

Please sign in to comment.