View Full Version : Planar YUY2. Will it be supported?
vcmohan
17th March 2005, 04:01
I have seen in some of the posts Planar YUY2 format being mentioned. Is this format going to be supported by Avisynth? How soon one can expect this? What are the details of this format?
Wilbert
17th March 2005, 12:59
It won't be supported in v2.5. If there's any need for it, it can be supported in v3.0.
sh0dan
17th March 2005, 19:42
Adding it to the core would be a rather small matter. Adding it to filters would be another matter.
Adding 4:2:2 and 4:4:4 planar support to 2.5 would be possible, but it would also increase filter complexity. I'd personally rather see a AviSynth moved to Win64 - and the new planar modes could be added in the process.
vinetu
17th March 2005, 20:06
I hope the planar support in filters can be overcomed for now by a "ConvertToYUY2Planar()" at the end of the avs script.
kassandro
17th March 2005, 22:11
I think that planar versions of YUY2, RGB24 and RGB32 should be implemented in Avisynth some day, but not in the way I did it recently. This implementation has the advantage, that it can be done without support from the Avisynth core. There are, however, substantial drawbacks as well. Because I only separate the Y, U, V values on horizontal lines, this arrangement of data is not L1/L2 cache efficient as a full separation like YV12. It is even worse, that the U and V planes cannot be aligned for maximum speed, because the data have to be packed very tightly such that there is no difference between interleaved and planar for the Avisynth core. Also horizontal cropping without bitblt is not possible with this data arrangement.
An implemenentation of planar YUY2 should be identical to YV12 but with twice the chroma height.
By the way, the U, V planes of an YV12 frame are usually not properly aligned in the current version 2.5.5. I hope that this gets fixed in version 2.5.6.
Bidoche
19th March 2005, 11:58
It's relatively easy to add colorspaces in 3.0.
And even plugins can add colorspaces.
But of course, it won't make filters support them.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.