Extract

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
(ExtractY, etc)
 
(add PlaneToY, ShowY etc)
Line 1: Line 1:
 
<div style="max-width:82em; min-width:42em;" >
 
<div style="max-width:82em; min-width:42em;" >
 
{{AvsPlusFilter}}Extract a plane from the source clip.<br>
 
{{AvsPlusFilter}}Extract a plane from the source clip.<br>
Resulting clip is ''Y''-only ([[Y8]], [[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/UToY]] and [[ConvertToY8]] with high bit depth support.
 
Replaces [[ShowAlpha|ShowAlpha/Red/Green/Blue]], [[UToY|UToY/UToY]] and [[ConvertToY8]] with high bit depth support.
 
</div>
 
</div>
Line 16: Line 16:
 
{{FuncDef|ExtractB(clip)}}
 
{{FuncDef|ExtractB(clip)}}
  
{{FuncDef|ExtractA(clip)}}<br>
+
{{FuncDef|ExtractA(clip)}}
 +
 
 +
{{FuncDef|PlaneToY(clip, string ''plane'')}}
 +
 
 +
{{FuncDef|ShowY(clip, string ''pixel_type'')}}<br>
 +
{{FuncDef|ShowU(clip, string ''pixel_type'')}}<br>
 +
{{FuncDef|ShowV(clip, string ''pixel_type'')}}
 +
 
  
 
:{{Par2||clip|}}
 
:{{Par2||clip|}}
 
::Source clip. Accepts 8-16 integer bit depths, but not [[Avisynthplus_color_formats|Float]].
 
::Source clip. Accepts 8-16 integer bit depths, but not [[Avisynthplus_color_formats|Float]].
 
::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.
 +
 +
:{{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&harr;RGB]].
 
</div>
 
</div>
  

Revision as of 13:20, 23 April 2017

AVS+
This feature is specific to AviSynthPlus.

It is not supported in other AviSynth versions.

Extract a plane from the source clip.

Resulting clip is Y-only (Y8, Y10 etc. as appropriate)
Replaces ShowAlpha/Red/Green/Blue, UToY/UToY and ConvertToY8 with high bit depth support.

Contents


Syntax and Parameters

ExtractY(clip)
ExtractU(clip)
ExtractV(clip)

ExtractR(clip)
ExtractG(clip)
ExtractB(clip)

ExtractA(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.

Changes

20161116 first added, replacing AToY8, GToY8, BToY8, RToY8
Personal tools