Generic representation of a Media Topology, Serialize and De-serialize

Recently I came across a problem where various Media topologies in Windows were represented in different ways. For example, IMFMediaSession topology is represented using IMFTopology (http://msdn.microsoft.com/en-us/library/windows/desktop/ms705488(v=vs.85).aspx) whereas IMFSoureReader and IMFSinkWriter based topologies are represented as a chain of transforms. I was part of a team that developed a generic library to represent all Media topologies…

0

Determining pin dependence in MediaCapture

In general most of the cameras expose 1-3 pins from which you can capture Video Preview stream, Video Record stream, Photo stream. Example: Normal USB cameras generally expose 1 pin (Preview) , H264 cameras expose 2 pins (1 for Preview and 1 for Record), SOC cameras expose 3 pins (independent Preview, Record and Photo capture). MediaCapture default mapping…

0

SQL Mirroring best practices

Few years ago when I was working on web services, I was part of a team that built a tool to achieve SQL Mirroring in a reliable manner. Here are few best practices that I took away from that experience. Mirroring is one of the best ways in which you can achieve fault tolerance in…

0

Accessing Public classes in your Webservice from Clients

Recently I struggled a lot to figure out how to access classes that are public in my webservice namespace, from the client (that was making the webservice method calls) I had a Public class called “Details” in my webservice and I had a method which would return an ArrayList of objects of type “Details” to…

0

ConfigurationManager class in C#

The ConfigurationManager class in C# has been one of my latest discoveries for storing all the configuration data required by an application. Here is one example of how I used it to store some of my configuration data: Let us say that you have written an application (let’s call is Foo.exe). Now let us say that Foo.exe logs…

1

Tips and Tricks with C++ COM and .NET

 If you have written a C++ COM dll and if you are looking to use it in a C# program, then you are in the right place!   Read on… Trust me, using a COM dll in a C# program is far simpler and relieves you of all those ref counting hazzles. Managed code even simplifies the standard…

1

A study on IPC options on WinCE and Windows

  I wanted to make a client-server application that would run both on WinCE/Windows Mobile 5.0 PPC/SP and Windows.   Here is what I wanted to make:   §         A Server EXE which would have to run, both on a Win CE based device and on a Desktop machine. §         A Client EXE which would…

0

An example of using delegates in C#

  Delegates hold the references/addresses of functions so that the functions can be invoked in a call back manner. If you are familiar with C++, they are just like function pointers. Here is one example of how delegates can aid in structuring your test cases.   Objective   Let us say that you have developed a text…

0