[gst-cvs] gst-plugins-bad: camerabin: Create imagebin elements when image mode is set in camerabin NULL state
Thiago Sousa Santos
thiagoss at kemper.freedesktop.org
Tue Nov 23 05:24:03 PST 2010
Module: gst-plugins-bad
Branch: master
Commit: 5c2f805199c461133c8617ca1da51b84a7622cf2
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=5c2f805199c461133c8617ca1da51b84a7622cf2
Author: Lasse Laukkanen <ext-lasse.2.laukkanen at nokia.com>
Date: Fri Nov 19 17:01:41 2010 -0300
camerabin: Create imagebin elements when image mode is set in camerabin NULL state
This patch refactors imagebin element creation and linking into separate functions,
and adds re-using also for imagebin internally created elements.
So this refactoring allows creating imagebin elements already in NULL state when
application sets the image mode, and next state change from NULL to READY will be faster.
This reduces first capture latency.
Earlier the elements were both created and linked in NULL to READY state change.
---
gst/camerabin/camerabinimage.c | 326 ++++++++++++++++++++++++++++++----------
gst/camerabin/camerabinimage.h | 8 +-
gst/camerabin/gstcamerabin.c | 4 +
3 files changed, 258 insertions(+), 80 deletions(-)
Diff: http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/diff/?id=5c2f805199c461133c8617ca1da51b84a7622cf2
More information about the Gstreamer-commits
mailing list