c# - Show Videosignal in .Net WPF/DirectX -


i have videosignal provides me buffer ycbcr-signal. can convert rgb doing math have no idea how show video in ,net wpf. tried use slimdx , render stream sprite idea , don't have clue how start.

thanks help, meldur

if can convert rgb, have bitmap in hands. can lock bitmap , set it's data. when creating new bitmap, can set pixel format (24bpp, 32bpp), creating bitmap video frame shouldn't problem.

every time new frame, need update texture in directx. textures in directx has various formats , of them compatible bitmap formats, can create new texture using bitmap.

first find examples how render texture in directx (slimdx, manageddirectx...), update texture every time new frame comes in. if don't want bother texture locking , updating, can create new texture every time new frame comes, using constructor

public texture(device, bitmap, usage, pool);  

even if don't want bother directx, can render directly canvas in wpf

class mycanvas : canvas { protected override void onrender (drawingcontext dc) {       bitmapimage img = ...;       dc.drawimage (img, new rect (0, 0, img.pixelwidth, img.pixelheight));    } } 

to bitmapimage bitmap, here link text


Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -