IWMSyncReader upside down
WMPTalk.com Forum Index WMPTalk.com
Discuss Windows Media Player
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web wmptalk.com
IWMSyncReader upside down

 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> SDK
Author Message
Jony Kwa
Guest





Posted: Tue Sep 14, 2004 5:19 am    Post subject: IWMSyncReader upside down Reply with quote

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

Back to top
Jony Kwa
Guest





Posted: Thu Sep 23, 2004 6:25 am    Post subject: Re: IWMSyncReader upside down Reply with quote

Thanks for the reply.
Your answer is very ambigious. As I basically read WMV file, put it in
the buffer, and send it to my write function. Similar thing happend to
AVIStreamRead (Another Win Media functions to read AVI file).

I read somewhere that if the biHeight is positive from those reading,
it will mean the image will be flipped. So is there a switch that will
enable the reading of those images the other way when we realize that
the image is flip?
My idea before was to set the image property for WMV but have been
unsuccessful.

Thanks for you answer, and I really appreicate the effort =).
Back to top
Jony Kwa
Guest





Posted: Mon Sep 27, 2004 10:56 am    Post subject: Re: IWMSyncReader upside down Reply with quote

Thanks for your answer, I have got the solution.
The problem was i used 2 different system and both of them confuse to each other.
So I just pass plain YUV format from YUV-WM-library to YUV of my other library.
And they work like charm.

Thanks again ;P

Back to top
 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> SDK All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Microsoft Office Forum New Topics
Powered by phpBB