diff options
Diffstat (limited to 'src/creator.h')
-rw-r--r-- | src/creator.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/creator.h b/src/creator.h new file mode 100644 index 0000000..b89b16c --- /dev/null +++ b/src/creator.h @@ -0,0 +1,38 @@ +/* + * render.h + * + * Created on: 26.01.2018 + * Author: rigtopa + * + */ + +#ifndef CREATOR_H_ +#define CREATOR_H_ + +#define COORDS(x, y, width) ((y)*(width)+(x)) + +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <libavcodec/avcodec.h> +#include <libavutil/frame.h> +#include <libavutil/imgutils.h> + + +AVFrame *picture; +AVPacket *pkt; + +FILE *f; + + +const AVCodec *codec; +AVCodecContext *c= NULL; +int i, ret, x, y; + +static void encode(AVCodecContext *enc_ctx, AVFrame *frame, AVPacket *pkt, FILE *outfile); + +int generateVideo(filename, int width, int height, int fps, int bitRate, Config *config, u32 (*sfunc) (long double, long double, u32)); + +void addFrame(int *frame); + +#endif /* RENDER_H_ */ |