<div dir="ltr">Hello,<div><br></div><div>Am working on achieving the <b>Integer Scaling </b>through GPU composition. </div><div><br></div><div>What is Integer Scaling ? </div><div><span style="font-size:11pt;font-family:Calibri,sans-serif"> It
is an up-scaling technique that simply scales up the client's Source data pixels by an
integer multiplier using NN(Nearest Neighbor) scaling filter. With Integer Scaling through NN filter, low resolution pixel
art games being scaled to high resolution displays(4k & 8k resolution
panels) with sharp edges. Explained below with an example what we are trying to achieve. </span><br></div><div><span style="font-size:11pt;font-family:Calibri,sans-serif"> EX: I</span><font face="Calibri, sans-serif"><span style="font-size:11pt">f the pixel art game is with a resolution of 640x480 which
should render on a 1920x1080 panel. To upscale 640x480 to an integer multiplier
resolution, it should upscale only to 1280x960 but not to 1920x1440 because it
is beyond the panel resolution. The </span><span style="font-size:14.6667px">up-scaled</span><span style="font-size:11pt"> (1280*960) image should be
displayed on 1920x1080 panel. The remaining pixel beyond the 1280x960 should be
greyed-out.</span></font></div>
<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">This is what we are trying to achieve by enabling Integer
scaling only in FULL SCREEN mode. And when IS is enabled, it should use only NN as its scaling filter in GL Composition path. </p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><br></p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">What is present in Weston currently ?</p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"> I know that there is scaling logic already present in the Weston compositor in GL composition path. </p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:11pt"><b><br></b></span></p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:11pt"><b>But just wanted to know whether it is Integer scaling as mentioned above ? If not, does it possible to implement Integer Scaling in the compositor ?</b></span></p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:11pt"><b><br></b></span></p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">As i had a conversation in IRC, <b>Scaling needs to be done at Client itself</b>. But it is not feasible for each and every app should do necessary code changes to do so. Please suggest an approach to achieve this IS with in the compositor itself.</p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><br></p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">Thanks in-advance</p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><br></p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">Thanks </p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">Uday Kiran</p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><br></p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"> </p><div><span style="font-size:11pt;font-family:Calibri,sans-serif"><br></span></div></div>