blob: acdb75c5a361d2eae569a923abc3e96da13200a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#ifndef MPLAYER_ENCODE_H
#define MPLAYER_ENCODE_H
#include <stdbool.h>
#include <libavutil/avutil.h>
struct MPOpts;
struct encode_lavc_context;
struct encode_output_conf;
// interface for mplayer.c
struct encode_lavc_context *encode_lavc_init(struct encode_output_conf *options);
void encode_lavc_finish(struct encode_lavc_context *ctx);
void encode_lavc_free(struct encode_lavc_context *ctx);
void encode_lavc_discontinuity(struct encode_lavc_context *ctx);
bool encode_lavc_showhelp(struct MPOpts *opts);
int encode_lavc_getstatus(struct encode_lavc_context *ctx, char *buf, int bufsize, float relative_position);
void encode_lavc_expect_stream(struct encode_lavc_context *ctx, enum AVMediaType mt);
void encode_lavc_set_video_fps(struct encode_lavc_context *ctx, float fps);
bool encode_lavc_didfail(struct encode_lavc_context *ctx); // check if encoding failed
#endif
|