summaryrefslogtreecommitdiff
path: root/gst/camerabin/camerabinimage.h
diff options
context:
space:
mode:
authorLasse Laukkanen <ext-lasse.2.laukkanen@nokia.com>2010-11-19 17:01:41 -0300
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>2010-11-23 10:04:24 -0300
commit5c2f805199c461133c8617ca1da51b84a7622cf2 (patch)
tree90cfe14846d33cd57bf8ba1da804fa00596ed5ba /gst/camerabin/camerabinimage.h
parente307bfe6e6e8b28782281dd2af250eeb155c8881 (diff)
downloadgstreamer-plugins-bad-5c2f805199c461133c8617ca1da51b84a7622cf2.tar.gz
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.
Diffstat (limited to 'gst/camerabin/camerabinimage.h')
-rw-r--r--gst/camerabin/camerabinimage.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/gst/camerabin/camerabinimage.h b/gst/camerabin/camerabinimage.h
index 25a258cae..b116d0905 100644
--- a/gst/camerabin/camerabinimage.h
+++ b/gst/camerabin/camerabinimage.h
@@ -48,14 +48,18 @@ struct _GstCameraBinImage
/* Ghost pads of image bin */
GstPad *sinkpad;
+ /* Ordered list of elements configured to imagebin */
+ GList *elements;
+ /* Imagebin elements */
GstElement *post;
+ GstElement *csp;
GstElement *enc;
GstElement *app_enc;
GstElement *meta_mux;
GstElement *sink;
- gboolean elements_created;
GstCameraBinFlags flags;
+ gulong metadata_probe_id;
};
struct _GstCameraBinImageClass
@@ -80,5 +84,7 @@ GstElement *gst_camerabin_image_get_encoder (GstCameraBinImage * img);
GstElement *gst_camerabin_image_get_postproc (GstCameraBinImage * img);
+gboolean gst_camerabin_image_prepare_elements (GstCameraBinImage * imagebin);
+
G_END_DECLS
#endif /* #ifndef __CAMERABIN_IMAGE_H__ */