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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 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
37 #define FFMPEG_MPEG1 0
38 #define FFMPEG_MPEG2 1
39 #define FFMPEG_MPEG4 2
49 #define FFMPEG_PRESET_NONE 0
50 #define FFMPEG_PRESET_DVD 1
51 #define FFMPEG_PRESET_SVCD 2
52 #define FFMPEG_PRESET_VCD 3
53 #define FFMPEG_PRESET_DV 4
54 #define FFMPEG_PRESET_H264 5
55 #define FFMPEG_PRESET_THEORA 6
56 #define FFMPEG_PRESET_XVID 7
61 extern void start_ffmpeg(struct RenderData *rd, int rectx, int recty);
62 extern void end_ffmpeg(void);
63 extern void append_ffmpeg(struct RenderData *rd, int frame, int *pixels, int rectx, int recty);
65 extern void ffmpeg_set_preset(struct RenderData *rd, int preset);
66 extern void ffmpeg_verify_image_type(struct RenderData *rd);
68 extern struct IDProperty *ffmpeg_property_add(struct RenderData *Rd, char *type, int opt_index, int parent_index);
69 extern int ffmpeg_property_add_string(struct RenderData *rd, const char *type, const char *str);
70 extern void ffmpeg_property_del(struct RenderData *rd, void *type, void *prop_);