-
Notifications
You must be signed in to change notification settings - Fork 7
/
Skeleton.h
131 lines (110 loc) · 3.51 KB
/
Skeleton.h
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
/*******************************************************************/
/* */
/* ADOBE CONFIDENTIAL */
/* _ _ _ _ _ _ _ _ _ _ _ _ _ */
/* */
/* Copyright 2007 Adobe Systems Incorporated */
/* All Rights Reserved. */
/* */
/* NOTICE: All information contained herein is, and remains the */
/* property of Adobe Systems Incorporated and its suppliers, if */
/* any. The intellectual and technical concepts contained */
/* herein are proprietary to Adobe Systems Incorporated and its */
/* suppliers and may be covered by U.S. and Foreign Patents, */
/* patents in process, and are protected by trade secret or */
/* copyright law. Dissemination of this information or */
/* reproduction of this material is strictly forbidden unless */
/* prior written permission is obtained from Adobe Systems */
/* Incorporated. */
/* */
/*******************************************************************/
/*
Skeleton.h
*/
#pragma once
#ifndef SKELETON_H
#define SKELETON_H
typedef unsigned char u_char;
typedef unsigned short u_short;
typedef unsigned short u_int16;
typedef unsigned long u_long;
typedef short int int16;
#define PF_TABLE_BITS 12
#define PF_TABLE_SZ_16 4096
#define PF_DEEP_COLOR_AWARE 1 // make sure we get 16bpc pixels;
// AE_Effect.h checks for this.
#include "AEConfig.h"
#ifdef AE_OS_WIN
typedef unsigned short PixelType;
#include <Windows.h>
#endif
#include "stdio.h"
#include "entry.h"
#include "AE_Effect.h"
#include "AE_EffectCB.h"
#include "AE_Macros.h"
#include "Param_Utils.h"
#include "AE_EffectCBSuites.h"
#include "String_Utils.h"
#include "AE_GeneralPlug.h"
#include "AEFX_ChannelDepthTpl.h"
#include "AEGP_SuiteHandler.h"
#include "AEFX_SuiteHelper.h"
#include "PF_Masks.h"
#include <stack>
#include <string.h>
#include "Skeleton_Strings.h"
#pragma comment(lib,"ws2_32.lib")
/* Versioning information */
#define MAJOR_VERSION 1
#define MINOR_VERSION 0
#define BUG_VERSION 0
#define STAGE_VERSION PF_Stage_DEVELOP
#define BUILD_VERSION 1
#define MaxSize 50
/* Parameter defaults */
#define SKELETON_SLIDER_MIN 0
#define SKELETON_SLIDER_MAX 100
#define SKELETON_SLIDER_DFLT 10
struct stack_node {
int x;
int y;
struct stack_node * next;
};
typedef stack_node stack_list;
typedef stack_list * link;
typedef struct {
PF_Boolean initializedB;
AEGP_PluginID my_id;
} my_global_data, *my_global_dataP, **my_global_dataH;
enum {
SKELETON_INPUT = 0,
SKELETON_Flood_Seed,
SKELETON_BG,
SKELETON_Set_Mask,
SKELETON_NUM_PARAMS
};
enum {
SKELETON_View_Mode_DISK_ID = 1,
SKELETON_Flood_Seed_DISK_ID,
SKELETON_BG_DISK_ID,
SKELETON_Set_Mask_DISK_ID
};
typedef struct GainInfo{
PF_FpLong gainF;
} GainInfo, *GainInfoP, **GainInfoH;
#ifdef __cplusplus
extern "C" {
#endif
DllExport PF_Err
EntryPointFunc(
PF_Cmd cmd,
PF_InData *in_data,
PF_OutData *out_data,
PF_ParamDef *params[],
PF_LayerDef *output,
void *extra) ;
#ifdef __cplusplus
}
#endif
#endif // SKELETON_H