RE: IWMSyncReader upside down
From: Becky Weiss [MS] (BeckyWeissMS_at_discussions.microsoft.com)
Date: 09/15/04
- Next message: Becky Weiss [MS]: "RE: IWMSyncReader skips frames"
- Previous message: Becky Weiss [MS]: "Re: fail on IWMSyncReader::SetRangeByFrame()"
- In reply to: Jony Kwa: "IWMSyncReader upside down"
- Next in thread: Jony Kwa: "Re: IWMSyncReader upside down"
- Reply: Jony Kwa: "Re: IWMSyncReader upside down"
- Messages sorted by: [ date ] [ thread ]
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
>
- Next message: Becky Weiss [MS]: "RE: IWMSyncReader skips frames"
- Previous message: Becky Weiss [MS]: "Re: fail on IWMSyncReader::SetRangeByFrame()"
- In reply to: Jony Kwa: "IWMSyncReader upside down"
- Next in thread: Jony Kwa: "Re: IWMSyncReader upside down"
- Reply: Jony Kwa: "Re: IWMSyncReader upside down"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|