Extract
From Avisynth wiki
(Difference between revisions)
Raffriff42 (Talk | contribs) (add PlaneToY, ShowY etc) |
Raffriff42 (Talk | contribs) m (tweak appearance) |
||
Line 2: | Line 2: | ||
{{AvsPlusFilter}}Extract a plane from the source clip.<br> | {{AvsPlusFilter}}Extract a plane from the source clip.<br> | ||
Resulting clip is ''Y''-only ([[Y8]], [[Avisynthplus_color_formats|Y10]] etc. as appropriate)<br> | Resulting clip is ''Y''-only ([[Y8]], [[Avisynthplus_color_formats|Y10]] etc. as appropriate)<br> | ||
− | Replaces [[ShowAlpha|ShowAlpha/Red/Green/Blue]], [[UToY|UToY/ | + | Replaces [[ShowAlpha|ShowAlpha/Red/Green/Blue]], [[UToY|UToY/VToY]] and [[ConvertToY8]] with high bit depth support. |
</div> | </div> | ||
__TOC__ | __TOC__ | ||
Line 10: | Line 10: | ||
{{FuncDef|ExtractY(clip)}}<br> | {{FuncDef|ExtractY(clip)}}<br> | ||
{{FuncDef|ExtractU(clip)}}<br> | {{FuncDef|ExtractU(clip)}}<br> | ||
− | {{FuncDef|ExtractV(clip)}} | + | {{FuncDef|ExtractV(clip)}}<br> |
− | + | {{FuncDef|ExtractA(clip)}}<br> | |
{{FuncDef|ExtractR(clip)}}<br> | {{FuncDef|ExtractR(clip)}}<br> | ||
{{FuncDef|ExtractG(clip)}}<br> | {{FuncDef|ExtractG(clip)}}<br> | ||
{{FuncDef|ExtractB(clip)}} | {{FuncDef|ExtractB(clip)}} | ||
− | |||
− | |||
{{FuncDef|PlaneToY(clip, string ''plane'')}} | {{FuncDef|PlaneToY(clip, string ''plane'')}} | ||
Line 34: | Line 32: | ||
:{{Par2|pixel_type|string|(same as clip)}} | :{{Par2|pixel_type|string|(same as clip)}} | ||
− | ::Set [[Avisynthplus_color_formats|color format]] of the returned clip. Cannot convert [[ConvertBits|bit depths]] or [[ConvertFormat|YUV↔RGB]]. | + | ::Set [[Avisynthplus_color_formats|color format]] of the returned clip. |
+ | ::Cannot convert [[ConvertBits|bit depths]] or [[ConvertFormat|YUV↔RGB]], but can convert from 4:4:4 to 4:2:0 etc. | ||
</div> | </div> | ||
Revision as of 14:39, 23 April 2017
AVS+ |
---|
This feature is specific to AviSynthPlus. It is not supported in other AviSynth versions. |
Resulting clip is Y-only (Y8, Y10 etc. as appropriate)
Replaces ShowAlpha/Red/Green/Blue, UToY/VToY and ConvertToY8 with high bit depth support.
Contents |
Syntax and Parameters
ExtractY(clip)
ExtractU(clip)
ExtractV(clip)
ExtractA(clip)
ExtractR(clip)
ExtractG(clip)
ExtractB(clip)
PlaneToY(clip, string plane)
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 plane = "Y"
- The color plane to be extracted.
- 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 |