Click here to get back home

Customized video renderer to rotate the video 90 degrees

 HomeNewsGroups | Search | About
 microsoft.public.smartphone.developer    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Customized video renderer to rotate the video 90 degrees avis 07-08-2007
Get Chitika Premium
Posted by avis on July 8, 2007, 1:08 pm
Please log in for more thread options
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


Posted by wolfe719 on July 11, 2007, 10:21 am
Please log in for more thread options
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


> 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



Similar ThreadsPosted
Video Call June 17, 2005, 9:59 am
video rendering.. January 28, 2006, 7:05 pm
Video calling February 6, 2006, 8:06 pm
Streaming Video App November 6, 2006, 2:29 pm
camera video February 28, 2007, 7:55 pm
recording a video call September 12, 2005, 3:14 am
Stream camera video December 27, 2006, 7:57 am
DirectShow Video Recording December 29, 2006, 4:53 pm
video encoder DMO problem October 29, 2007, 12:24 pm
How to play video file. September 4, 2008, 4:47 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap