2 * ***** BEGIN GPL LICENSE BLOCK *****
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software Foundation,
16 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
19 * All rights reserved.
21 * The Original Code is: all of this file.
23 * Contributor(s): none yet.
25 * ***** END GPL LICENSE BLOCK *****
28 #ifndef BKE_WRITEFFMPEG_H
29 #define BKE_WRITEFFMPEG_H
31 /** \file BKE_writeffmpeg.h
41 #define FFMPEG_MPEG1 0
42 #define FFMPEG_MPEG2 1
43 #define FFMPEG_MPEG4 2
55 #define FFMPEG_PRESET_NONE 0
56 #define FFMPEG_PRESET_DVD 1
57 #define FFMPEG_PRESET_SVCD 2
58 #define FFMPEG_PRESET_VCD 3
59 #define FFMPEG_PRESET_DV 4
60 #define FFMPEG_PRESET_H264 5
61 #define FFMPEG_PRESET_THEORA 6
62 #define FFMPEG_PRESET_XVID 7
69 extern int start_ffmpeg(struct Scene *scene, struct RenderData *rd, int rectx, int recty, struct ReportList *reports);
70 extern void end_ffmpeg(void);
71 extern int append_ffmpeg(struct RenderData *rd, int start_frame, int frame, int *pixels,
72 int rectx, int recty, struct ReportList *reports);
73 void filepath_ffmpeg(char* string, struct RenderData* rd);
75 extern void ffmpeg_set_preset(struct RenderData *rd, int preset);
76 extern void ffmpeg_verify_image_type(struct RenderData *rd, struct ImageFormatData *imf);
78 extern struct IDProperty *ffmpeg_property_add(struct RenderData *Rd, const char *type, int opt_index, int parent_index);
79 extern int ffmpeg_property_add_string(struct RenderData *rd, const char *type, const char *str);
80 extern void ffmpeg_property_del(struct RenderData *rd, void *type, void *prop_);