# qtibatch

Source: [https://docs.qualcomm.com/doc/80-70022-50SC/topic/qtibatch.html](https://docs.qualcomm.com/doc/80-70022-50SC/topic/qtibatch.html)

qtibatch 插件使用帧聚合技术将多个音频/视频帧组合到一个缓存中进行预处理。批处理可以在单个流（在这种情况下，批处理大小为 1）或多个并行流中完成。

- 下游 ML 推理插件中加载的模型决定了批量大小。
- [GstCaps](https://gstreamer.freedesktop.org/documentation/gstreamer/gstcaps.html) 与上游共享批量大小。
- 创建 pipeline 时，输入源必须小于或等于批量大小。超过批量大小的输入将被忽略。
- 该插件将每个源的缓存及其相应的批次索引放置为单独的 [GstMemory](https://gstreamer.freedesktop.org/documentation/gstreamer/gstmemory.html#GstMemory) 块。
    例如，source 0 对应批次为 index 0，source 1 对应批次为 index 1。

Figure : 使用 qtibatch 的 Gstbuffer 工作流
            
            <!--?xml version="1.0" encoding="UTF-8" standalone="no"?-->

<!-- Generated by Microsoft Visio, SVG Export gstbuffer_workflow_qtibatch.svg gstbuffer_workflow_qtibatch -->
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:v="http://schemas.microsoft.com/visio/2003/SVGExtensions/" width="9.39896in" height="6.88544in" viewbox="0 0 676.725 495.752" xml:space="preserve" color-interpolation-filters="sRGB" class="st22"><v:documentproperties v:langid="1033" v:viewmarkup="false"></v:documentproperties>
<style>.svg-1 .st1 { fill: #fafafa; stroke: none; stroke-linecap: butt; stroke-width: 0.75 }
.svg-1 .st2 { stroke: #000000; stroke-linecap: butt; stroke-width: 0.75 }
.svg-1 .st3 { fill: #000000; stroke: none; stroke-linecap: butt; stroke-width: 0.75 }
.svg-1 .st4 { fill: #d2d7e1; stroke: none; stroke-linecap: butt; stroke-width: 0.75 }
.svg-1 .st5 { fill: none; stroke: none; stroke-linecap: butt; stroke-width: 0.75 }
.svg-1 .st6 { fill: #000000; font-family: Roboto; font-size: 1.00001em; font-weight: bold }
.svg-1 .st7 { fill: #000000; font-family: Roboto; font-size: 1.00001em }
.svg-1 .st8 { font-size: 1em }
.svg-1 .st9 { fill: #2a2aea; stroke: none; stroke-linecap: butt; stroke-width: 0.75 }
.svg-1 .st10 { fill: #ffffff; font-family: Roboto; font-size: 1.00001em }
.svg-1 .st11 { fill: none }
.svg-1 .st12 { fill: #007884; stroke: none; stroke-linecap: butt; stroke-width: 0.75 }
.svg-1 .st13 { stroke: #000000; stroke-dasharray: 3, 1.5; stroke-linecap: butt; stroke-width: 0.75 }
.svg-1 .st14 { fill: #ffffff; font-family: Roboto; font-size: 1.00001em; font-weight: bold }
.svg-1 .st15 { font-family: SimHei; font-size: 1em; font-weight: normal }
.svg-1 .st16 { stroke: #b3b7bf; stroke-linecap: butt; stroke-width: 0.75 }
.svg-1 .st17 { fill: #000000; font-family: SimHei; font-size: 1.00001em }
.svg-1 .st18 { font-size: 1em; font-weight: normal }
.svg-1 .st19 { font-family: Symbol; font-size: 1em; font-weight: normal }
.svg-1 .st20 { fill: #000000; font-family: Roboto; font-size: 0.874992em }
.svg-1 .st21 { fill: #000000; font-family: SimHei; font-size: 0.874992em }
.svg-1 .st22 { fill: none; fill-rule: evenodd; font-size: 12px; overflow: visible; stroke-linecap: square; stroke-miterlimit: 3 }</style>
<g v:mid="0" v:index="1" v:groupcontext="foregroundPage">	<title>gstbuffer_workflow_qtibatch</title>	<v:pageproperties v:drawingscale="1" v:pagescale="1" v:drawingunits="19" v:shadowoffsetx="9" v:shadowoffsety="-9"></v:pageproperties>	<v:layer v:name="Connector" v:index="0"></v:layer>	<g id="shape3-1" v:mid="3" v:groupcontext="shape" transform="translate(0.374828,-0.375183)">		<title>Sheet.3</title>		<path d="M0 490.13 A5.62513 5.62513 -180 0 0 5.62 495.75 L670.35 495.75 A5.62513 5.62513 -180 0 0 675.98 490.13 L675.98					 6.38 A5.62513 5.62513 -180 0 0 670.35 0.75 L5.62 0.75 A5.62513 5.62513 -180 0 0 0 6.38 L0 490.13 Z" class="st1"></path>	</g>	<g id="group191-3" transform="translate(510.22,-254.229)" v:mid="191" v:groupcontext="group">		<title>Sheet.191</title>		<g id="shape17-4" v:mid="17" v:groupcontext="shape" transform="translate(498.743,473.776) rotate(90)">			<title>Sheet.17</title>			<path d="M0 495.75 L17.67 495.75" class="st2"></path>		</g>		<g id="shape18-7" v:mid="18" v:groupcontext="shape">			<title>Sheet.18</title>			<path d="M0 490.57 L2.99 495.75 L5.98 490.57 L0 490.57 Z" class="st3"></path>		</g>	</g>	<g id="shape4-9" v:mid="4" v:groupcontext="shape">		<title>Sheet.4</title>		<path d="M670.72 0.75 C673.62 0.75 675.97 3.11 675.97 6 L675.97 489.75 C675.97 492.65 673.62 495 670.72 495 L6 495 C3.11					 495 0.75 492.65 0.75 489.75 L0.75 6 C0.75 3.11 3.11 0.75 6 0.75 L670.72 0.75 ZM670.72 0 L6 0 C2.69 0 0 2.69					 0 6 L0 489.75 C0 493.07 2.69 495.75 6 495.75 L670.72 495.75 C674.04 495.75 676.72 493.07 676.72 489.75 L676.72					 6 C676.72 2.69 674.04 0 670.72 0 Z" class="st4"></path>	</g>	<g id="shape14-11" v:mid="14" v:groupcontext="shape" transform="translate(13.5,-468.5)">		<title>Sheet.14</title>		<desc>GST BIN</desc>		<v:textblock v:margins="rect(0,0,0,0)"></v:textblock>		<v:textrect cx="310.5" cy="488.552" width="621" height="14.4"></v:textrect>		<rect x="0" y="481.352" width="621" height="14.4" class="st5"></rect>		<text x="287.7" y="492.15" class="st6" v:langid="1033"><v:paragraph v:horizalign="1"></v:paragraph><v:tablist></v:tablist>GST BIN</text>		</g>	<g id="shape20-14" v:mid="20" v:groupcontext="shape" transform="translate(429.911,856.728) rotate(180)">		<title>Sheet.20</title>		<path d="M0 495.75 L80.86 495.75" class="st2"></path>	</g>	<g id="shape21-17" v:mid="21" v:groupcontext="shape" transform="translate(344.742,-131.783)">		<title>Sheet.21</title>		<path d="M5.18 489.77 L0 492.76 L5.18 495.75 L5.18 489.77 Z" class="st3"></path>	</g>	<g id="shape22-19" v:mid="22" v:groupcontext="shape" transform="translate(103.469,-244.492)">		<title>Sheet.22</title>		<desc>video/x-raw width=1920, height=1080, format=NV12</desc>		<v:textblock v:margins="rect(0,0,0,0)"></v:textblock>		<v:textrect cx="114.766" cy="476.248" width="229.54" height="39.0077"></v:textrect>		<rect x="0" y="456.744" width="229.531" height="39.0077" class="st5"></rect>		<text x="83.51" y="472.05" class="st7" v:langid="1033"><v:paragraph v:spline="-1.4" v:horizalign="1"></v:paragraph><v:tablist></v:tablist>video/x-raw<v:newlinechar></v:newlinechar><tspan x="8.57" dy="1.4em" class="st8">width=1920, height=1080, format=NV12</tspan></text>		</g>	<g id="shape23-23" v:mid="23" v:groupcontext="shape" transform="translate(466.059,-184.5)">		<title>Sheet.23</title>		<desc>video/x-raw width=1920 height=1080 format=NV12</desc>		<v:textblock v:margins="rect(0,0,0,0)"></v:textblock>		<v:textrect cx="45" cy="471.564" width="90" height="48.375"></v:textrect>		<rect x="0" y="447.377" width="90" height="48.375" class="st5"></rect>		<text x="13.75" y="454.16" class="st7" v:langid="1033"><v:paragraph v:spline="-1.4" v:horizalign="1"></v:paragraph><v:tablist></v:tablist>video/x-raw<v:newlinechar></v:newlinechar><v:paragraph v:horizalign="1"></v:paragraph><tspan x="13.62" dy="1.25em" class="st8">width=1920 </tspan><tspan x="11.66" dy="1.2em" class="st8">height=1080 </tspan><tspan x="8.86" dy="1.2em" class="st8">format=NV12</tspan></text>		</g>	<g id="shape25-29" v:mid="25" v:groupcontext="shape" transform="translate(103.469,-162)">		<title>Sheet.25</title>		<desc>video/x-raw width=1920, height=1080, format=NV12</desc>		<v:textblock v:margins="rect(0,0,0,0)"></v:textblock>		<v:textrect cx="114.766" cy="477.495" width="229.54" height="36.5132"></v:textrect>		<rect x="0" y="459.238" width="229.531" height="36.5132" class="st5"></rect>		<text x="83.51" y="473.3" class="st7" v:langid="1033"><v:paragraph v:spline="-1.4" v:horizalign="1"></v:paragraph><v:tablist></v:tablist>video/x-raw<v:newlinechar></v:newlinechar><tspan x="8.57" dy="1.4em" class="st8">width=1920, height=1080, format=NV12</tspan></text>		</g>	<g id="shape26-33" v:mid="26" v:groupcontext="shape" transform="translate(103.469,-330.75)">		<title>Sheet.26</title>		<desc>video/x-raw width=1920, height=1080, format=NV12</desc>		<v:textblock v:margins="rect(0,0,0,0)"></v:textblock>		<v:textrect cx="114.766" cy="480.002" width="229.54" height="31.5"></v:textrect>		<rect x="0" y="464.252" width="229.531" height="31.5" class="st5"></rect>		<text x="83.51" y="475.8" class="st7" v:langid="1033"><v:paragraph v:spline="-1.4" v:horizalign="1"></v:paragraph><v:tablist></v:tablist>video/x-raw<v:newlinechar></v:newlinechar><tspan x="8.57" dy="1.4em" class="st8">width=1920, height=1080, format=NV12</tspan></text>		</g>	<g id="shape27-37" v:mid="27" v:groupcontext="shape" transform="translate(103.469,-78.75)">		<title>Sheet.27</title>		<desc>video/x-raw width=1920, height=1080, format=NV12</desc>		<v:textblock v:margins="rect(0,0,0,0)"></v:textblock>		<v:textrect cx="114.766" cy="476.627" width="229.54" height="38.25"></v:textrect>		<rect x="0" y="457.502" width="229.531" height="38.25" class="st5"></rect>		<text x="83.51" y="472.43" class="st7" v:langid="1033"><v:paragraph v:spline="-1.4" v:horizalign="1"></v:paragraph><v:tablist></v:tablist>video/x-raw<v:newlinechar></v:newlinechar><tspan x="8.57" dy="1.4em" class="st8">width=1920, height=1080, format=NV12</tspan></text>		</g>	<g id="shape29-41" v:mid="29" v:groupcontext="shape" transform="translate(469.698,-222.458)">		<title>Sheet.29</title>		<path d="M0 495.75 L82.72 495.75" class="st2"></path>	</g>	<g id="shape30-44" v:mid="30" v:groupcontext="shape" transform="translate(551.544,-219.466)">		<title>Sheet.30</title>		<path d="M0 495.75 L5.18 492.76 L0 489.77 L0 495.75 Z" class="st3"></path>	</g>	<g id="shape31-46" v:mid="31" v:groupcontext="shape" transform="translate(364.698,-203.708)">		<title>Sheet.31</title>		<desc>qtibatch</desc>		<v:textblock v:margins="rect(0,0,0,0)"></v:textblock>		<v:textrect cx="52.5" cy="477.002" width="105" height="37.5"></v:textrect>		<path d="M-0 492.75 A3.00007 3.00007 -180 0 0 3 495.75 L102 495.75 A3.00007 3.00007 -180 0 0 105 492.75 L105 461.25 A3.00007					 3.00007 -180 0 0 102 458.25 L3 458.25 A3.00007 3.00007 -180 0 0 -0 461.25 L0 492.75 Z" class="st9"></path>		<text x="30.64" y="480.6" class="st10" v:langid="1033"><v:paragraph v:horizalign="1"></v:paragraph><v:tablist></v:tablist>qtibatch</text>		</g>	<g id="shape33-49" v:mid="33" v:groupcontext="shape" transform="translate(556.725,-203.708)">		<title>Sheet.33</title>		<desc>qtimlvconverter</desc>		<v:textblock v:margins="rect(0,0,0,0)"></v:textblock>		<v:textrect cx="52.5" cy="477.002" width="105" height="37.5"></v:textrect>		<path d="M0 492.75 A3.00007 3.00007 -180 0 0 3 495.75 L102 495.75 A3.00007 3.00007 -180 0 0 105 492.75 L105 461.25 A3.00007					 3.00007 -180 0 0 102 458.25 L3 458.25 A3.00007 3.00007 -180 0 0 -0 461.25 L0 492.75 Z" class="st9"></path>		<text x="10.89" y="480.6" class="st10" v:langid="1033"><v:paragraph v:horizalign="1"></v:paragraph><v:tablist></v:tablist>qtimlvconverter</text>		</g>	<g id="shape36-52" v:mid="36" v:groupcontext="shape" transform="translate(105,-232.933)">		<title>Sheet.36</title>		<path d="M255.21 495.75 L239.79 495.75 L239.79 382.48 L0 382.48 L255.21 495.75 Z" class="st11"></path>		<path d="M255.21 495.75 L239.79 495.75 L239.79 382.48 L0 382.48" class="st2"></path>	</g>	<g id="shape37-55" v:mid="37" v:groupcontext="shape" transform="translate(359.336,-229.941)">		<title>Sheet.37</title>		<path d="M0 489.77 L5.18 492.76 L0 495.75 L0 489.77 Z" class="st3"></path>	</g>	<g id="shape39-57" v:mid="39" v:groupcontext="shape" transform="translate(105,-225.433)">		<title>Sheet.39</title>		<path d="M255.21 495.75 L229.06 495.75 L229.06 457.48 L0 457.48 L255.21 495.75 Z" class="st11"></path>		<path d="M255.21 495.75 L229.06 495.75 L229.06 457.48 L0 457.48" class="st2"></path>	</g>	<g id="shape40-60" v:mid="40" v:groupcontext="shape" transform="translate(359.336,-222.441)">		<title>Sheet.40</title>		<path d="M0 489.77 L5.18 492.76 L0 495.75 L0 489.77 Z" class="st3"></path>	</g>	<g id="shape42-62" v:mid="42" v:groupcontext="shape" transform="translate(105,-181.208)">		<title>Sheet.42</title>		<path d="M255.21 459.03 L229.06 459.03 L229.06 495.75 L0 495.75 L255.21 459.03 Z" class="st11"></path>		<path d="M255.21 459.03 L229.06 459.03 L229.06 495.75 L0 495.75" class="st2"></path>	</g>	<g id="shape43-65" v:mid="43" v:groupcontext="shape" transform="translate(359.336,-214.941)">		<title>Sheet.43</title>		<path d="M0 489.77 L5.18 492.76 L0 495.75 L0 489.77 Z" class="st3"></path>	</g>	<g id="shape45-67" v:mid="45" v:groupcontext="shape" transform="translate(105,-98.7078)">		<title>Sheet.45</title>		<path d="M255.39 384.03 L239.87 384.03 L239.68 495.75 L0 495.75 L255.39 384.03 Z" class="st11"></path>		<path d="M255.39 384.03 L239.87 384.03 L239.68 495.75 L0 495.75" class="st2"></path>	</g>	<g id="shape46-70" v:mid="46" v:groupcontext="shape" transform="translate(359.517,-207.441)">		<title>Sheet.46</title>		<path d="M0 489.77 L5.18 492.76 L0 495.75 L0 489.77 Z" class="st3"></path>	</g>	<g id="shape48-72" v:mid="48" v:groupcontext="shape" transform="translate(15,-327.458)">		<title>Sheet.48</title>		<desc>Source 0</desc>		<v:textblock v:margins="rect(0,0,0,0)"></v:textblock>		<v:textrect cx="45" cy="477.002" width="90" height="37.5"></v:textrect>		<path d="M0 492.75 A3.00007 3.00007 -180 0 0 3 495.75 L87 495.75 A3.00007 3.00007 -180 0 0 90 492.75 L90 461.25 A3.00007					 3.00007 -180 0 0 87 458.25 L3 458.25 A3.00007 3.00007 -180 0 0 -0 461.25 L0 492.75 Z" class="st12"></path>		<text x="21.51" y="480.6" class="st10" v:langid="1033"><v:paragraph v:horizalign="1"></v:paragraph><v:tablist></v:tablist>Source 0</text>		</g>	<g id="shape51-75" v:mid="51" v:groupcontext="shape" transform="translate(15,-244.958)">		<title>Sheet.51</title>		<desc>Source 1</desc>		<v:textblock v:margins="rect(0,0,0,0)"></v:textblock>		<v:textrect cx="45" cy="477.002" width="90" height="37.5"></v:textrect>		<path d="M0 492.75 A3.00007 3.00007 -180 0 0 3 495.75 L87 495.75 A3.00007 3.00007 -180 0 0 90 492.75 L90 461.25 A3.00007					 3.00007 -180 0 0 87 458.25 L3 458.25 A3.00007 3.00007 -180 0 0 -0 461.25 L0 492.75 Z" class="st12"></path>		<text x="21.51" y="480.6" class="st10" v:langid="1033"><v:paragraph v:horizalign="1"></v:paragraph><v:tablist></v:tablist>Source 1</text>		</g>	<g id="shape54-78" v:mid="54" v:groupcontext="shape" transform="translate(15,-162.458)">		<title>Sheet.54</title>		<desc>Source N-1</desc>		<v:textblock v:margins="rect(0,0,0,0)"></v:textblock>		<v:textrect cx="45" cy="477.002" width="90.01" height="37.5"></v:textrect>		<path d="M0 492.75 A3.00007 3.00007 -180 0 0 3 495.75 L87 495.75 A3.00007 3.00007 -180 0 0 90 492.75 L90 461.25 A3.00007					 3.00007 -180 0 0 87 458.25 L3 458.25 A3.00007 3.00007 -180 0 0 -0 461.25 L0 492.75 Z" class="st12"></path>		<text x="15.57" y="480.6" class="st10" v:langid="1033"><v:paragraph v:horizalign="1"></v:paragraph><v:tablist></v:tablist>Source N-1</text>		</g>	<g id="shape57-81" v:mid="57" v:groupcontext="shape" transform="translate(15,-79.9577)">		<title>Sheet.57</title>		<desc>Source N</desc>		<v:textblock v:margins="rect(0,0,0,0)"></v:textblock>		<v:textrect cx="45" cy="477.002" width="90.01" height="37.5"></v:textrect>		<path d="M0 492.75 A3.00007 3.00007 -180 0 0 3 495.75 L87 495.75 A3.00007 3.00007 -180 0 0 90 492.75 L90 461.25 A3.00007					 3.00007 -180 0 0 87 458.25 L3 458.25 A3.00007 3.00007 -180 0 0 -0 461.25 L0 492.75 Z" class="st12"></path>		<text x="20.6" y="480.6" class="st10" v:langid="1033"><v:paragraph v:horizalign="1"></v:paragraph><v:tablist></v:tablist>Source N</text>		</g>	<g id="shape60-84" v:mid="60" v:groupcontext="shape" transform="translate(555.752,254.544) rotate(90)">		<title>Sheet.60</title>		<path d="M0 495.75 L2.25 495.75" class="st2"></path>	</g>	<g id="shape61-87" v:mid="61" v:groupcontext="shape" transform="translate(555.752,258.856) rotate(90)">		<title>Sheet.61</title>		<path d="M0 495.75 L29.91 495.75" class="st13"></path>	</g>	<g id="shape62-90" v:mid="62" v:groupcontext="shape" transform="translate(555.752,289.794) rotate(90)">		<title>Sheet.62</title>		<path d="M0 495.75 L2.25 495.75" class="st2"></path>	</g>	<g id="shape64-93" v:mid="64" v:groupcontext="shape" transform="translate(391.982,-40.5)">		<title>Sheet.64</title>		<desc>GstBuffer</desc>		<v:textblock v:margins="rect(7.2,0,0,0)" v:verticalalign="0"></v:textblock>		<v:textrect cx="121.5" cy="429.65" width="243" height="132.202"></v:textrect>		<path d="M-0 492.72 A3.53484 3.0345 -180 0 0 3.53 495.75 L239.47 495.75 A3.53484 3.0345 -180 0 0 243 492.72 L243 366.58					 A3.53484 3.0345 -180 0 0 239.47 363.55 L3.53 363.55 A3.53484 3.0345 -180 0 0 0 366.58 L0 492.72 Z" class="st12"></path>		<text x="95.38" y="381.55" class="st14" v:langid="1033"><v:paragraph v:horizalign="1"></v:paragraph><v:tablist></v:tablist>GstBuffer</text>		</g>	<g id="shape66-96" v:mid="66" v:groupcontext="shape" transform="translate(398.25,-126)">		<title>Sheet.66</title>		<desc>+ GstMemory: 图像</desc>		<v:textblock v:margins="rect(0,0,0,0)"></v:textblock>		<v:textrect cx="117" cy="488.552" width="234" height="14.4"></v:textrect>		<rect x="0" y="481.352" width="234" height="14.4" class="st5"></rect>		<text x="0" y="492.55" class="st14" v:langid="1033"><v:paragraph></v:paragraph><v:tablist></v:tablist>+ GstMemory:<v:tabchar></v:tabchar><tspan dx="2.675em" class="st15">图像</tspan></text>		</g>	<g id="shape69-100" v:mid="69" v:groupcontext="shape" transform="translate(391.86,-121.607)">		<title>Sheet.69</title>		<path d="M0 495.75 L242.64 495.75" class="st16"></path>	</g>	<g id="shape113-103" v:mid="113" v:groupcontext="shape" transform="translate(392.32,-274.5)">		<title>Sheet.113</title>		<desc>GstBuffer</desc>		<v:textblock v:margins="rect(7.2,0,0,0)" v:verticalalign="0"></v:textblock>		<v:textrect cx="121.162" cy="399.95" width="242.33" height="191.603"></v:textrect>		<path d="M0 492.71 A3.00007 3.04389 -180 0 0 3 495.75 L239.32 495.75 A3.00007 3.04389 -180 0 0 242.32 492.71 L242.32					 307.19 A3.00007 3.04389 -180 0 0 239.32 304.15 L3 304.15 A3.00007 3.04389 -180 0 0 0 307.19 L0 492.71 Z" class="st12"></path>		<text x="95.04" y="322.15" class="st14" v:langid="1033"><v:paragraph v:horizalign="1"></v:paragraph><v:tablist></v:tablist>GstBuffer</text>		</g>	<g id="shape162-106" v:mid="162" v:groupcontext="shape" transform="translate(715.131,84.202) rotate(90)">		<title>Sheet.162</title>		<path d="M0 495.75 L35.51 495.75" class="st2"></path>	</g>	<g id="shape163-109" v:mid="163" v:groupcontext="shape" transform="translate(216.387,-371.732)">		<title>Sheet.163</title>		<path d="M0 490.57 L2.99 495.75 L5.98 490.57 L0 490.57 Z" class="st3"></path>	</g>	<g id="shape165-111" v:mid="165" v:groupcontext="shape" transform="translate(107.433,-411.343)">		<title>Sheet.165</title>		<desc>注意所有输入的大小写必须相同</desc>		<v:textblock v:margins="rect(0,0,0,0)"></v:textblock>		<v:textrect cx="111.946" cy="476.098" width="223.9" height="39.3072"></v:textrect>		<path d="M0 492.75 A3.00007 3.00007 -180 0 0 3 495.75 L220.89 495.75 A3.00007 3.00007 -180 0 0 223.89 492.75 L223.89					 459.44 A3.00007 3.00007 -180 0 0 220.89 456.44 L3 456.44 A3.00007 3.00007 -180 0 0 0 459.44 L0 492.75 Z" class="st4"></path>		<text x="21.95" y="480.09" class="st17" v:langid="1033"><v:paragraph v:horizalign="1"></v:paragraph><v:tablist></v:tablist>注意：所有输入的大小写必须相同</text>		</g>	<g id="shape181-114" v:mid="181" v:groupcontext="shape" transform="translate(398.25,-41.3441)">		<title>Sheet.181</title>		<desc>+ GstVideoMeta: 1920x1080 NV12 width=1920 height=1080 format=...</desc>		<v:textblock v:margins="rect(0,0,0,0)" v:verticalalign="0"></v:textblock>		<v:textrect cx="117" cy="458.156" width="234" height="75.1908"></v:textrect>		<rect x="0" y="420.561" width="234" height="75.1908" class="st5"></rect>		<text x="0" y="431.36" class="st14" v:langid="1033"><v:paragraph></v:paragraph><v:tablist></v:tablist>+ GstVideoMeta:<v:tabchar></v:tabchar><tspan dx="1.511em" class="st18">1920x1080 NV12<v:newlinechar></v:newlinechar><v:paragraph v:indentfirst="-14.4" v:indentleft="122.4" v:bullet="1"></v:paragraph></tspan><tspan x="108" dy="1.211em" class="st19" v:isbullet="true">·</tspan><tspan class="st19"> </tspan><tspan class="st18">width=1920<v:newlinechar></v:newlinechar></tspan><tspan x="108" dy="1.215em" class="st19" v:isbullet="true">·</tspan><tspan class="st19"> </tspan><tspan class="st18">height=1080<v:newlinechar></v:newlinechar></tspan><tspan x="108" dy="1.215em" class="st19" v:isbullet="true">·</tspan><tspan class="st19"> </tspan><tspan class="st18">format=NV12<v:newlinechar></v:newlinechar><v:paragraph></v:paragraph></tspan><tspan x="0" dy="1.204em" class="st18">...</tspan></text>		</g>	<g id="shape188-128" v:mid="188" v:groupcontext="shape" transform="translate(391.86,-147.6)">		<title>Sheet.188</title>		<path d="M0 495.75 L242.64 495.75" class="st16"></path>	</g>	<g id="group190-131" transform="translate(551.6,-14.4)" v:mid="190" v:groupcontext="group">		<title>Sheet.190</title>		<g id="shape7-132" v:mid="7" v:groupcontext="shape" transform="translate(15.1882,0)">			<title>Sheet.7</title>			<desc>Qualcomm</desc>			<v:textblock v:margins="rect(0,0,0,0)"></v:textblock>			<v:textrect cx="29.0729" cy="489.452" width="58.15" height="12.6"></v:textrect>			<rect x="0" y="483.152" width="58.1458" height="12.6" class="st5"></rect>			<text x="0" y="492.6" class="st20" v:langid="1033"><v:paragraph></v:paragraph><v:tablist></v:tablist>Qualcomm  </text>			</g>		<g id="shape8-135" v:mid="8" v:groupcontext="shape" transform="translate(3.09752E-14,-0.218607)">			<title>Sheet.8</title>			<path d="M0 494.25 A1.50003 1.50003 -180 0 0 1.5 495.75 L10.5 495.75 A1.50003 1.50003 -180 0 0 12 494.25 L12 485.25						 A1.50003 1.50003 -180 0 0 10.5 483.75 L1.5 483.75 A1.50003 1.50003 -180 0 0 -0 485.25 L0 494.25 Z" class="st9"></path>		</g>		<g id="shape10-137" v:mid="10" v:groupcontext="shape" transform="translate(89.1246,0)">			<title>Sheet.10</title>			<desc>开源</desc>			<v:textblock v:margins="rect(0,0,0,0)"></v:textblock>			<v:textrect cx="10.5" cy="489.452" width="21.01" height="12.6"></v:textrect>			<rect x="0" y="483.152" width="21" height="12.6" class="st5"></rect>			<text x="0" y="492.95" class="st21" v:langid="1033"><v:paragraph></v:paragraph><v:tablist></v:tablist>开源</text>			</g>		<g id="shape11-140" v:mid="11" v:groupcontext="shape" transform="translate(73.9363,-0.218607)">			<title>Sheet.11</title>			<path d="M0 494.25 A1.50003 1.50003 -180 0 0 1.5 495.75 L10.5 495.75 A1.50003 1.50003 -180 0 0 12 494.25 L12 485.25						 A1.50003 1.50003 -180 0 0 10.5 483.75 L1.5 483.75 A1.50003 1.50003 -180 0 0 0 485.25 L0 494.25 Z" class="st12"></path>		</g>	</g>	<g id="group192-142" transform="translate(392.32,-276.097)" v:mid="192" v:groupcontext="group">		<title>Sheet.192</title>		<g id="shape115-143" v:mid="115" v:groupcontext="shape" transform="translate(6.39488E-14,-165.11)">			<title>Sheet.115</title>			<path d="M0 495.75 L242.32 495.75" class="st16"></path>		</g>		<g id="shape117-146" v:mid="117" v:groupcontext="shape" transform="translate(5.92984,-81.5167)">			<title>Sheet.117</title>			<desc>+ GstMemory 0: 来自 Source 0 的图像 + GstMemory 1: 来自 Source 1 的图像...</desc>			<v:textblock v:margins="rect(0,0,0,0)" v:verticalalign="0"></v:textblock>			<v:textrect cx="119.25" cy="456.308" width="238.5" height="78.8867"></v:textrect>			<rect x="0" y="416.865" width="238.5" height="78.8867" class="st5"></rect>			<text x="0" y="428.85" class="st14" v:langid="1033"><v:paragraph></v:paragraph><v:tablist></v:tablist>+ GstMemory 0:<v:tabchar></v:tabchar><tspan dx="1.852em" class="st15">来自</tspan><tspan class="st18"> </tspan><tspan class="st18">Source 0 </tspan><tspan class="st15">的图像<v:newlinechar></v:newlinechar></tspan><tspan x="0" dy="1.331em" class="st8">+ GstMemory 1:<v:tabchar></v:tabchar></tspan><tspan dx="1.852em" class="st15">来自</tspan><tspan class="st18"> </tspan><tspan class="st18">Source 1 </tspan><tspan class="st15">的图像<v:newlinechar></v:newlinechar></tspan><tspan x="0" dy="1.233em" class="st18">...<v:newlinechar></v:newlinechar></tspan><tspan x="0" dy="1.298em" class="st8">+ GstMemory N</tspan>-1:<v:tabchar></v:tabchar><tspan dx="0.759em" class="st15">来自</tspan><tspan class="st18"> </tspan><tspan class="st18">Source N</tspan><tspan class="st18">-</tspan><tspan class="st18">1 </tspan><tspan class="st15">的图像<v:newlinechar></v:newlinechar></tspan><tspan x="0" dy="1.331em" class="st8">+ GstMemory N:<v:tabchar></v:tabchar></tspan><tspan dx="1.72em" class="st15">来自</tspan><tspan class="st18"> </tspan><tspan class="st18">Source N </tspan><tspan class="st15">的图像</tspan></text>			</g>		<g id="shape118-171" v:mid="118" v:groupcontext="shape" transform="translate(5.92984,0)">			<title>Sheet.118</title>			<desc>+ GstVideoMeta: 1920x1080 NV12 width=1920 height=1080 format=...</desc>			<v:textblock v:margins="rect(0,0,0,0)" v:verticalalign="0"></v:textblock>			<v:textrect cx="119.25" cy="458.156" width="238.5" height="75.1908"></v:textrect>			<rect x="0" y="420.561" width="238.5" height="75.1908" class="st5"></rect>			<text x="0" y="431.36" class="st14" v:langid="1033"><v:paragraph></v:paragraph><v:tablist></v:tablist>+ GstVideoMeta:<v:tabchar></v:tabchar><tspan dx="1.511em" class="st18">1920x1080 NV12<v:newlinechar></v:newlinechar><v:paragraph v:indentfirst="-14.4" v:indentleft="122.4" v:bullet="1"></v:paragraph></tspan><tspan x="108" dy="1.211em" class="st19" v:isbullet="true">·</tspan><tspan class="st19"> </tspan><tspan class="st18">width=1920<v:newlinechar></v:newlinechar></tspan><tspan x="108" dy="1.215em" class="st19" v:isbullet="true">·</tspan><tspan class="st19"> </tspan><tspan class="st18">height=1080<v:newlinechar></v:newlinechar></tspan><tspan x="108" dy="1.215em" class="st19" v:isbullet="true">·</tspan><tspan class="st19"> </tspan><tspan class="st18">format=NV12<v:newlinechar></v:newlinechar><v:paragraph></v:paragraph></tspan><tspan x="0" dy="1.204em" class="st18">...</tspan></text>			</g>	</g>	<g id="group194-185" transform="translate(392.32,-355.5)" v:mid="194" v:groupcontext="group">		<title>Sheet.194</title>		<g id="shape116-186" v:mid="116" v:groupcontext="shape">			<title>Sheet.116</title>			<path d="M0 495.75 L242.32 495.75" class="st16"></path>		</g>	</g></g>
</svg>

## 继承链

[GObject](https://docs.gtk.org/gobject/) → [GstObject](https://gstreamer.freedesktop.org/documentation/gstreamer/gstobject.html?gi-language=c) → [GstElement](https://gstreamer.freedesktop.org/documentation/gstreamer/gstelement.html?gi-language=c) → GstBatch

## 端口配置

| 端口名称 | 功能 | 功能 |
| --- | --- | --- |
| SINK 模板：'sink\_%u'<br><ul class="ul" id="qtibatch__ul_czn_wdk_pcc"><br>                                    <li class="li"><em class="ph i">可用性：</em> 按需</li><br><br>                                    <li class="li"><em class="ph i">方向：</em> 接收</li><br><br>                                </ul> | video/x-raw (ANY) | video/x-raw (ANY) |
| SINK 模板：'sink\_%u'<br><ul class="ul" id="qtibatch__ul_czn_wdk_pcc"><br>                                    <li class="li"><em class="ph i">可用性：</em> 按需</li><br><br>                                    <li class="li"><em class="ph i">方向：</em> 接收</li><br><br>                                </ul> | audio/x-raw (ANY) | audio/x-raw (ANY) |
| SRC 模板：'src'<br><ul class="ul" id="qtibatch__ul_dzn_wdk_pcc"><br>                                    <li class="li"><em class="ph i">可用性：</em> 始终可用</li><br><br>                                    <li class="li"><em class="ph i">方向：</em> 发送</li><br><br>                                </ul> | video/x-raw (ANY) | video/x-raw (ANY) |
| SRC 模板：'src'<br><ul class="ul" id="qtibatch__ul_dzn_wdk_pcc"><br>                                    <li class="li"><em class="ph i">可用性：</em> 始终可用</li><br><br>                                    <li class="li"><em class="ph i">方向：</em> 发送</li><br><br>                                </ul> | audio/x-raw (ANY) | audio/x-raw (ANY) |
|  |  |  |

## 元素配置

Table : qtibatch 的元素属性

| 属性 | 说明 |
| --- | --- |
| name | 对象名称<br><ul class="ul" id="qtibatch__ul_sq3_12k_pcc"><br>                                    <li class="li">标志：可读、可写</li><br><br>                                    <li class="li">字符串。默认：“batch0”</li><br><br>                                </ul> |
| parent | 对象的父级<br><ul class="ul" id="qtibatch__ul_tq3_12k_pcc"><br>                                    <li class="li">标志：可读、可写</li><br><br>                                    <li class="li">"GstObject" 类型的对象</li><br><br>                                </ul> |

**Parent Topic:** [配置 ML 插件](https://docs.qualcomm.com/doc/80-70022-50SC/topic/inferencing-plugins.html)

Last Published: Nov 05, 2025

[Previous Topic
qtimlaconverter](https://docs.qualcomm.com/bundle/publicresource/80-70022-50SC/topics/qtimlaconverter.md) [Next Topic
qtimlsnpe](https://docs.qualcomm.com/bundle/publicresource/80-70022-50SC/topics/qtimlsnpe.md)