Swap
From Avisynth wiki
(Difference between revisions)
(→Changes) |
|||
Line 30: | Line 30: | ||
}} | }} | ||
− | :Shorthand for '''UToY.'''[[ConvertToY8]] and '''VToY.'''[[ConvertToY8]], but faster | + | :Shorthand for '''UToY.'''[[ConvertToY8]] and '''VToY.'''[[ConvertToY8]], but faster. |
Revision as of 15:11, 15 March 2016
Swaps chroma channels in YUV clips.
Contents |
Syntax and Parameters
SwapUV(clip clip)
- Swaps U and V (chroma) channels. Corrects certain decoding errors – faces blue instead of red, etc.
UToY(clip clip)
VToY(clip clip)
- Copies U or V chroma plane to the Y luma plane.
- All color (chroma) information is removed, so the image is now greyscale.
- Depending on the color format, the image resolution can be changed – i.e.,
- with a YV24 source, UToY is the same width and height as clip, but
- with a YV12 source, UToY is half clip's width and height.
UToY8(clip clip)
VToY8(clip clip)
- Shorthand for UToY.ConvertToY8 and VToY.ConvertToY8, but faster.
YToUV(clip clipU, clip clipV [, clip clipY ] )
- Copies clipU:Y to output U and clipV:Y to output V.
- If clipY is given, copies clipY:Y to output Y; else output Y is 50% grey.
- Depending on the color format, the image resolution can be changed.
Examples
- Blur the U chroma channel
video = ColorBars(512, 512).ConvertToYV12 u_chroma = UToY(video).Blur(1.5) YToUV(u_chroma, video.VToY) MergeLuma(video)
Changes
v2.60 | Added UToY8, VToY8. |
v2.60 | Added new color formats Y8, YV411, YV16 and YV24. |