camerabingeneral
Common helper functions for camerabin.
GstCameraBinPreviewPipelineData
Members
pipeline
(GstElement *)
–
appsrc
(GstElement *)
–
filter
(GstElement *)
–
appsink
(GstElement *)
–
vscale
(GstElement *)
–
element
(GstElement *)
–
pending_preview_caps
(GstCaps *)
–
processing
(guint)
–
processing_lock
(GMutex)
–
processing_cond
(GCond)
–
Functions
gst_camerabin_create_preview_pipeline
GstCameraBinPreviewPipelineData * gst_camerabin_create_preview_pipeline (GstElement * element, GstElement * filter)
Creates a new previewing pipeline that can receive buffers to be posted as camerabin preview messages for element
Parameters:
element
–
Owner of this pipeline
filter
–
Custom filter to process preview data (an extra ref is taken)
Returns
–
The newly created GstCameraBinPreviewPipelineData
gst_camerabin_destroy_preview_pipeline
gst_camerabin_destroy_preview_pipeline (GstCameraBinPreviewPipelineData * preview)
Frees a GstCameraBinPreviewPipelineData
Parameters:
preview
–
gst_camerabin_preview_pipeline_post
gboolean gst_camerabin_preview_pipeline_post (GstCameraBinPreviewPipelineData * preview, GstSample * sample)
Converts the sample to the desired format and posts the preview message to the bus.
Parameters:
preview
–
sample
–
the sample to be posted as a preview
Returns
–
TRUE on success
gst_camerabin_preview_set_caps
gst_camerabin_preview_set_caps (GstCameraBinPreviewPipelineData * preview, GstCaps * caps)
The caps that preview buffers should have when posted on the bus
gst_camerabin_preview_set_filter
gboolean gst_camerabin_preview_set_filter (GstCameraBinPreviewPipelineData * preview, GstElement * filter)
Set the filter element into preview pipeline.
Parameters:
preview
–
filter
–
Custom filter to process preview data (an extra ref is taken)
Returns
–
TRUE on success
The results of the search are