[Bug 764201] Provide fast path for I420 to BGRA (and/or RGBA) conversion and back
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Thu Apr 21 14:41:07 UTC 2016
https://bugzilla.gnome.org/show_bug.cgi?id=764201
--- Comment #3 from Wim Taymans <wim.taymans at gmail.com> ---
With I420 formats, quite a bit of time is spent in the restoration of the
chroma samples. You can disable that with:
chroma-mode=none on videoconvert. To compare:
gst-launch-1.0 videotestsrc ! imagefreeze ! video/x-raw,format=I420 !
videoconvert ! video/x-raw,format=BGR ! fakesink num-buffers=10000
Execution ended after 0:00:02.915934335
gst-launch-1.0 videotestsrc ! imagefreeze ! video/x-raw,format=I420 !
videoconvert chroma-mode=3 ! video/x-raw,format=BGR ! fakesink
num-buffers=10000
Execution ended after 0:00:01.964299628
And:
gst-launch-1.0 videotestsrc ! imagefreeze ! video/x-raw,format=BGRA !
videoconvert chroma-mode=0 ! video/x-raw,format=I420 ! fakesink
num-buffers=10000
Execution ended after 0:00:02.046383592
gst-launch-1.0 videotestsrc ! imagefreeze ! video/x-raw,format=BGRA !
videoconvert chroma-mode=3 ! video/x-raw,format=I420 ! fakesink
num-buffers=10000
Execution ended after 0:00:01.723934187
for comparison this is quite a bit faster:
gst-launch-1.0 videotestsrc ! imagefreeze ! video/x-raw,format=I420 !
videoconvert chroma-mode=0 ! video/x-raw,format=BGRA ! fakesink
num-buffers=10000
Execution ended after 0:00:00.850462115
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list