<div>
Hi,
</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>Yes, i am sure the androidmedia plugin is working in my testing,</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>but i make a mistake, i am testing again in 1080P case, the CS(NV12 -> RGBx) operation</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>costs about 70ms average time per frame …. it is too much, i use the ffmpegcolorspace plugin to do that, it's the limit of performance in my case :( </div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>is there acceleration API about for CS operation in android ? or how to use the YUV format bitmap to display ?</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>i think about this function is a standard module in HW/chip.</div>
<div><div><br></div><div>Thanks,</div><div><br></div><div>- Jojo</div><div><br></div></div>
<p style="color: #A0A0A8;">在 2013年8月30日星期五,下午3:37,Sebastian Dröge 写道:</p>
<blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
<span><div><div><div>On Do, 2013-08-29 at 16:10 +0800, jojo wrote:</div><blockquote type="cite"><div><div>Hi, </div><div>I use plugin "androidmedia" to decode video in android platform with</div><div>AVC HW decoder,</div><div><br></div><div><br></div><div>my device is: IMX6Q-SDB</div><div><br></div><div><br></div><div>my pipe line is:</div><div><br></div><div><br></div><div>video pipeline: appsrc is-live=true do-timestamp=true</div><div>caps="video/x-h264, width=1920, height=800" name="appsrc" !</div><div>decodebin2 ! queue ! ffmpegcolorspace ! appsink caps="video/x-raw-rgb,</div><div>bpp = (int) 32, depth = (int) 24, endianness = (int) BIG_ENDIAN,</div><div>red_mask = (int) 0xFF000000, green_mask = (int) 0x00FF0000, blue_mask</div><div>= (int) 0x0000FF00, width = (int) [ 1, max ], height = (int) [ 1, max</div><div>], framerate = (fraction) [ 0, max ]" name="appsink"</div><div><br></div><div><br></div><div><br></div><div><br></div><div>I collect time in "GstAppSinkCallbacks.new_buffer",</div><div><br></div><div><br></div><div>in 1080P@30FPS local case,</div><div><br></div><div><br></div><div>the average decoding time is 50 ms,</div><div><br></div><div><br></div><div>if i remove the plugin "ffmpegcolorspace" from pipe line, it costs</div><div>about 47 ms also, why ?</div><div><br></div><div><br></div><div>i think the CS convert operation should take much more then 2 ms….</div><div><br></div><div>someone have performance data for this plugin ?</div><div><br></div><div><br></div><div>and what's the best configuration about for this plugin ?</div></div></blockquote><div><br></div><div>Do some profiling to see which step exactly takes so much time. Also how</div><div>do you measure this 50ms/47ms? Having the color format conversion to RGB</div><div>take just 3ms compared to everything else seems quite low.</div><div><br></div><div>Are you sure that the androidmedia plugin is actually used in decodebin</div><div>here? If it is, another step that can take some time is that it</div><div>currently copies every frame once... but if the color format conversion</div><div>just need 3ms, the copying should take even less than that.</div></div><div><div>_______________________________________________</div><div>gstreamer-android mailing list</div><div><a href="mailto:gstreamer-android@lists.freedesktop.org">gstreamer-android@lists.freedesktop.org</a></div><div><a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-android">http://lists.freedesktop.org/mailman/listinfo/gstreamer-android</a></div></div></div></span>
</blockquote>
<div>
<br>
</div>