forked from ashwing920/SimpleRecorder
-
Notifications
You must be signed in to change notification settings - Fork 10
/
simplerecorder.h
27 lines (22 loc) · 895 Bytes
/
simplerecorder.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef __simplerecorder__
#define __simplerecorder__
#ifdef TRACER
#include <valgrind.h>
#define TRACE(...) VALGRIND_PRINTF(__VA_ARGS__)
#else
#define TRACE(...)
#endif
#include "picture_t.h"
void *input_init(char *filename, struct picture_t *pic);
int input_getframe(void *state, struct picture_t *pic);
int output_init(struct picture_t *info, const char *str);
int output_write_headers(struct encoded_pic_t *headers);
int output_write_frame(struct encoded_pic_t *encoded);
void output_close();
int encoder_init(struct picture_t *info);
int encoder_encode_headers(struct encoded_pic_t *headers_out);
int encoder_encode_frame(struct picture_t *raw_pic, struct encoded_pic_t *output, struct encoded_pic_t *header);
void encoder_release(struct encoded_pic_t *output);
void encoder_close();
void ResetTime(struct picture_t *raw_pic,struct encoded_pic_t *output);
#endif // __simplerecorder__