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
reply
 
 

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
reply
 
Web cam application - BirdBox viewer
promotion
Silverlight    WPF    WCF    WWF    LINQ   
JavaScript    AJAX    ASP.NET    XAML   
C#    VB.NET    VB 6.0    GDI+    IIS    XML   
.NET Generics    Anonymous Methods    Delegate   
Visual Studio .NET    Expression Blend    Virus   
Windows Vista    Windows XP    Windows Update   
Windows 2003 Server    Windows 2008 Server   
SQL Server    Microsoft Excel    Microsoft Word   
SharePoint    BizTalk    Virtual Earth   
.NET Compact Framework    Web Service   

"Everything" RSS / ATOM Feed Parser
How to send and receive messages through message queuing in .Net
How to Read text file as database
SQL Server 2005 Paging Performance Tip
Display code of web page.
Fully Scalable Excel File Importer class for .net using Microsoft Jet driver
Generic Chart Color Manager class that can be used for any charts
Helper class to style the infragistics wingrid
Using Reflection to detemine as Assembly Info in and out.
Helper class to play with Window (Owners and position)
Resolving displayname from the culture using the XmlLanguage and LanguageSpecificStringDictionary class