<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin-top:0cm;
        margin-right:0cm;
        margin-bottom:8.0pt;
        margin-left:0cm;
        line-height:106%;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.E-MailFormatvorlage17
        {mso-style-type:personal-compose;
        font-family:"Arial",sans-serif;
        color:black;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
span.pl-en
        {mso-style-name:pl-en;}
span.pl-c
        {mso-style-name:pl-c;}
span.pl-c1
        {mso-style-name:pl-c1;}
span.tlid-translation
        {mso-style-name:tlid-translation;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hello,<br>
<br>
I’m trying to write a frame-grabber software for my display which is using the wayland-ivi-extension (</span><a href="https://github.com/GENIVI/wayland-ivi-extension"><span lang="EN-US">https://github.com/GENIVI/wayland-ivi-extension</span></a><span lang="EN-US">).
 The frame-grabber software is used for a test-automation to check if the display render the pictures correctly.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I always want to take a screenshot, if something changed on my surface. Actually, my problem is to detect changes on my surface.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">After I looked up in the ivi-layermanagement-api I have noticed that a surface has particular properties (“<span class="pl-en">ilmSurfaceProperties”). One of these is the property “frameCounter”, which shows the
</span><span class="pl-c">already rendered frames of a surface. So if the Counter
</span></span><span class="tlid-translation"><span lang="EN">increases by one, something changed on the surface.</span></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">One idea was to use the function “<span class="pl-c1">ilm_surfaceAddNotification” to get a callback if the property
</span><span class="pl-en">“frameCounter” changed. However, the callback function was not invoked, after my display rendered. It looks like the property is not observed for notification.<o:p></o:p></span></span></p>
<p class="MsoNormal"><span class="pl-en"><span lang="EN-US">Is there an elegant way to detect
</span></span><span lang="EN-US">changes on my surface by callback without polling the property by myself? Maybe some kernel-events or other API callbacks.</span><o:p></o:p></p>
</div>
</body>
</html>