<div dir="ltr">Hi Vitali,<div><br></div><div>thanks for clearing all of this out - this should be sufficient to make the transition.</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-01-05 11:22 GMT+02:00 Vitali Pelenjow <span dir="ltr"><<a href="mailto:Vitali.Pelenjow@oracle.com" target="_blank">Vitali.Pelenjow@oracle.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Rudolfs,<br>
<br>
if you are launching the machine inside you own process, then use notifyUpdate. You are right that in this case you get the pointer to the framebuffer bitmap using the IDisplaySourceBitmap interface.<br>
<br>
You should call IDisplaySourceBitmap::queryBitmapInfo from notifyChange handler (see implementations in src\VBox\Frontends). The returned bitmap info is valid until the next notifyChange call.<br>
<br>
notifyUpdateImage is used to get bitmap updates in a different process.<br>
<br>
Thanks,<br>
Vitali<br>
<br>
RÅ«dolfs Bundulis wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Hi,<br>
<br>
I am porting my custom frontend to VirtualBox 5.0 and had a couple of questions about how IFramebuffer works now. I see that all the stuff regarding VRAM and implementing it inside the framebuffer is gone, which I was told would happen. What confuses me is usage of notifyUpdate vs notifyUpdateImage. I am launching the machine inside my own process - so then which is the most efficient way to receive notifications about updates? Which one is more efficient? As I understand if I use notifyUpdate (and do not retur the UpdateImage capability) I must get the pointer to the bitmap and all the data from the IDisplaySourceBitmap interface? Is that thread safe? Can I read the pixels without any explicit locking? And what about changes to the pixel format - they are no longer part of the notifications. Does that mean I need to call IDisplaySourceBitmap::queryBitmapInfo() each time i receive a notifyUpdate call?<br>
<br>
Best Regards,<br>
Rudolfs Bundulis<br>
<br>
<br></div></div>
_______________________________________________<br>
vbox-dev mailing list<br>
<a href="mailto:vbox-dev@virtualbox.org" target="_blank">vbox-dev@virtualbox.org</a><br>
<a href="https://www.virtualbox.org/mailman/listinfo/vbox-dev" rel="noreferrer" target="_blank">https://www.virtualbox.org/mailman/listinfo/vbox-dev</a><br>
</blockquote>
<br>
</blockquote></div><br></div>