<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:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@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;}
@font-face
        {font-family:"\@SimSun";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
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:"Calibri",sans-serif;
        color:windowtext;}
.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" style="margin-bottom:10.0pt;line-height:115%;text-autospace:none">
<span lang="EN-US">Hi all,<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:10.0pt;line-height:115%;text-autospace:none">
<span lang="EN-US">i'm currently facing a very strange behaviour within the gstreamer module vaapipostproc in version 1.16.2. I'm using this module for postprocessing of my video stream. Especially for adjustment of brightness, saturation and contrast, by changing
 the modules properties.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:10.0pt;line-height:115%;text-autospace:none">
<span lang="EN-US">The decoding of the stream with vaapi, as well as the gl-texture-upload by glupload works like a charm. But when the stream is running and I’m trying to change the properties for brightness, saturation or contrast many times (in a calibration
 manner), I’m running out of memory.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:10.0pt;line-height:115%;text-autospace:none">
<span lang="EN-US">Is it possible that there is a huge memory leak? When I’m steadily  calibrating the mentioned properties for about 30 secs, I get an increase of memory about 2 GB. (I know from 14.4.4, that there were some issues related to a mutual exclusive
 color calibration, which were fixed by a patch.) <o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:10.0pt;line-height:115%;text-autospace:none">
<span lang="EN-US">Could someone verify this issue?<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:10.0pt;line-height:115%;text-autospace:none">
<span lang="EN-US">Below I’ve attached the relevant code sequences:<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:10.0pt;line-height:115%;text-autospace:none">
<span lang="EN-US">Construction:<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:10.0pt;line-height:115%;text-autospace:none">
<span lang="EN-US">…<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:10.0pt;line-height:115%;text-autospace:none">
<span lang="EN-US">    auto postproc = gst_element_factory_make( "vaapipostproc", "postproc" );<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:10.0pt;line-height:115%;text-autospace:none">
<span lang="EN-US">    auto upload = gst_element_factory_make( "glupload", "upload" );<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:10.0pt;line-height:115%;text-autospace:none">
<span lang="EN-US">    GstCaps* caps = gst_caps_from_string( "video/x-raw(memory:DMABuf), format=RGBA" );<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:10.0pt;line-height:115%;text-autospace:none">
<span lang="EN-US">    if( !gst_element_link_filtered( postproc, upload, caps ) )<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:10.0pt;line-height:115%;text-autospace:none">
<span lang="EN-US">…<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:10.0pt;line-height:115%;text-autospace:none">
<span lang="EN-US">Setter for Properties (the lines below are executed very often, while stream is running):<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:10.0pt;line-height:115%;text-autospace:none">
<span lang="NO-BOK">...<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:10.0pt;text-indent:9.0pt;line-height:115%;text-autospace:none">
<span lang="NO-BOK">gfloat tmp = 0.5<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:10.0pt;text-indent:9.0pt;line-height:115%;text-autospace:none">
<span lang="NO-BOK">g_object_set( G_OBJECT( vaapipostproc ), "brightness", tmp, NULL );<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:10.0pt;line-height:115%;text-autospace:none">
<span lang="NO-BOK">...<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:10.0pt;line-height:115%;text-autospace:none">
<span lang="EN-US">Not sure whether i’m doing wrong, or there is sth broken in vaapipostproc.
<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:10.0pt;line-height:115%;text-autospace:none">
<span lang="EN-US">Kind regards<br>
Michael<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:10.0pt;line-height:115%;text-autospace:none">
<span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-bottom:10.0pt;text-indent:9.0pt;line-height:115%;text-autospace:none">
<span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<br>
<div style="background-color:#FFFFFF"><br>
<span style="font-size:14pt;  font-family:'times new roman','garamond',serif; color:#000000;">Bitte beachten / Please note!</span><br>
<div style="font-size:12pt; line-height:10pt; font-family:'times roman',serif;"><br>
*******************************************************************************
<p>AGCO GmbH<br>
Sitz der AGCO GmbH: Johann-Georg-Fendt-Str.4, 87616 Marktoberdorf, Germany<br>
Registergericht Amtsgericht Kempten HRB 10327<br>
Geschäftsführer: Christoph Groeblinghoff, Ingrid Bussjaeger-Martin, Dr. Heribert Reiter, Ekkehart Glaeser<br>
Vorsitzender des Aufsichtsrates: Torsten Dehner<br>
</p>
*******************************************************************************
<p>Diese E-Mail ist nur für den Empfänger bestimmt, an den es gerichtet ist und kann vertrauliches<br>
bzw. unter das Berufsgeheimnis fallendes Material enthalten. Jegliche darin enthaltene Ansicht<br>
oder Meinungsäußerung ist die des Autors und stellt nicht notwendigerweise die Ansicht oder<br>
Meinung von AGCO dar. Sind Sie nicht der Empfänger, so haben Sie diese E-Mail irrtümlich
<br>
erhalten und jegliche Verwendung, Veröffentlichung, Weiterleitung, Abschrift oder jeglicher<br>
Druck dieser E-Mail ist strengstens untersagt. Weder AGCO noch der Absender übernehmen die
<br>
Haftung für Viren; es obliegt Ihrer Verantwortung, die E-Mail und deren angehängte
<br>
Dateien (sofern vorhanden) auf Viren zu überprüfen.<br>
</p>
*******************************************************************************
<p>This email is intended solely for the use of the individual to whom it is addressed and may contain<br>
confidential and/or privileged material. Any views or opinions presented are solely those of the<br>
author and do not necessarily represent those of AGCO. If you are not the intended recipient, be<br>
advised that you have received this email in error and that any use, dissemination, forwarding,<br>
printing or copying of this email is strictly prohibited. Neither AGCO nor the sender accepts any<br>
responsibility for viruses and it is your responsibility to scan and virus check the email and its<br>
attachment(s) (if any).<br>
</p>
******************************************************************************* </div>
</div>
</body>
</html>