ConvertStacked

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
(ConvertToStacked, etc)
 
m (tweak appearance)
Line 1: Line 1:
 
<div style="max-width:82em; min-width:42em;" >
 
<div style="max-width:82em; min-width:42em;" >
{{AvsPlusFilter}}These conversion filters are to allow filters that [[High_bit-depth_Support_with_Avisynth#Processing_High_Bit-depth_Video_with_AviSynth|use 16-bit video in a pseudo-8-bit colorspace]] to interact with [[Avisynthplus_color_formats|AviSyth+ high bit depth formats]]. They are intended to serve as a stopgap until more plugins appear supporting true high bit depth.
+
{{AvsPlusFilter}}
 +
__TOC__
 +
</div>
 +
 
 +
 
 +
<div style="max-width:42em" >
 +
These conversion filters are to allow filters that [[High_bit-depth_Support_with_Avisynth#Processing_High_Bit-depth_Video_with_AviSynth|use 16-bit video in a pseudo-8-bit colorspace]] to interact with [[Avisynthplus_color_formats|AviSyth+ high bit depth formats]]. They are intended to serve as a stopgap until more plugins appear supporting true high bit depth.
 
</div>
 
</div>
  
  
__TOC__
 
 
==== Notes ====
 
==== Notes ====
 
<div style="max-width:42em" >
 
<div style="max-width:42em" >

Revision as of 19:33, 23 April 2017

AVS+
This feature is specific to AviSynthPlus.

It is not supported in other AviSynth versions.

Contents


These conversion filters are to allow filters that use 16-bit video in a pseudo-8-bit colorspace to interact with AviSyth+ high bit depth formats. They are intended to serve as a stopgap until more plugins appear supporting true high bit depth.


Notes

  • In Stack16, the picture is made of two parts: one containing the highest 8 bits (MSB) for each pixel, stacked on top of another containing the lowest 8 bits (LSB).
  • Double-Width is similar, but the MSBs and LSBs are horizontally interleaved. TODO: verify.


Syntax and Parameters

Accepts a 16-bit clip and returns a stacked 8-bit clip.
ConvertToStacked(clip clip ] )
ConvertToDoubleWidth(clip clip ] )

clip  clip =
Source clip. Must be native 16 bit: YUV420P16, YUV422P16, YUV444P16, Y16.


Accepts a stacked 8-bit clip and returns a 16-bit clip.
ConvertFromStacked(clip clip, int bits ] )
ConvertFromDoubleWidth(clip clip, int bits ] )

clip  clip =
Source clip. Must be YV12, YV16, YV24 or Y8.
int  bits = 16
Bit depth of returned clip? TODO: verify


Changes

20170310 r2440 first added
Personal tools