aliakseis / FFmpegPlayer

Simple FFmpeg video player
MIT License
151 stars 44 forks source link

Is the Direct2D rendering working ? #3

Closed mediabuff closed 6 years ago

mediabuff commented 6 years ago

I get an exception on the following line, CPlayerView::updateFrame()

HRESULT hr = yBitmap->CopyFromMemory(&destRect, data.image[0], data.pitch[0]);

aliakseis commented 6 years ago

Yes, the Direct2D rendering works. However, as for now, it is incompatible with hardware acceleration. You need to hide #define USE_HWACCEL in the ffmpegdecoder.cpp file.

aliakseis commented 6 years ago

Fixed in the latest revision

mediabuff commented 6 years ago

Thanks. Let me try it out later. Any plans for Directx 11 ?

aliakseis commented 6 years ago

Just added plain DirectX 9 support. It is controlled by #define USE_DXVA2 in PlayerView.h