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