Thread: Avisynth+
View Single Post
Old 5th February 2017, 17:36   #2988  |  Link
MysteryX
Soul Architect
 
MysteryX's Avatar
 
Join Date: Apr 2014
Posts: 2,559
Is there a way to pass a format as a string and get the properties of that format? For example, a parameter "FormatOut" might be set to "YUVAP16", and in my code, I want to know a few things. Does that format have an alpha plane? What is BitsPerComponent?

Of course I can get it done with a bunch of IF, but the code then gets very clumsy especially with all the new formats.
MysteryX is offline