Thread: Avisynth+
View Single Post
Old 10th February 2017, 22:19   #3008  |  Link
MysteryX
Soul Architect
 
MysteryX's Avatar
 
Join Date: Apr 2014
Posts: 2,559
Pinterf, ConvertFromDoubleWidth and ConvertToDoubleWidth don't support RGB24 and RGB32.

In ConvertToDoubleWidth, add
Code:
else if (vi.IsColorSpace(VideoInfo::CS_BGR48)) vi.pixel_type = VideoInfo::CS_BGR24;
else if (vi.IsColorSpace(VideoInfo::CS_BGR64)) vi.pixel_type = VideoInfo::CS_BGR32;
In ConvertFromDoubleWidth, add
Code:
else if (vi.IsRGB24())
	vi.pixel_type = VideoInfo::CS_BGR48;
else if (vi.IsRGB32())
	vi.pixel_type = VideoInfo::CS_BGR64;
I hope you don't mind if I copy/paste ConvertStacked.cpp into my project to avoid dependency?

Last edited by MysteryX; 10th February 2017 at 22:47.
MysteryX is offline