 |
Customized video renderer to rotate the video 90 degrees - avis |
08-Jul-07 01:08:45
|
Hi All,
I'm developing a media player for WM5.0 using Directx. I have a
customized source filter which will read & decompress the WMV
files.Currently I'm using the default video renderer for rendering and
it works fine. Actually the requirement is to have a fullscreen mode
which has to show the video on the entire screen in landscape on the
PPC.To be fast the screen orientation shouldn't be changed from normal
to landscape, instead the video should be rotated 90 degrees.
How it can be implemented, by developing a customzied video renderer
or any other way still using the default renderer?
Also I noticed that color space converter filter is added in between
my source filter output & the default video renderer input pin. My
source filter outputs data in RGB565 format?.Why it's added in
between?. I know that it is there to correct some incompatiable data
formats. If I know the data format which the default renderer expects
then I can update my source filter to supply the data in the same
format to aviod the color space converter filter.
Expecting your guidlines, directions & suggestion on these.
TIA
With Best Regards,
Sivamurugan |
 |
| |
| |
|
| |
|
Customized video renderer to rotate the video 90 degrees - wolfe71 |
11-Jul-07 10:21:03
|
Hello Sivamurugan,
In order to find the preferred RGB input format of the video renderer,
you need to query the MediaType of the Video Renderer's Input Pin
AFTER the Video Renderer has been hooked up. In order to make things
fun, the preferred input format for a Video Renderer on one device MAY
NOT be the same as the preferred input format of a Video Renderer on
another device.
In order to rotate the image 90 degrees, you will have to do one of
two things:
(1) Add your own rotating transform filter into your Filter Graph,
connecting your source filter to your rotating transform filter. Then
you can do a Render() function call on your rotating transform's
output pin.
(2) Change your source filter to produce video in a rotated
orientation.
You may or may not know - when you change the orientation, that will
(usually) change the dimensions of the video being displayed. The
Filter Graph will have to be disconnected and reconnected from the pin
whose dimensions change forward to the Video Rendering. Or you can
tear down the Filter Graph and rebuild it again -- although I do not
think this option is the most user-friendly.
Good Luck with the work ahead of you!
Sincerely,
John Wolfe
Lobo Consulting |
 |
| |
|
|
| Web cam application - BirdBox viewer |