Blender  V3.3
BKE_writeffmpeg.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2001-2002 NaN Holding BV. All rights reserved. */
3 
4 #pragma once
5 
10 #ifdef WITH_FFMPEG
11 
12 # ifdef __cplusplus
13 extern "C" {
14 # endif
15 
16 enum {
17  FFMPEG_MPEG1 = 0,
18  FFMPEG_MPEG2 = 1,
19  FFMPEG_MPEG4 = 2,
20  FFMPEG_AVI = 3,
21  FFMPEG_MOV = 4,
22  FFMPEG_DV = 5,
23  FFMPEG_H264 = 6,
24  FFMPEG_XVID = 7,
25  FFMPEG_FLV = 8,
26  FFMPEG_MKV = 9,
27  FFMPEG_OGG = 10,
28  FFMPEG_INVALID = 11,
29  FFMPEG_WEBM = 12,
30 };
31 
32 enum {
33  FFMPEG_PRESET_NONE = 0,
34  FFMPEG_PRESET_DVD = 1,
35  FFMPEG_PRESET_SVCD = 2,
36  FFMPEG_PRESET_VCD = 3,
37  FFMPEG_PRESET_DV = 4,
38  FFMPEG_PRESET_H264 = 5,
39  FFMPEG_PRESET_THEORA = 6,
40  FFMPEG_PRESET_XVID = 7,
41 };
42 
43 struct RenderData;
44 struct ReportList;
45 struct Scene;
46 
47 int BKE_ffmpeg_start(void *context_v,
48  const struct Scene *scene,
49  struct RenderData *rd,
50  int rectx,
51  int recty,
52  struct ReportList *reports,
53  bool preview,
54  const char *suffix);
55 void BKE_ffmpeg_end(void *context_v);
56 int BKE_ffmpeg_append(void *context_v,
57  struct RenderData *rd,
58  int start_frame,
59  int frame,
60  int *pixels,
61  int rectx,
62  int recty,
63  const char *suffix,
64  struct ReportList *reports);
65 void BKE_ffmpeg_filepath_get(char *string,
66  const struct RenderData *rd,
67  bool preview,
68  const char *suffix);
69 
70 void BKE_ffmpeg_preset_set(struct RenderData *rd, int preset);
71 void BKE_ffmpeg_image_type_verify(struct RenderData *rd, const struct ImageFormatData *imf);
72 bool BKE_ffmpeg_alpha_channel_is_supported(const struct RenderData *rd);
73 
74 void *BKE_ffmpeg_context_create(void);
75 void BKE_ffmpeg_context_free(void *context_v);
76 
77 # ifdef __cplusplus
78 }
79 # endif
80 
81 #endif
Scene scene
static const pxr::TfToken preview("preview", pxr::TfToken::Immortal)