2022-10-25 09:23:44 +00:00
|
|
|
#ifndef __ENCODER_H__
|
|
|
|
#define __ENCODER_H__
|
|
|
|
|
2023-03-31 15:33:30 +00:00
|
|
|
#include "parameters.h"
|
|
|
|
|
2022-08-15 15:37:49 +00:00
|
|
|
typedef void encoder_t;
|
|
|
|
|
2022-10-25 10:14:37 +00:00
|
|
|
typedef void (*encoder_output_cb)(uint64_t ts, const uint8_t *buf, uint64_t size);
|
2022-08-15 15:37:49 +00:00
|
|
|
|
|
|
|
const char *encoder_get_error();
|
2023-02-13 11:12:04 +00:00
|
|
|
bool encoder_create(const parameters_t *params, int stride, int colorspace, encoder_output_cb output_cb, encoder_t **enc);
|
2022-08-15 15:37:49 +00:00
|
|
|
void encoder_encode(encoder_t *enc, int buffer_fd, size_t size, int64_t timestamp_us);
|
2022-10-25 09:23:44 +00:00
|
|
|
|
|
|
|
#endif
|