[Libva] accessing buffer from vaCreateSurfaceFromCIFrame
veerabhadra at indiatimes.com
veerabhadra at indiatimes.com
Wed Apr 7 09:55:22 PDT 2010
Hi,
I am writing camera applicationm, in which I want capture frame and apply my own image effects.
I am using vaCreateSurfaceFromCIFrame call to get surface id and I am able to render using vaPutSurface.
But if I want access the buffer to apply effect, I am trying get the buffer using vaMapBuffer but it hangs.
Here are the calls..
vaCreateSurfaceFromCIFrame ( va_dpy, frame_vf,&surface )
vaDeriveImage (va_dpy, surface, &image))
vaMapBuffer(va_dpy,image.buf,&coded_p);
write buffer to file
va_status = vaUnmapBuffer(va_dpy,image.buf);
vaPutSurface(va_dpy, surface, win, 0,0, width, height, 0,0, win_width, win_height,
but this hangs...Please provide any pointers...
note: new to libva
rgds,
veer
--
Click for exclusive coverage on the New Bajaj Pulsar 220 the fastest Indian bike
http://www.zigwheels.com/Features/Bajaj-Pulsar-220-DTSi-Special-Coverage/Pulsar_20090623-1-1
More information about the Libva
mailing list