summaryrefslogtreecommitdiffstats
path: root/common/recorder.h
blob: c0b1e36495ce13d257b73731195314463371e5e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#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,
                                              struct sh_stream *stream);
void mp_recorder_feed_packet(struct mp_recorder_sink *s,
                             struct demux_packet *pkt);

#endif