Video For Windows - Example

Example

This sample source code shows skeleton of video codec in VfW:

#include … LRESULT WINAPI DriverProc( DWORD dwDriverId, HDRVR hdrvr, UINT msg, LONG lParam1, LONG lParam2) { switch(msg) { … case ICM_COMPRESS: // compress frame return Compress((ICCOMPRESS*)lParam1, (DWORD)lParam2); … case ICM_DECOMPRESS: // decompress frame return Decompress((ICDECOMPRESS*)lParam1, (DWORD)lParam2); … } } …

Read more about this topic:  Video For Windows

Famous quotes containing the word example:

    Our intellect is not the most subtle, the most powerful, the most appropriate, instrument for revealing the truth. It is life that, little by little, example by example, permits us to see that what is most important to our heart, or to our mind, is learned not by reasoning but through other agencies. Then it is that the intellect, observing their superiority, abdicates its control to them upon reasoned grounds and agrees to become their collaborator and lackey.
    Marcel Proust (1871–1922)