Invert: Difference between revisions
From Avisynth wiki
Jump to navigationJump to search
No edit summary |
add link to avs+ documentation |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
Inverts one or several channels of a clip. | <div {{BlueBox2|40|0|3px solid purple}} > | ||
{{AvsPlusFullname}}<br> | |||
Up-to-date documentation: [https://avisynthplus.readthedocs.io/en/latest/avisynthdoc/corefilters/invert.html https://avisynthplus.readthedocs.io] | |||
</div> | |||
Inverts one or several color channels of a clip. | |||
{{Template:FuncDef|Invert(clip ''clip'' [, string ''channels''] )}} | {{Template:FuncDef|Invert(clip ''clip'' [, string ''channels''] )}} | ||
Latest revision as of 07:26, 18 September 2022
AviSynth+
Up-to-date documentation: https://avisynthplus.readthedocs.io
Inverts one or several color channels of a clip.
Invert(clip clip [, string channels] )
- clip clip =
- Source video.
- string channels = (all)
- Defines which channels should be inverted by their initial letters, e.g. "R" (=red)
- Any letters that don't correspond to a channel in the current colorspace are ignored.
- Valid channel letters are:
- Letters are not case sensitive and may be given in any order.
- By default, all channels of the current colorspace are inverted.
Example
AviSource("clip.avi") ConvertToRGB32 Invert("BG") # inverts the blue and green channels
AviSource("clip.avi") ConvertToRGB24 Invert("A") # no effect (no current A channel) Invert("VUY") # no effect (no current Y, U or V channels) Invert("g, b") # inverts the blue and green channels
Changelog
| v2.60 | All AviSynth colorspaces are supported. |
| v2.55 | Added RGB24, YUY2 and YV12 mode. |
| v2.53 | Initial Release |