golanggohlsrtmpwebrtcmedia-serverobs-studiortcprtmp-proxyrtmp-serverrtprtsprtsp-proxyrtsp-relayrtsp-serversrtstreamingwebrtc-proxy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
430 B
14 lines
430 B
#ifndef __ENCODER_H__ |
|
#define __ENCODER_H__ |
|
|
|
#include "parameters.h" |
|
|
|
typedef void encoder_t; |
|
|
|
typedef void (*encoder_output_cb)(uint64_t ts, const uint8_t *buf, uint64_t size); |
|
|
|
const char *encoder_get_error(); |
|
bool encoder_create(const parameters_t *params, int stride, int colorspace, encoder_output_cb output_cb, encoder_t **enc); |
|
void encoder_encode(encoder_t *enc, int buffer_fd, size_t size, int64_t timestamp_us); |
|
|
|
#endif
|
|
|