Difference between revisions of "GStreamer Based Image Signal Processor/Performance/Debayer"

From RidgeRun Developer Connection
Jump to: navigation, search
m
(Replaced content with " #REDIRECT [https://developer.ridgerun.com/wiki/index.php?title=GStreamer_Based_Image_Signal_Processor/Performance/imx8 i.MX8 Performance]")
(Tag: Replaced)
 
Line 1: Line 1:
<noinclude>
 
{{GStreamer Based Image Signal Processor/Head|previous=Performance/Color_Space_Conversion||next=Contact_Us|keywords=}}
 
</noinclude>
 
__TOC__
 
The following section describes some relevant performance measurements during debayering for a few standard resolutions. It begins with a summary of the results detailed on the following sections, as well as the pipelines used to capture such results.
 
  
= Summary =
+
#REDIRECT [https://developer.ridgerun.com/wiki/index.php?title=GStreamer_Based_Image_Signal_Processor/Performance/imx8 i.MX8 Performance]
== Benchmarking for i.MX8==
 
 
 
=== Pipeline ===
 
 
 
All the measurements below were made using the following minimal pipeline.
 
 
 
<syntaxhighlight lang=bash style="background-color: #f0fff0">
 
WIDTH=1920
 
HEIGHT=1080
 
 
 
gst-launch-1.0 videotestsrc is-live=true ! "video/x-bayer, format=(string)bggr, width=$WIDTH, height=$HEIGHT,framerate=(fraction)30/1" ! queue ! ispcldebayer ! fakesink -v
 
</syntaxhighlight>
 
 
 
=== Summary ===
 
In this summary you can find measurements related with CPU usage, memory, execution time and maximum framerate supported by the debayer algorithm.
 
<html>
 
<center>
 
<table class="wikitable" style="color:black;">
 
  <tr>
 
    <th>Resolution</th>
 
    <th>CPU usage (%) *</th>
 
    <th>Memory (kB) *</th>
 
    <th>Execution Time (ms)</th>
 
  </tr>
 
  <tr>
 
    <td>640x480@30fps</td>
 
    <td>8</td>
 
    <td>17980</td>
 
    <td>3.54</td>
 
  </tr>
 
<tr>
 
    <td>1280x720@30fps</td>
 
    <td>9</td>
 
    <td>18800</td>
 
    <td>9.82</td>
 
</tr>
 
<tr>
 
    <td>1920x1080@30fps</td>
 
    <td>14</td>
 
    <td>19896</td>
 
    <td>21.19</td>
 
</tr>
 
<caption>Table 1. Summary table regarding to the debayer performance for several standard resolutions running at 30fps</caption>
 
</table>
 
</center>
 
</html>
 
 
 
 
 
<span style="color:red"> '''Note:''' take into consideration that these values were taken using the videotestsrc element, and may decrease with a camera source capture. </span>
 
 
 
<html>
 
<center>
 
<table class="wikitable" style="color:black;">
 
  <tr>
 
    <th>Resolution</th>
 
    <th>Maximum framerate (fps)</th>
 
  </tr>
 
  <tr>
 
    <td>640x480</td>
 
    <td>266</td>
 
  </tr>
 
<tr>
 
    <td>1280x720</td>
 
    <td>101</td>
 
</tr>
 
<tr>
 
    <td>1920x1080</td>
 
    <td>46</td>
 
</tr>
 
<caption>Table 2. Summary table for the maximum framerate using debayer algorithm for several standard resolutions</caption>
 
</table>
 
</center>
 
</html>
 
 
 
===CPU usage===
 
These measurements were taken with '''top''' app to see the behavior of the pipeline while running at 30fps, but we have to have in account that videotestsrc is used to generate the buffers and it consumes a lot of CPU.
 
 
 
[[File:cpu-usage-debayer.png|frame|center|Cpu usage debayering for different resolutions at 30fps.]]
 
 
 
 
 
===Memory usage===
 
These measurements were taken with '''meminfo''' file to see the behavior of the pipeline while running at 30fps, but we have to have in account that videotestsrc is used to generate the buffers and it depends on the framerate due to the number of buffers generated by videotestsrc.
 
 
 
[[File:memory-debayer.png|frame|center|Memory usage debayering for different resolutions at 30fps.]]
 
 
 
 
 
===Execution time===
 
These measurements were taken putting some '''timestamps''' before and after the processing to measure just the execution time for the debayer kernel algorithm by each frame and avoiding possible false measurements from the GStreamer plugin. The image below shows the debayer execution time by each frame for each resolution.
 
 
 
[[File:exec-time-debayer.png|frame|center|Execution time debayering for different resolutions at 30fps.]]
 
 
 
 
 
===Maximum Framerate===
 
These measurements were taken with '''gstperf''' tool to see the behavior of the pipeline while running, with videotestsrc we are able to push buffers as much as possible to the element. The image below shows the maximum framerate that the debayer element supports. It depends on the execution time of the debayer kernel algorithm.
 
 
 
[[File:max-framerate-debayer.png|frame|center|Maximum framerate debayering for different resolutions.]]
 
 
 
 
 
<noinclude>
 
{{GStreamer Based Image Signal Processor/Foot|Performance/Color_Space_Conversion|Contact_Us}}
 
</noinclude>
 

Latest revision as of 18:13, 9 December 2019