PDA

View Full Version : new filters: AllColorsYUY2 and AllColorsRGB24


hanfrunz
30th December 2005, 17:51
Hello everyone,

i wrote two new little filters. AllColorsYUY2 and AllColorsRGB24. I don't know if anybody needs them, but if you want to learn about YUY2 and the Y'CbCr colorspace it might be helpful.

download (http://avisynth.org/warpenterprises/files/allcolors_25_dll_20051230.zip)

Try this little script, so you can see what conversion to rgb does to "illegal colors":

v1=allcolorsYUY2()
v2=allcolorsYUY2().converttorgb32().converttoyuy2()
stackhorizontal(v1.vectorscope(3,1),v2.vectorscope(3,1))

you need my vectorscopefilter (use the forum's search to find it)


The filters:


AllColorsYUY2
*************

This filter generates a video of 256 frames duration (frame 0 to 255). Each frame shows a square of colors.
The x-axis represents the Cb-component (left:0, right:255) and the y-axis the Cr-component (top=255, bottom=0) of the Y'CbCr colorspace.
Y' is represented by the framenumber. Because of the 4:2:2 chroma-subsampling i choosed to use small 2x2 squares for each color.

usage:
allcolorsYUY2()


AllColorsRGB24
**************

This filter generates a video of 256 frames duration (frame 0 to 255). Each frame shows a square of colors.
The x-axis represents G'-component (left:0, right:255) and the y-axis the B'-component (top=255, bottom=0) of a R'G'B' colorspace.
R' is represented by the framenumber.

usage:
allcolorsRGB24()

regards,
hanfrunz