PlanarTools

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
m (Requirements)
(Updated build from 0.3.0 to 0.3.1)
Line 2: Line 2:
 
{{Filter3
 
{{Filter3
 
|{{Author/Chikuzen}}
 
|{{Author/Chikuzen}}
|v0.3.0
+
|v0.3.1
|[https://github.com/chikuzen/PlanarTools/releases PlanarTools-0.3.0.zip]
+
|[https://github.com/FranceBB/PlanarTools/releases/download/0.3.1/PlanarTools-0.3.1.zip]
 
|Colourspace Conversion
 
|Colourspace Conversion
 
|[http://www.gnu.org/licenses/gpl-2.0.txt GPLv2]
 
|[http://www.gnu.org/licenses/gpl-2.0.txt GPLv2]

Revision as of 22:20, 6 February 2025

Abstract
Author Chikuzen
Version v0.3.1
Download [1]
Category Colourspace Conversion
License GPLv2
Discussion

Contents

Description

This plugin is a set of filters that offers converting packed(interleaved) formats to planar formats and vice versa.

AviSynth has these already as internal filters, but those are a little difficult to use, and optimization is insufficient.

Requirements


*** vcredist_x86.exe is required for PlanarTools-x86
*** vcredist_x64.exe is required for PlanarTools-x64


Syntax and Parameters

PackedToPlanar

Convert packed format to planar format without changing the pixel values.

PackedToPlanar (clip clip)


clip   =
Input clip must be RGB24, RGB32, or YUY2. Output format is YV24(RGB24, RGB32) or YV16(YUY2).


ExtractPlane

Extract a color channel from packed format, and output as a Y8 clip.

PackedToPlanar (clip clip, int "plane")


clip   =
Input clip must be RGB24, RGB32, or YUY2.


int  plane =
Color channel to extract. Default is 0 for (RGB24/YUY2) or 3 for (RGB32).
  • 0 : Blue(RGB24/RGB32) or Y(YUY2)
  • 1 : Green(RGB24/RGB32) or U(YUY2)
  • 2 : Red(RGB24/RGB32) or V(YUY2). 3: Alpha(RGB32)
This is same as ShowGreen/ShowBlue/ShowRed/ShowAlpha(on RGB) or ConvertToY8/UToY8/VToY8(on YUY2), but faster.


PlanarToRGB32

Make a RGB32 clip from multiple planar format clips without changing the pixel values.

PlanarToRGB32(clip base, clip alpha)
PlanarToRGB32(clip green, clip blue, clip red, clip alpha)


clip   =
Base clip: YV24 only. Each planes are mapped as follows: Y : Green | U : Blue | V : Red


clip   =
clip   =
clip   =
Green, blue, red - planar formats clips. Only Y-planes are used.


clip   =
Alpha - planar format. Only Y-plane is used. must be the same resolution of others.


RGBToRGB

Convert RGB24 clip to RGB32, and vice versa.

RGBToRGB (clip clip)


clip   =
Input clip must be RGB24 or RGB32.


Examples

TODO

Notes

  • All filters are SSE2 optimized. Thus these will cause crash on No SSE2 machine.
  • RGBToRGB requires SSSE3. If SSSE3 is not available on your machine, it invoke internal ConvertToRGB24/ConvertToRGB32 filter instead.


External Links

  • GitHub - Source code repository.




Back to External Filters

Personal tools