Pipeline improvements

This commit is contained in:
Benjamin Schaaf
2020-11-26 00:31:52 +11:00
parent 0ba1a6844e
commit d2f72a9150
6 changed files with 131 additions and 69 deletions

View File

@@ -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);