The open imaging DSP library
Loading...
Searching...
No Matches
pipeline.h
1
7#ifndef MPIX_PIPELINE_H
8#define MPIX_PIPELINE_H
9
10#include <mpix/types.h>
11
24
32
39
49int mpix_pipeline_add(struct mpix_image *img, enum mpix_op_type type, const int32_t *params,
50 size_t params_nb);
51
61int mpix_pipeline_add_array(struct mpix_image *img, int32_t array[], size_t size);
62
73int mpix_pipeline_alloc(struct mpix_base_op *first_op);
74
85void mpix_pipeline_free(struct mpix_base_op *first_op);
86
97int mpix_pipeline_set_palette(struct mpix_base_op *first_op, struct mpix_palette *palette);
98
99int mpix_pipeline_get_palette_fourcc(struct mpix_base_op *first_op, struct mpix_palette *palette);
100
110int mpix_pipeline_process(struct mpix_base_op *op, const uint8_t *buffer, size_t size);
111
112#endif
int mpix_params_nb(enum mpix_op_type type)
Get the number of parameters that an operation accepts.
int mpix_pipeline_process(struct mpix_base_op *op, const uint8_t *buffer, size_t size)
Process a buffer into a pipeline.
int mpix_pipeline_add_array(struct mpix_image *img, int32_t array[], size_t size)
Append an array of integer into a pipeline operation.
int mpix_pipeline_alloc(struct mpix_base_op *first_op)
Allocate intermediate memory for all operations of a pipeline.
void mpix_pipeline_free(struct mpix_base_op *first_op)
Free the intermediate memory as well as operations of a pipeline.
int mpix_pipeline_run_once(struct mpix_base_op *op)
Run a pipeline of operation on a single input line.
int mpix_pipeline_add(struct mpix_image *img, enum mpix_op_type type, const int32_t *params, size_t params_nb)
Add an operation to an image.
int mpix_pipeline_run_loop(struct mpix_base_op *op)
Run a pipeline of operation until there is no more input to send.
int mpix_pipeline_set_palette(struct mpix_base_op *first_op, struct mpix_palette *palette)
Set an image palette for every palette-related elements of the pipeline.
mpix_op_type
MPIX operation type identifying an operation family.
Definition types.h:21
One step of a line operation pipeline.
Definition types.h:139
Represent the image currently being processed.
Definition types.h:164
Definition types.h:190