Thread: Avisynth+
View Single Post
Old 11th January 2020, 15:42   #5062  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Quote:
it also invokes FlipVertical, no clue why AviSynth/VapourSynth RGB32 isn't directly D2D compatible without FlipVertical.
RGB is upside down compared to YUV, top line is usually got via something like
Code:
    int x=0,y=0;
    int step =( vi.IsRGB24() ) ? 3 : 4;    // RGB24 or RGB32
    BYTE *dp = dst->GetWritePtr() + ((height-1 - y) * pitch) + (x*step);
    // ...
    dp -= pitch; // down 1 line
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???
StainlessS is offline