4 * ***** BEGIN GPL LICENSE BLOCK *****
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software Foundation,
18 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
21 * All rights reserved.
23 * The Original Code is: all of this file.
25 * Contributor(s): none yet.
27 * ***** END GPL LICENSE BLOCK *****
29 #ifndef DNA_SCENE_TYPES_H
30 #define DNA_SCENE_TYPES_H
36 #include "DNA_brush_types.h"
37 #include "DNA_vec_types.h"
38 #include "DNA_listBase.h"
39 #include "DNA_scriptlink_types.h"
52 struct Base *next, *prev;
53 unsigned int lay, selcol;
56 struct Object *object;
59 typedef struct AviCodecData {
60 void *lpFormat; /* save format */
61 void *lpParms; /* compressor options */
62 unsigned int cbFormat; /* size of lpFormat buffer */
63 unsigned int cbParms; /* size of lpParms buffer */
65 unsigned int fccType; /* stream type, for consistency */
66 unsigned int fccHandler; /* compressor */
67 unsigned int dwKeyFrameEvery; /* keyframe rate */
68 unsigned int dwQuality; /* compress quality 0-10,000 */
69 unsigned int dwBytesPerSecond; /* bytes per second */
70 unsigned int dwFlags; /* flags... see below */
71 unsigned int dwInterleaveEvery; /* for non-video streams only */
74 char avicodecname[128];
77 typedef struct QuicktimeCodecData {
79 void *cdParms; /* codec/compressor options */
80 void *pad; /* padding */
82 unsigned int cdSize; /* size of cdParms buffer */
83 unsigned int pad2; /* padding */
85 char qtcodecname[128];
88 typedef struct FFMpegCodecData {
102 IDProperty *properties;
106 typedef struct AudioData {
108 float main; /* Main mix in dB */
113 typedef struct SceneRenderLayer {
114 struct SceneRenderLayer *next, *prev;
118 struct Material *mat_override;
119 struct Group *light_override;
121 unsigned int lay; /* scene->lay itself has priority over this */
122 unsigned int lay_zmask; /* has to be after lay, this is for Z-masking */
127 int passflag; /* pass_xor has to be after passflag */
132 #define SCE_LAY_SOLID 1
133 #define SCE_LAY_ZTRA 2
134 #define SCE_LAY_HALO 4
135 #define SCE_LAY_EDGE 8
136 #define SCE_LAY_SKY 16
137 #define SCE_LAY_STRAND 32
138 /* flags between 32 and 0x8000 are set to 1 already, for future options */
140 #define SCE_LAY_ALL_Z 0x8000
141 #define SCE_LAY_XOR 0x10000
142 #define SCE_LAY_DISABLE 0x20000
143 #define SCE_LAY_ZMASK 0x40000
144 #define SCE_LAY_NEG_ZMASK 0x80000
147 #define SCE_PASS_COMBINED 1
149 #define SCE_PASS_RGBA 4
150 #define SCE_PASS_DIFFUSE 8
151 #define SCE_PASS_SPEC 16
152 #define SCE_PASS_SHADOW 32
153 #define SCE_PASS_AO 64
154 #define SCE_PASS_REFLECT 128
155 #define SCE_PASS_NORMAL 256
156 #define SCE_PASS_VECTOR 512
157 #define SCE_PASS_REFRACT 1024
158 #define SCE_PASS_INDEXOB 2048
159 #define SCE_PASS_UV 4096
160 #define SCE_PASS_RADIO 8192
161 #define SCE_PASS_MIST 16384
163 /* note, srl->passflag is treestore element 'nr' in outliner, short still... */
166 typedef struct RenderData {
168 struct AviCodecData *avicodecdata;
169 struct QuicktimeCodecData *qtcodecdata;
170 struct FFMpegCodecData ffcodecdata;
171 struct AudioData audio; /* new in 2.5 */
173 int cfra, sfra, efra; /* frames as in 'images' */
174 int psfra, pefra; /* start+end frames of preview range */
176 int images, framapto;
179 float ctime; /* use for calcutions */
180 float framelen, blurfac;
182 /** For UR edge rendering: give the edges this color */
183 float edgeR, edgeG, edgeB;
185 short fullscreen, xplay, yplay, freqplay; /* standalone player */
186 short depth, attrib, rt1, rt2; /* standalone player */
188 short stereomode; /* standalone player stereo settings */
190 short dimensionspreset; /* for the dimensions presets menu */
192 short filtertype; /* filter is box, tent, gauss, mitch, etc */
194 short size, maximsize; /* size in %, max in Kb */
197 * The desired number of pixels in the x direction
201 * The desired number of pixels in the y direction
205 * The number of part to use in the x direction
209 * The number of part to use in the y direction
213 short winpos, planes, imtype, subimtype;
216 /* 0: Enable backbuffering for images */
220 short rpad, rpad1, rpad2;
223 * Flags for render settings. Use bit-masking to access the settings.
228 * Flags for render settings. Use bit-masking to access the settings.
232 /* render engine, octree resolution */
233 short renderer, ocres;
236 * What to do with the sky/background. Picks sky/premul/key
237 * blending for the background
242 * The number of samples to use per pixel.
246 short frs_sec, edgeint;
248 /* safety, border and display rect */
252 /* information on different layers to be rendered */
257 * Adjustment factors for the aspect ratio in the x direction, was a short in 2.45
261 * Adjustment factors for the aspect ratio in the x direction, was a short in 2.45
268 * Value used to define filter size for all filter options */
271 /** post-production settings. Depricated, but here for upwards compat (initialized to 1) */
272 float postmul, postgamma, posthue, postsat;
274 /* Dither noise intensity */
275 float dither_intensity;
277 /* Bake Render options */
278 short bake_osa, bake_filter, bake_mode, bake_flag;
279 short bake_normal_space, bake_quad_split;
280 float bake_maxdist, bake_biasdist, bake_pad;
282 /* yafray: global panel params. TODO: move elsewhere */
283 short GIquality, GIcache, GImethod, GIphotons, GIdirect;
284 short YF_AA, YFexportxml, YF_nobump, YF_clamprgb, yfpad1;
285 int GIdepth, GIcausdepth, GIpixelspersample;
286 int GIphotoncount, GImixphotons;
287 float GIphotonradius;
288 int YF_raydepth, YF_AApasses, YF_AAsamples, yfpad2;
289 float GIshadowquality, GIrefinement, GIpower, GIindirpower;
290 float YF_gamma, YF_exposure, YF_raybias, YF_AApixelsize, YF_AAthreshold;
292 /* paths to backbufffer, output, ftype */
293 char backbuf[160], pic[160];
297 short stamp_font_id, pad3; /* select one of blenders bitmap fonts */
299 /* stamp info user data. */
300 char stamp_udata[160];
302 /* foreground/background color. */
306 /* render simplify */
307 int simplify_subsurf;
308 int simplify_shadowsamples;
309 float simplify_particles;
310 float simplify_aosss;
313 short cineonwhite, cineonblack;
317 short jp2_preset, jp2_depth;
321 /* control render convert and shading engine */
322 typedef struct RenderProfile {
323 struct RenderProfile *next, *prev;
328 short shadbufsample_max;
331 float ao_error, pad2;
335 typedef struct GameFraming {
337 char type, pad1, pad2, pad3;
340 #define SCE_GAMEFRAMING_BARS 0
341 #define SCE_GAMEFRAMING_EXTEND 1
342 #define SCE_GAMEFRAMING_SCALE 2
344 typedef struct TimeMarker {
345 struct TimeMarker *next, *prev;
351 typedef struct ImagePaintSettings {
355 /* for projection painting only */
356 short seam_bleed,normal_angle;
358 void *paintcursor; /* wm handle */
359 } ImagePaintSettings;
361 typedef struct ParticleBrushData {
362 short size, strength; /* common settings */
363 short step, invert; /* for specific brushes only */
366 typedef struct ParticleEditSettings {
372 ParticleBrushData brush[7]; /* 7 = PE_TOT_BRUSH */
373 void *paintcursor; /* runtime */
377 } ParticleEditSettings;
379 typedef struct TransformOrientation {
380 struct TransformOrientation *next, *prev;
383 } TransformOrientation;
385 struct SculptSession;
386 typedef struct Sculpt
388 /* Note! a deep copy of this struct must be done header_info.c's copy_scene function */
389 /* Data stored only from entering sculptmode until exiting sculptmode */
390 struct SculptSession *session;
393 /* For rotating around a pivot point */
396 /* For the Brush Shape */
398 /* Control tablet input */
399 char tablet_size, tablet_strength;
403 typedef struct VPaint {
404 float r, g, b, a; /* paint color */
405 float weight; /* weight paint */
406 float size; /* of brush */
409 int tot; /* allocation size of prev buffers */
410 unsigned int *vpaint_prev; /* previous mesh colors */
411 struct MDeformVert *wpaint_prev; /* previous vertex weights */
413 void *paintcursor; /* wm handle */
417 #define VP_COLINDEX 1
422 #define VP_MIRROR_X 32
424 #define VP_ONLYVGROUP 128
427 typedef struct ToolSettings {
428 VPaint *vpaint; /* vertex paint */
429 VPaint *wpaint; /* weight paint */
432 /* Subdivide Settings */
435 /*Triangle to Quad conversion threshold*/
445 /* Primitive Settings */
450 /* Cylinder - Tube - Circle */
456 float uvcalc_cubesize;
458 short uvcalc_mapalign;
460 short uv_flag, uv_selectmode;
464 short autoik_chainlen;
466 /* Image Paint (8 byttse aligned please!) */
467 struct ImagePaintSettings imapaint;
469 /* Particle Editing */
470 struct ParticleEditSettings particle;
472 /* Select Group Threshold */
480 char retopo_paint_tool;
481 char line_div, ellipse_div, retopo_hotspot;
484 char multires_subdiv_type;
486 /* Skeleton generation */
487 short skgen_resolution;
488 float skgen_threshold_internal;
489 float skgen_threshold_external;
490 float skgen_length_ratio;
491 float skgen_length_limit;
492 float skgen_angle_limit;
493 float skgen_correlation_limit;
494 float skgen_symmetry_limit;
495 float skgen_retarget_angle_weight;
496 float skgen_retarget_length_weight;
497 float skgen_retarget_distance_weight;
500 char skgen_postpro_passes;
501 char skgen_subdivisions[3];
502 char skgen_multi_level;
503 char skgen_optimisation_method;
511 typedef struct bStats {
512 /* scene totals for visible layers */
513 int totobj, totlamp, totobjsel, totcurve, totmesh, totarmature;
514 int totvert, totface;
518 typedef struct Scene {
520 struct AnimData *adt; /* animation data (must be immediately after id for utilities to use it) */
522 struct Object *camera;
530 struct Object *obedit; /* name replaces old G.obedit */
533 float twcent[3]; /* center for transform widget */
534 float twmin[3], twmax[3]; /* boundbox of selection for transform widget */
538 float editbutsize; /* size of normals */
539 short selectmode; /* for mesh only! */
540 short proportional, prop_mode;
541 short automerge, pad5;
543 short flag; /* various settings */
544 short autokey_mode; /* mode for autokeying (defines in DNA_userdef_types.h) */
548 struct bNodeTree *nodetree;
550 void *ed; /* sequence editor data is allocated here */
553 struct GameFraming framing;
555 struct ToolSettings *toolsettings; /* default allocated now */
556 struct SceneStats *stats; /* default allocated now */
558 /* migrate or replace? depends on some internal things... */
559 /* no, is on the right place (ton) */
561 struct AudioData audio; /* DEPRICATED 2.5 */
563 ScriptLink scriptlink;
566 ListBase transform_spaces;
569 short snap_mode, snap_flag, snap_target;
571 /* none of the dependancy graph vars is mean to be saved */
572 struct DagForest *theDag;
573 short dagisvalid, dagflags;
574 short pad4, recalc; /* recalc = counterpart of ob->recalc */
579 /* User-Defined KeyingSets */
580 int active_keyingset; /* index of the active KeyingSet. first KeyingSet has index 1 */
581 ListBase keyingsets; /* KeyingSets for the given frame */
585 /* **************** RENDERDATA ********************* */
589 #define R_BACKBUFANIM 2
591 #define R_FRONTBUFANIM 8
595 #define R_SHADOW 0x0002
596 #define R_GAMMA 0x0004
597 #define R_ORTHO 0x0008
598 #define R_ENVMAP 0x0010
599 #define R_EDGE 0x0020
600 #define R_FIELDS 0x0040
601 #define R_FIELDSTILL 0x0080
602 #define R_RADIO 0x0100
603 #define R_BORDER 0x0200
604 #define R_PANORAMA 0x0400
605 #define R_CROP 0x0800
606 #define R_COSMO 0x1000
607 #define R_ODDFIELD 0x2000
608 #define R_MBLUR 0x4000
609 /* unified was here */
610 #define R_RAYTRACE 0x10000
611 /* R_GAUSS is obsolete, but used to retrieve setting from old files */
612 #define R_GAUSS 0x20000
613 /* fbuf obsolete... */
614 #define R_FBUF 0x40000
615 /* threads obsolete... is there for old files, now use for autodetect threads */
616 #define R_THREADS 0x80000
617 /* Use the same flag for autothreads */
618 #define R_FIXED_THREADS 0x80000
620 #define R_SPEED 0x100000
621 #define R_SSS 0x200000
622 #define R_NO_OVERWRITE 0x400000 /* skip existing files */
623 #define R_TOUCH 0x800000 /* touch files before rendering */
624 #define R_SIMPLIFY 0x1000000
628 #define R_FILTER_BOX 0
629 #define R_FILTER_TENT 1
630 #define R_FILTER_QUAD 2
631 #define R_FILTER_CUBIC 3
632 #define R_FILTER_CATROM 4
633 #define R_FILTER_GAUSS 5
634 #define R_FILTER_MITCH 6
635 #define R_FILTER_FAST_GAUSS 7 /* note, this is only used for nodes at the moment */
637 /* yafray: renderer flag (not only exclusive to yafray) */
641 /* scemode (int now) */
642 #define R_DOSEQ 0x0001
643 #define R_BG_RENDER 0x0002
644 /* passepartout is camera option now, keep this for backward compatibility */
645 #define R_PASSEPARTOUT 0x0004
646 #define R_PREVIEWBUTS 0x0008
647 #define R_EXTENSION 0x0010
648 #define R_NODE_PREVIEW 0x0020
649 #define R_DOCOMP 0x0040
650 #define R_COMP_CROP 0x0080
651 #define R_FREE_IMAGE 0x0100
652 #define R_SINGLE_LAYER 0x0200
653 #define R_EXR_TILE_FILE 0x0400
654 #define R_COMP_FREE 0x0800
655 #define R_NO_IMAGE_LOAD 0x1000
656 #define R_NO_TEX 0x2000
657 #define R_STAMP_INFO 0x4000
658 #define R_FULL_SAMPLE 0x8000
659 #define R_COMP_RERENDER 0x10000
662 #define R_STAMP_TIME 0x0001
663 #define R_STAMP_FRAME 0x0002
664 #define R_STAMP_DATE 0x0004
665 #define R_STAMP_CAMERA 0x0008
666 #define R_STAMP_SCENE 0x0010
667 #define R_STAMP_NOTE 0x0020
668 #define R_STAMP_DRAW 0x0040 /* draw in the image */
669 #define R_STAMP_MARKER 0x0080
670 #define R_STAMP_FILENAME 0x0100
671 #define R_STAMP_SEQSTRIP 0x0200
675 #define R_ALPHAPREMUL 1
679 #define R_PLANES24 24
680 #define R_PLANES32 32
687 #define R_FTYPE 3 /* ftype is nomore */
695 #define R_AVICODEC 18
696 #define R_QUICKTIME 19
702 #define R_FRAMESERVER 25
705 #define R_MULTILAYER 28
709 /* subimtype, flag options for imtype */
710 #define R_OPENEXR_HALF 1
711 #define R_OPENEXR_ZBUF 2
712 #define R_PREVIEW_JPG 4
713 #define R_CINEON_LOG 8
714 #define R_TIFF_16BIT 16
716 #define R_JPEG2K_12BIT 32 /* Jpeg2000 */
717 #define R_JPEG2K_16BIT 64
718 #define R_JPEG2K_YCC 128 /* when disabled use RGB */
719 #define R_JPEG2K_CINE_PRESET 256
720 #define R_JPEG2K_CINE_48FPS 512
723 /* bake_mode: same as RE_BAKE_xxx defines */
725 #define R_BAKE_CLEAR 1
727 #define R_BAKE_TO_ACTIVE 4
728 #define R_BAKE_NORMALIZE 8
730 /* bake_normal_space */
731 #define R_BAKE_SPACE_CAMERA 0
732 #define R_BAKE_SPACE_WORLD 1
733 #define R_BAKE_SPACE_OBJECT 2
734 #define R_BAKE_SPACE_TANGENT 3
736 /* **************** SCENE ********************* */
738 /* for general use */
739 #define MAXFRAME 300000
740 #define MAXFRAMEF 300000.0f
743 #define MINFRAMEF 1.0
745 /* depricate this! */
746 #define TESTBASE(v3d, base) ( ((base)->flag & SELECT) && ((base)->lay & v3d->lay) && (((base)->object->restrictflag & OB_RESTRICT_VIEW)==0) )
747 #define TESTBASELIB(v3d, base) ( ((base)->flag & SELECT) && ((base)->lay & v3d->lay) && ((base)->object->id.lib==0) && (((base)->object->restrictflag & OB_RESTRICT_VIEW)==0))
748 #define TESTBASELIB_BGMODE(base) ( ((base)->flag & SELECT) && ((base)->lay & (v3d ? v3d->lay : scene->lay)) && ((base)->object->id.lib==0) && (((base)->object->restrictflag & OB_RESTRICT_VIEW)==0))
749 #define BASE_SELECTABLE(v3d, base) ((base->lay & v3d->lay) && (base->object->restrictflag & (OB_RESTRICT_SELECT|OB_RESTRICT_VIEW))==0)
750 #define FIRSTBASE scene->base.first
751 #define LASTBASE scene->base.last
752 #define BASACT (scene->basact)
753 #define OBACT (BASACT? BASACT->object: 0)
755 #define ID_NEW(a) if( (a) && (a)->id.newid ) (a)= (void *)(a)->id.newid
756 #define ID_NEW_US(a) if( (a)->id.newid) {(a)= (void *)(a)->id.newid; (a)->id.us++;}
757 #define ID_NEW_US2(a) if( ((ID *)a)->newid) {(a)= ((ID *)a)->newid; ((ID *)a)->us++;}
758 #define CFRA (scene->r.cfra)
759 #define F_CFRA ((float)(scene->r.cfra))
760 #define SFRA (scene->r.sfra)
761 #define EFRA (scene->r.efra)
762 #define PSFRA ((scene->r.psfra != 0)? (scene->r.psfra): (scene->r.sfra))
763 #define PEFRA ((scene->r.psfra != 0)? (scene->r.pefra): (scene->r.efra))
764 #define FRA2TIME(a) ((((double) scene->r.frs_sec_base) * (a)) / scene->r.frs_sec)
765 #define TIME2FRA(a) ((((double) scene->r.frs_sec) * (a)) / scene->r.frs_sec_base)
766 #define FPS (((double) scene->r.frs_sec) / scene->r.frs_sec_base)
768 #define RAD_PHASE_PATCHES 1
769 #define RAD_PHASE_FACES 2
771 /* base->flag is in DNA_object_types.h */
773 /* scene->snap_flag */
775 #define SCE_SNAP_ROTATE 2
776 /* scene->snap_target */
777 #define SCE_SNAP_TARGET_CLOSEST 0
778 #define SCE_SNAP_TARGET_CENTER 1
779 #define SCE_SNAP_TARGET_MEDIAN 2
780 #define SCE_SNAP_TARGET_ACTIVE 3
781 /* scene->snap_mode */
782 #define SCE_SNAP_MODE_VERTEX 0
783 #define SCE_SNAP_MODE_EDGE 1
784 #define SCE_SNAP_MODE_FACE 2
786 /* sce->selectmode */
787 #define SCE_SELECT_VERTEX 1 /* for mesh */
788 #define SCE_SELECT_EDGE 2
789 #define SCE_SELECT_FACE 4
791 /* sce->selectmode for particles */
792 #define SCE_SELECT_PATH 1
793 #define SCE_SELECT_POINT 2
794 #define SCE_SELECT_END 4
796 /* sce->recalc (now in use by previewrender) */
797 #define SCE_PRV_CHANGED 1
799 /* sce->prop_mode (proportional falloff) */
800 #define PROP_SMOOTH 0
801 #define PROP_SPHERE 1
806 #define PROP_RANDOM 6
809 #define SCE_DS_SELECTED (1<<0)
810 #define SCE_DS_COLLAPSED (1<<1)
813 /* return flag next_object function */
822 #define AUDIO_SCRUB 4
824 #define FFMPEG_MULTIPLEX_AUDIO 1
825 #define FFMPEG_AUTOSPLIT_OUTPUT 2
828 typedef enum SculptFlags {
832 SCULPT_INPUT_SMOOTH = 8,
833 SCULPT_DRAW_FAST = 16,
834 SCULPT_DRAW_BRUSH = 32,
840 /* toolsettings->imagepaint_flag */
841 #define IMAGEPAINT_DRAWING 1
842 #define IMAGEPAINT_DRAW_TOOL 2
843 #define IMAGEPAINT_DRAW_TOOL_DRAWING 4
845 /* projection painting only */
846 #define IMAGEPAINT_PROJECT_DISABLE 8 /* Non projection 3D painting */
847 #define IMAGEPAINT_PROJECT_XRAY 16
848 #define IMAGEPAINT_PROJECT_BACKFACE 32
849 #define IMAGEPAINT_PROJECT_FLAT 64
850 #define IMAGEPAINT_PROJECT_LAYER_CLONE 128
851 #define IMAGEPAINT_PROJECT_LAYER_MASK 256
852 #define IMAGEPAINT_PROJECT_LAYER_MASK_INV 512
854 /* toolsettings->uvcalc_flag */
855 #define UVCALC_FILLHOLES 1
856 #define UVCALC_NO_ASPECT_CORRECT 2 /* would call this UVCALC_ASPECT_CORRECT, except it should be default with old file */
857 #define UVCALC_TRANSFORM_CORRECT 4 /* adjust UV's while transforming to avoid distortion */
859 /* toolsettings->uv_flag */
860 #define UV_SYNC_SELECTION 1
861 #define UV_SHOW_SAME_IMAGE 2
863 /* toolsettings->uv_selectmode */
864 #define UV_SELECT_VERTEX 1
865 #define UV_SELECT_EDGE 2 /* not implemented */
866 #define UV_SELECT_FACE 4
867 #define UV_SELECT_ISLAND 8
869 /* toolsettings->edge_mode */
870 #define EDGE_MODE_SELECT 0
871 #define EDGE_MODE_TAG_SEAM 1
872 #define EDGE_MODE_TAG_SHARP 2
873 #define EDGE_MODE_TAG_CREASE 3
874 #define EDGE_MODE_TAG_BEVEL 4
876 /* toolsettings->particle flag */
877 #define PE_KEEP_LENGTHS 1
878 #define PE_LOCK_FIRST 2
879 #define PE_DEFLECT_EMITTER 4
880 #define PE_INTERPOLATE_ADDED 8
881 #define PE_SHOW_CHILD 16
882 #define PE_SHOW_TIME 32
883 #define PE_X_MIRROR 64
885 /* toolsetting->particle brushtype */
886 #define PE_BRUSH_NONE -1
887 #define PE_BRUSH_COMB 0
888 #define PE_BRUSH_CUT 1
889 #define PE_BRUSH_LENGTH 2
890 #define PE_BRUSH_PUFF 3
891 #define PE_BRUSH_ADD 4
892 #define PE_BRUSH_WEIGHT 5
893 #define PE_BRUSH_SMOOTH 6
895 /* this must equal ParticleEditSettings.brush array size */
896 #define PE_TOT_BRUSH 7
898 /* toolsettings->retopo_mode */
900 #define RETOPO_PAINT 2
902 /* toolsettings->retopo_paint_tool */
904 #define RETOPO_LINE 2
905 #define RETOPO_ELLIPSE 4
907 /* toolsettings->skgen_options */
908 #define SKGEN_FILTER_INTERNAL (1 << 0)
909 #define SKGEN_FILTER_EXTERNAL (1 << 1)
910 #define SKGEN_SYMMETRY (1 << 2)
911 #define SKGEN_CUT_LENGTH (1 << 3)
912 #define SKGEN_CUT_ANGLE (1 << 4)
913 #define SKGEN_CUT_CORRELATION (1 << 5)
914 #define SKGEN_HARMONIC (1 << 6)
915 #define SKGEN_STICK_TO_EMBEDDING (1 << 7)
916 #define SKGEN_ADAPTIVE_DISTANCE (1 << 8)
917 #define SKGEN_FILTER_SMART (1 << 9)
918 #define SKGEN_DISP_LENGTH (1 << 10)
919 #define SKGEN_DISP_WEIGHT (1 << 11)
920 #define SKGEN_DISP_ORIG (1 << 12)
921 #define SKGEN_DISP_EMBED (1 << 13)
922 #define SKGEN_DISP_INDEX (1 << 14)
924 #define SKGEN_SUB_LENGTH 0
925 #define SKGEN_SUB_ANGLE 1
926 #define SKGEN_SUB_CORRELATION 2
927 #define SKGEN_SUB_TOTAL 3
929 /* toolsettings->skgen_postpro */
930 #define SKGEN_SMOOTH 0
931 #define SKGEN_AVERAGE 1
932 #define SKGEN_SHARPEN 2