Extract
From Avisynth wiki
(Difference between revisions)
(→Syntax and Parameters: Extract-xx works for all bit depths) |
m (correction) |
||
Line 25: | Line 25: | ||
::Source clip. | ::Source clip. | ||
::If specified plane does not exist, an error is raised. | ::If specified plane does not exist, an error is raised. | ||
+ | |||
+ | |||
+ | :{{Par2|plane|string|"Y"}} | ||
+ | ::The color plane to be extracted. | ||
+ | ::If specified plane does not exist, an error is raised. | ||
+ | |||
+ | |||
{{FuncDef|ShowY(clip, string ''pixel_type'')}}<br> | {{FuncDef|ShowY(clip, string ''pixel_type'')}}<br> | ||
Line 34: | Line 41: | ||
::If specified plane does not exist, an error is raised. | ::If specified plane does not exist, an error is raised. | ||
− | |||
− | |||
− | |||
:{{Par2|pixel_type|string|(same as clip)}} | :{{Par2|pixel_type|string|(same as clip)}} |
Revision as of 07:53, 15 June 2020
AVS+ |
---|
This feature is specific to AviSynthPlus. It is not supported in other AviSynth versions. |
Contents |
Extract a plane from the source clip.
Resulting clip is Y-only (Y8, Y10 etc. as appropriate)
Replaces ShowAlpha/Red/Green/Blue, UToY/VToY and ConvertToY8 with high bit depth support.
Syntax and Parameters
ExtractY(clip)
ExtractU(clip)
ExtractV(clip)
ExtractA(clip)
ExtractR(clip)
ExtractG(clip)
ExtractB(clip)
PlaneToY(clip, string plane)
- clip =
- Source clip.
- If specified plane does not exist, an error is raised.
- string plane = "Y"
- The color plane to be extracted.
- If specified plane does not exist, an error is raised.
ShowY(clip, string pixel_type)
ShowU(clip, string pixel_type)
ShowV(clip, string pixel_type)
- clip =
- Source clip. Accepts 8-16 integer bit depths, but not Float.
- If specified plane does not exist, an error is raised.
- string pixel_type = (same as clip)
- Set color format of the returned clip.
- Cannot convert bit depths or YUV↔RGB, but can convert from 4:4:4 to 4:2:0 etc.
Changes
20161116 | first added, replacing AToY8, GToY8, BToY8, RToY8 |