Blender  V2.93
BKE_writeavi.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
17  * All rights reserved.
18  */
19 
20 #pragma once
21 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
30 /* generic blender movie support, could move to own module */
31 
32 struct RenderData;
33 struct ReportList;
34 struct Scene;
35 
36 typedef struct bMovieHandle {
37  int (*start_movie)(void *context_v,
38  const struct Scene *scene,
39  struct RenderData *rd,
40  int rectx,
41  int recty,
42  struct ReportList *reports,
43  bool preview,
44  const char *suffix);
45  int (*append_movie)(void *context_v,
46  struct RenderData *rd,
47  int start_frame,
48  int frame,
49  int *pixels,
50  int rectx,
51  int recty,
52  const char *suffix,
53  struct ReportList *reports);
54  void (*end_movie)(void *context_v);
55 
56  /* Optional function. */
57  void (*get_movie_path)(char *string,
58  const struct RenderData *rd,
59  bool preview,
60  const char *suffix);
61 
62  void *(*context_create)(void);
63  void (*context_free)(void *context_v);
65 
66 bMovieHandle *BKE_movie_handle_get(const char imtype);
67 void BKE_movie_filepath_get(char *string,
68  const struct RenderData *rd,
69  bool preview,
70  const char *suffix);
71 
72 #ifdef __cplusplus
73 }
74 #endif
struct bMovieHandle bMovieHandle
bMovieHandle * BKE_movie_handle_get(const char imtype)
Definition: writeavi.c:114
void BKE_movie_filepath_get(char *string, const struct RenderData *rd, bool preview, const char *suffix)
Scene scene
void(* get_movie_path)(char *string, const struct RenderData *rd, bool preview, const char *suffix)
Definition: BKE_writeavi.h:57
void(* end_movie)(void *context_v)
Definition: BKE_writeavi.h:54
int(* start_movie)(void *context_v, const struct Scene *scene, struct RenderData *rd, int rectx, int recty, struct ReportList *reports, bool preview, const char *suffix)
Definition: BKE_writeavi.h:37
void(* context_free)(void *context_v)
Definition: BKE_writeavi.h:63
int(* append_movie)(void *context_v, struct RenderData *rd, int start_frame, int frame, int *pixels, int rectx, int recty, const char *suffix, struct ReportList *reports)
Definition: BKE_writeavi.h:45