mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-08-21 05:53:12 -07:00
parent
8b6f9a5fc1
commit
ea79836f0f
14 changed files with 543 additions and 7 deletions
36
lib/include/chiaki/pidecoder.h
Normal file
36
lib/include/chiaki/pidecoder.h
Normal file
|
@ -0,0 +1,36 @@
|
|||
#ifndef CHIAKI_PI_DECODER_H
|
||||
#define CHIAKI_PI_DECODER_H
|
||||
|
||||
#include <chiaki/config.h>
|
||||
#include <chiaki/log.h>
|
||||
|
||||
#include <ilclient.h>
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct chiaki_pi_decoder_t
|
||||
{
|
||||
ChiakiLog *log;
|
||||
TUNNEL_T tunnel[2];
|
||||
COMPONENT_T *components[3];
|
||||
ILCLIENT_T *client;
|
||||
COMPONENT_T *video_decode;
|
||||
COMPONENT_T *video_render;
|
||||
bool port_settings_changed;
|
||||
bool first_packet;
|
||||
} ChiakiPiDecoder;
|
||||
|
||||
CHIAKI_EXPORT ChiakiErrorCode chiaki_pi_decoder_init(ChiakiPiDecoder *decoder, ChiakiLog *log);
|
||||
CHIAKI_EXPORT void chiaki_pi_decoder_fini(ChiakiPiDecoder *decoder);
|
||||
CHIAKI_EXPORT void chiaki_pi_decoder_set_params(ChiakiPiDecoder *decoder, int x, int y, int w, int h, bool visible);
|
||||
CHIAKI_EXPORT bool chiaki_pi_decoder_video_sample_cb(uint8_t *buf, size_t buf_size, void *user);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // CHIAKI_PI_DECODER_H
|
Loading…
Add table
Add a link
Reference in a new issue