/* * render.h * * Created on: 26.01.2018 * Author: rigtopa * */ #ifndef CREATOR_H_ #define CREATOR_H_ #define COORDS(x, y, width) ((y)*(width)+(x)) #include #include #include #include #include #include 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(char *filename, int width, int height, int fps, int bitRate); void addFrame(int *frame); #endif /* RENDER_H_ */