Nadav's Blog

MediaFoundation Image Source

Download x32  x64


    Abstract
    A Codec enabling rendering of bitmaps using Microsoft's MediaFoundation framework.

    Motivation
    While doing Image processing work, I had image samples I wanted to execute some algorithms against, the architechture used is MediaFoundation so it was demanded to have this MediaSource implemented.

    Implementation
    The code implemented is using WIC and support the following image formats: '.bmp', '.png', '.gif', '.jpg', '.tiff' and '.ico', It renders the Image at 30fps providing the same MFMediaBuffer with all MFSamples, the output video format is fixed on YV12 ( converted from the original image color-space ).

    Usage
    1. Open TopoEdit
    2. Choose the 'File' menu item
    3. Select 'Render File...'
    4. Choose the image file to render


Feedback: nadav@sophin.com