hanfrunz
27th March 2003, 02:42
Hello,
maybe a stupid beginners question...
i'd like to change the output colorspace in my Convert3D-filter from yuy2 to rgb32 (because i convert only y-information to a red/cyan 3D Picture).
I tried something like this, but i always get a access violation...
if (vi.IsYUY2()) { // if YUY2 then create monochrome anaglyph output in RGB32
vi.pixel_type = VideoInfo::CS_BGR32;
dst = env->NewVideoFrame(vi);
unsigned char* dstp = dst->GetWritePtr();
dst_pitch = dst->GetPitch();
dst_width = dst->GetRowSize();
dst_height = dst->GetHeight();
...
@simon: maybe you could add a output-colorspace-change to yout simple sample, or maybe to a new simplesample2 :)
thanks for your help
hanfrunz
maybe a stupid beginners question...
i'd like to change the output colorspace in my Convert3D-filter from yuy2 to rgb32 (because i convert only y-information to a red/cyan 3D Picture).
I tried something like this, but i always get a access violation...
if (vi.IsYUY2()) { // if YUY2 then create monochrome anaglyph output in RGB32
vi.pixel_type = VideoInfo::CS_BGR32;
dst = env->NewVideoFrame(vi);
unsigned char* dstp = dst->GetWritePtr();
dst_pitch = dst->GetPitch();
dst_width = dst->GetRowSize();
dst_height = dst->GetHeight();
...
@simon: maybe you could add a output-colorspace-change to yout simple sample, or maybe to a new simplesample2 :)
thanks for your help
hanfrunz