Quicktime(Carbon/win32) : add operator to raise the "compression settings" quicktime...
[blender.git] / source / blender / quicktime / quicktime_export.h
1 /* $Id$ 
2  *
3  * ***** BEGIN GPL LICENSE BLOCK *****
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License
7  * as published by the Free Software Foundation; either version 2
8  * of the License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software Foundation,
17  * Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
18  *
19  * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
20  * All rights reserved.
21  *
22  * The Original Code is: all of this file.
23  *
24  * Contributor(s): none yet.
25  *
26  * ***** END GPL LICENSE BLOCK *****
27  */
28
29 #ifndef __QUICKTIME_EXPORT_H__
30 #define __QUICKTIME_EXPORT_H__
31
32 #if defined (_WIN32) || (__APPLE__)
33
34 #define __AIFF__
35
36
37 /*Codec list*/
38 typedef struct QuicktimeCodecTypeDesc {
39         int codecType;
40         int rnatmpvalue;
41         char * codecName;
42 } QuicktimeCodecTypeDesc ;
43
44 // quicktime movie output functions
45 struct RenderData;
46 struct Scene;
47 struct wmOperatorType;
48
49 void start_qt(struct Scene *scene, struct RenderData *rd, int rectx, int recty);        //for movie handle (BKE writeavi.c now)
50 void append_qt(struct RenderData *rd, int frame, int *pixels, int rectx, int recty);
51 void end_qt(void);
52
53 /*RNA helper functions */
54 void quicktime_verify_image_type(struct RenderData *rd); //used by RNA for defaults values init, if needed
55 int quicktime_get_num_codecs();
56 QuicktimeCodecTypeDesc* quicktime_get_codecType_desc(int indexValue);
57 int quicktime_rnatmpvalue_from_codectype(int codecType);
58 int quicktime_codecType_from_rnatmpvalue(int rnatmpvalue);
59
60 #ifndef USE_QTKIT
61 void SCENE_OT_render_data_set_quicktime_codec(struct wmOperatorType *ot); //Operator to raise quicktime standard dialog to request codec settings
62 #endif
63
64
65 void free_qtcomponentdata(void);
66 void makeqtstring(struct RenderData *rd, char *string);         //for playanim.c
67
68
69
70 #if (defined(USE_QTKIT) && defined(MAC_OS_X_VERSION_10_6) && __LP64__)
71 //Include the quicktime codec types constants that are missing in QTKitDefines.h in 10.6 / 64bit
72 enum {
73         kRawCodecType                                           = 'raw ',
74         kCinepakCodecType                                       = 'cvid',
75         kGraphicsCodecType                                      = 'smc ',
76         kAnimationCodecType                             = 'rle ',
77         kVideoCodecType                                         = 'rpza',
78         kComponentVideoCodecType                        = 'yuv2',
79         kJPEGCodecType                                          = 'jpeg',
80         kMotionJPEGACodecType                           = 'mjpa',
81         kMotionJPEGBCodecType                           = 'mjpb',
82         kSGICodecType                                           = '.SGI',
83         kPlanarRGBCodecType                             = '8BPS',
84         kMacPaintCodecType                                      = 'PNTG',
85         kGIFCodecType                                           = 'gif ',
86         kPhotoCDCodecType                                       = 'kpcd',
87         kQuickDrawGXCodecType                           = 'qdgx',
88         kAVRJPEGCodecType                                       = 'avr ',
89         kOpenDMLJPEGCodecType                           = 'dmb1',
90         kBMPCodecType                                           = 'WRLE',
91         kWindowsRawCodecType                            = 'WRAW',
92         kVectorCodecType                                        = 'path',
93         kQuickDrawCodecType                             = 'qdrw',
94         kWaterRippleCodecType                           = 'ripl',
95         kFireCodecType                                          = 'fire',
96         kCloudCodecType                                         = 'clou',
97         kH261CodecType                                          = 'h261',
98         kH263CodecType                                          = 'h263',
99         kDVCNTSCCodecType                                       = 'dvc ',       /* DV - NTSC and DVCPRO NTSC (available in QuickTime 6.0 or later)*/
100         /* NOTE: kDVCProNTSCCodecType is deprecated.    */
101         /* Use kDVCNTSCCodecType instead -- as far as the codecs are concerned, */
102         /* the two data formats are identical.*/
103         kDVCPALCodecType                                        = 'dvcp',
104         kDVCProPALCodecType                             = 'dvpp',       /* available in QuickTime 6.0 or later*/
105         kDVCPro50NTSCCodecType                          = 'dv5n',
106         kDVCPro50PALCodecType                           = 'dv5p',
107         kDVCPro100NTSCCodecType                         = 'dv1n',
108         kDVCPro100PALCodecType                          = 'dv1p',
109         kDVCPROHD720pCodecType                          = 'dvhp',
110         kDVCPROHD1080i60CodecType                       = 'dvh6',
111         kDVCPROHD1080i50CodecType                       = 'dvh5',
112         kBaseCodecType                                          = 'base',
113         kFLCCodecType                                           = 'flic',
114         kTargaCodecType                                         = 'tga ',
115         kPNGCodecType                                           = 'png ',
116         kTIFFCodecType                                          = 'tiff',       /* NOTE: despite what might seem obvious from the two constants*/
117         /* below and their names, they really are correct. 'yuvu' really */
118         /* does mean signed, and 'yuvs' really does mean unsigned. Really. */
119         kComponentVideoSigned                           = 'yuvu',
120         kComponentVideoUnsigned                         = 'yuvs',
121         kCMYKCodecType                                          = 'cmyk',
122         kMicrosoftVideo1CodecType                       = 'msvc',
123         kSorensonCodecType                                      = 'SVQ1',
124         kSorenson3CodecType                             = 'SVQ3',       /* available in QuickTime 5 and later*/
125         kIndeo4CodecType                                        = 'IV41',
126         kMPEG4VisualCodecType                           = 'mp4v',
127         k64ARGBCodecType                                        = 'b64a',
128         k48RGBCodecType                                         = 'b48r',
129         k32AlphaGrayCodecType                           = 'b32a',
130         k16GrayCodecType                                        = 'b16g',
131         kMpegYUV420CodecType                            = 'myuv',
132         kYUV420CodecType                                        = 'y420',
133         kSorensonYUV9CodecType                          = 'syv9',
134         k422YpCbCr8CodecType                            = '2vuy',       /* Component Y'CbCr 8-bit 4:2:2 */
135         k444YpCbCr8CodecType                            = 'v308',       /* Component Y'CbCr 8-bit 4:4:4 */
136         k4444YpCbCrA8CodecType                          = 'v408',       /* Component Y'CbCrA 8-bit 4:4:4:4 */
137         k422YpCbCr16CodecType                           = 'v216',       /* Component Y'CbCr 10,12,14,16-bit 4:2:2*/
138         k422YpCbCr10CodecType                           = 'v210',       /* Component Y'CbCr 10-bit 4:2:2 */
139         k444YpCbCr10CodecType                           = 'v410',       /* Component Y'CbCr 10-bit 4:4:4 */
140         k4444YpCbCrA8RCodecType                         = 'r408',       /* Component Y'CbCrA 8-bit 4:4:4:4, rendering format. full range alpha, zero biased yuv*/
141         kJPEG2000CodecType                                      = 'mjp2',
142         kPixletCodecType                                        = 'pxlt',
143         kH264CodecType                                          = 'avc1'
144 };
145 #endif
146
147 #endif //(_WIN32) || (__APPLE__)
148
149 #endif  // __QUICKTIME_IMP_H__