mirror of
https://github.com/mpv-player/mpv
synced 2024-12-27 01:22:30 +00:00
96a45a16af
This is basically a WIP, but it can't remain in a branch forever. A warning is print when using it as it's still a bit "shaky".
22 lines
718 B
C
22 lines
718 B
C
#ifndef MP_RECORDER_H_
|
|
#define MP_RECORDER_H_
|
|
|
|
struct mp_recorder;
|
|
struct mpv_global;
|
|
struct demux_packet;
|
|
struct sh_stream;
|
|
struct mp_recorder_sink;
|
|
|
|
struct mp_recorder *mp_recorder_create(struct mpv_global *global,
|
|
const char *target_file,
|
|
struct sh_stream **streams,
|
|
int num_streams);
|
|
void mp_recorder_destroy(struct mp_recorder *r);
|
|
void mp_recorder_mark_discontinuity(struct mp_recorder *r);
|
|
|
|
struct mp_recorder_sink *mp_recorder_get_sink(struct mp_recorder *r, int stream);
|
|
void mp_recorder_feed_packet(struct mp_recorder_sink *s,
|
|
struct demux_packet *pkt);
|
|
|
|
#endif
|