RE: IWMSyncReader upside down

From: Becky Weiss [MS] (BeckyWeissMS_at_discussions.microsoft.com)
Date: 09/15/04


Date: Wed, 15 Sep 2004 12:49:05 -0700

The first sanity check (if you haven't done this already) would be to make
sure that the WMV file you're starting out with isn't upside-down itself.
(That is, that if you play the file, the images are actually right side up.)

Regardless, though, if some code is flipping the images upside down (I don't
expect that the SDK is doing this, though of course it's not an
impossibility; another possibility is that the downstream components that are
doing the processing are flipping your images), it's going to take a copy to
get them back right-side-up regardless, so that may be the only option.

Becky

This posting is provided AS IS with no warranties and confers no rights.

"Jony Kwa" wrote:

> I have a program that utilize IWMSyncReader. The program basically
> graph the image from WMV video files and send it to other library to
> be converted to another video type.
>
> But the result is always upside down. anyone know how to tell the
> IWMSyncReader to turn the image upside down?
>
> I realize that the problem may be introduced from convertion from YUV
> to RGB24.
> I solved it currenlty by doing memcpy, but that slow the compression
> time.
>
> the way that i prefer is to tell IWMSyncReader to invert the image to
> be upside-down in the buffer.
>
> Thanks
>



Relevant Pages