Code: Select all
bi.biBitCount = 32;
fi.getframe = AVIStreamGetFrameOpen(fi.video, &bi);
Code: Select all
bi.biBitCount = 32;
fi.getframe = AVIStreamGetFrameOpen(fi.video, &bi);
The Premiere Pro AVISynth plugin sources don't exist in a stable state in the CVS tree. SourceForge's CVS server has been bugging out on me, so I've been unable to successfully commit the stuff all morning.AbsoluteDestiny wrote:OK, here's something.
The Premiere Pro code works just fine with premiere 6 and hopefully too with premiere 5 (I can test that later) which means that we can have one version. I'll check cvs in a bit to see what version we have up there.
Maybe I'm being stupid (probably since I haven't looked at this code), but if you send a 24-bit string and it encodes it to 32, is it as simple as destroyng the top 8 bits to bring it back to 24-bits? I don't know if by "conversion" it just appends 0's to the end to make it a compliant 32-bit output for that variable.BogoSort wrote:Well the way that it's written it sets biBitCount to 32. Then it tries to open it and produce an output in 32 bits, which is successful(since I believe that windows does the conversion), so then it sets the bpp to be 32 and goes on its merry way. It's not actually doing any detection on the code.
Is it stored as RGBA or ARGB? I could see how the latter would quickly make you unable to see anything by trying to read a 24bit stream as 32 bit. Need to look at the code some more. I'm not too familiar with video code, but this isn't the most well written code to begin with...AbsoluteDestiny wrote:Stop thinking in terms of code and think in terms of video and it will make sense. There are samples for R G and B (24 bits) but no samples for the alpha channel so those are all 0's :)