1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
/* SPDX-License-Identifier: GPL-2.0-or-later
* Copyright 2001-2002 NaN Holding BV. All rights reserved. */
#pragma once
/** \file
* \ingroup bke
*/
#ifdef __cplusplus
extern "C" {
#endif
/* generic blender movie support, could move to own module */
struct RenderData;
struct ReportList;
struct Scene;
typedef struct bMovieHandle {
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);
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);
void (*end_movie)(void *context_v);
/* Optional function. */
void (*get_movie_path)(char *string,
const struct RenderData *rd,
bool preview,
const char *suffix);
void *(*context_create)(void);
void (*context_free)(void *context_v);
} bMovieHandle;
bMovieHandle *BKE_movie_handle_get(char imtype);
/**
* \note Similar to #BKE_image_path_from_imformat()
*/
void BKE_movie_filepath_get(char *string,
const struct RenderData *rd,
bool preview,
const char *suffix);
#ifdef __cplusplus
}
#endif
|