Pipeline improvements
This commit is contained in:
10
pipeline.h
10
pipeline.h
@@ -2,16 +2,14 @@
|
||||
|
||||
#include "camera.h"
|
||||
#include "device.h"
|
||||
#include <glib.h>
|
||||
|
||||
typedef struct _MPPipeline MPPipeline;
|
||||
|
||||
typedef void (*MPPipelineCallback)(MPPipeline *, void *);
|
||||
typedef void (*MPPipelineCallback)(MPPipeline *, const void *);
|
||||
|
||||
MPPipeline *mp_pipeline_new();
|
||||
void mp_pipeline_invoke(MPPipeline *pipeline, MPPipelineCallback callback, void *data, size_t size);
|
||||
void mp_pipeline_invoke(MPPipeline *pipeline, MPPipelineCallback callback, const void *data, size_t size);
|
||||
void mp_pipeline_free(MPPipeline *pipeline);
|
||||
|
||||
typedef struct _MPPipelineCapture MPPipelineCapture;
|
||||
|
||||
MPPipelineCapture *mp_pipeline_capture_start(MPPipeline *pipeline, MPCamera *camera, void (*capture)(MPImage, void *), void *data);
|
||||
void mp_pipeline_capture_end(MPPipelineCapture *capture);
|
||||
GSource *mp_pipeline_add_capture_source(MPPipeline *pipeline, MPCamera *camera, void (*callback)(MPImage, void *), void *user_data);
|
||||
|
Reference in New Issue
Block a user