MysteryX
9th July 2015, 06:07
I'm opening up a video like this
AviSource("Preview.avi", audio=false, pixel_type="YV12")
Then I'm debugging a filter. With a 288x352 video, in GetFrame, after calling
PVideoFrame src = child->GetFrame(n, env);
int Y = src->GetRowSize(0);
int U = src->GetRowSize(1);
int V = src->GetRowSize(2);
Y should be 252, U should be 176 and V should be 176, right?
It's actually returning Y=252, U=252, V=176!
Similarly, GetRowHeight gives Y=288, U=288, V=144
vi.pixel_type = -1610612728
Why does the U plane have the same size as the Y plane?
AviSource("Preview.avi", audio=false, pixel_type="YV12")
Then I'm debugging a filter. With a 288x352 video, in GetFrame, after calling
PVideoFrame src = child->GetFrame(n, env);
int Y = src->GetRowSize(0);
int U = src->GetRowSize(1);
int V = src->GetRowSize(2);
Y should be 252, U should be 176 and V should be 176, right?
It's actually returning Y=252, U=252, V=176!
Similarly, GetRowHeight gives Y=288, U=288, V=144
vi.pixel_type = -1610612728
Why does the U plane have the same size as the Y plane?