<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
I've been looking at using vaPutImage and so far have no had much luck getting an image to display in an X window. Below is basically what I am doing.<br><br>init (ie:XOpenDisplay, vaGetDisplay, vaInitialize)<br><br>vaCreateSurfaces<br>vaQueryImageFormats (only supported image type returned is AYUV)<br>vaCreateImage<br>vaMapBuffer (map created image to local buf ptr)<br>fill local buf with simple test pattern<br>vaUnmapBuffer<br>vaPutImage (put to surface created above)<br><br>XCreateSimpleWindow<br>XMapWindow (also tried XMapRaised)<br>XSync<br><br>vaPutSurface (put to window created above)<br>(also tried adding XFlush)<br><br>All va functions return success, but at the end all I get is a blank window. <br><br>I am using libva 0.28, S3G Driver 1.0 with an S3 540GTX card and running Ubuntu. I ran most test programs in the libva src package and those worked. Also mplayer is working using va and doing the same kind of test with XPutImage works as well.<br><br>I've searched around quite a bit, but haven't really found anything using vaPutImage. Are there any working examples using vaPutImage? Does the above sequence look like it should work or am I way off? I've just started looking at libva the last few days and am pretty new to X as well so sorry if the answer to this should be obvious.<br><br>Thanks in advance for any help.<br><br><br><br><br><br /><hr />With Windows Live, you can organize, edit, and share your photos. <a href='http://www.windowslive.com/Desktop/PhotoGallery' target='_new'>Click here.</a></body>
</html>