forked from CRVI/OpenCLIPP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ImageWatchOpenCLIPP.natvis
192 lines (179 loc) · 9.7 KB
/
ImageWatchOpenCLIPP.natvis
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
<?xml version="1.0" encoding="utf-8"?>
<--!
This is a natvis file for using with Visual Studio 2012 and the ImageWatch extension
How to use :
Install ImageWatch extension in visual studio 2012 Update 2 or more recent
Download from here : http://visualstudiogallery.msdn.microsoft.com/e682d542-7ef3-402c-b857-bbfba714f78d
Copy this file to : C:\Users\username\Documents\Visual Studio 2012\Visualizers
When debugging a program using OpenCLIPP C++ image types, display the extension UI : View, Other Windows, Image Watch
Follor ImageWatch documentation for more details
Documentation URL : http://research.microsoft.com/en-us/um/redmond/groups/ivm/imagewatchhelp/imagewatchhelp.htm
NOTE: The extension only shows the host version of the image. It won't show images from the GPU nor will it display temporary (GPU-only) images.
-->
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
<UIVisualizer ServiceId="{A452AFEA-3DF6-46BB-9177-C0B08F318025}" Id="1" MenuName="Add to Image Watch"/>
<Type Name="OpenCLIPP::ImageBuffer">
<UIVisualizer ServiceId="{A452AFEA-3DF6-46BB-9177-C0B08F318025}" Id="1" />
</Type>
<Type Name="OpenCLIPP::ImageBuffer">
<DisplayString Condition="m_Img.Type==0">{{UINT8, {m_Img.Channels} x {m_Img.Width} x {m_Img.Height}}}</DisplayString>
<DisplayString Condition="m_Img.Type==1">{{INT8, {m_Img.Channels} x {m_Img.Width} x {m_Img.Height}}}</DisplayString>
<DisplayString Condition="m_Img.Type==2">{{UINT16, {m_Img.Channels} x {m_Img.Width} x {m_Img.Height}}}</DisplayString>
<DisplayString Condition="m_Img.Type==3">{{INT16, {m_Img.Channels} x {m_Img.Width} x {m_Img.Height}}}</DisplayString>
<DisplayString Condition="m_Img.Type==4">{{UINT8, {m_Img.Channels} x {m_Img.Width} x {m_Img.Height}}}</DisplayString>
<DisplayString Condition="m_Img.Type==5">{{INT32, {m_Img.Channels} x {m_Img.Width} x {m_Img.Height}}}</DisplayString>
<DisplayString Condition="m_Img.Type==6">{{FLOAT32, {m_Img.Channels} x {m_Img.Width} x {m_Img.Height}}}</DisplayString>
<Expand>
<Synthetic Name="[type]" Condition="m_Img.Type==0">
<DisplayString>UINT8</DisplayString>
</Synthetic>
<Synthetic Name="[type]" Condition="m_Img.Type==1">
<DisplayString>INT8</DisplayString>
</Synthetic>
<Synthetic Name="[type]" Condition="m_Img.Type==2">
<DisplayString>UINT16</DisplayString>
</Synthetic>
<Synthetic Name="[type]" Condition="m_Img.Type==3">
<DisplayString>INT16</DisplayString>
</Synthetic>
<Synthetic Name="[type]" Condition="m_Img.Type==4">
<DisplayString>UINT32</DisplayString>
</Synthetic>
<Synthetic Name="[type]" Condition="m_Img.Type==5">
<DisplayString>INT32</DisplayString>
</Synthetic>
<Synthetic Name="[type]" Condition="m_Img.Type==6">
<DisplayString>FLOAT32</DisplayString>
</Synthetic>
<Item Name="[channels]">m_Img.Channels</Item>
<Item Name="[width]">m_Img.Width</Item>
<Item Name="[height]">m_Img.Height</Item>
<Item Name="[data]">m_data</Item>
<Item Name="[stride]">m_Img.Step</Item>
</Expand>
</Type>
<Type Name="OpenCLIPP::Image">
<UIVisualizer ServiceId="{A452AFEA-3DF6-46BB-9177-C0B08F318025}" Id="1" />
</Type>
<Type Name="OpenCLIPP::Image">
<DisplayString Condition="m_Img.Type==0">{{UINT8, {m_Img.Channels} x {m_Img.Width} x {m_Img.Height}}}</DisplayString>
<DisplayString Condition="m_Img.Type==1">{{INT8, {m_Img.Channels} x {m_Img.Width} x {m_Img.Height}}}</DisplayString>
<DisplayString Condition="m_Img.Type==2">{{UINT16, {m_Img.Channels} x {m_Img.Width} x {m_Img.Height}}}</DisplayString>
<DisplayString Condition="m_Img.Type==3">{{INT16, {m_Img.Channels} x {m_Img.Width} x {m_Img.Height}}}</DisplayString>
<DisplayString Condition="m_Img.Type==4">{{UINT8, {m_Img.Channels} x {m_Img.Width} x {m_Img.Height}}}</DisplayString>
<DisplayString Condition="m_Img.Type==5">{{INT32, {m_Img.Channels} x {m_Img.Width} x {m_Img.Height}}}</DisplayString>
<DisplayString Condition="m_Img.Type==6">{{FLOAT32, {m_Img.Channels} x {m_Img.Width} x {m_Img.Height}}}</DisplayString>
<Expand>
<Synthetic Name="[type]" Condition="m_Img.Type==0">
<DisplayString>UINT8</DisplayString>
</Synthetic>
<Synthetic Name="[type]" Condition="m_Img.Type==1">
<DisplayString>INT8</DisplayString>
</Synthetic>
<Synthetic Name="[type]" Condition="m_Img.Type==2">
<DisplayString>UINT16</DisplayString>
</Synthetic>
<Synthetic Name="[type]" Condition="m_Img.Type==3">
<DisplayString>INT16</DisplayString>
</Synthetic>
<Synthetic Name="[type]" Condition="m_Img.Type==4">
<DisplayString>UINT32</DisplayString>
</Synthetic>
<Synthetic Name="[type]" Condition="m_Img.Type==5">
<DisplayString>INT32</DisplayString>
</Synthetic>
<Synthetic Name="[type]" Condition="m_Img.Type==6">
<DisplayString>FLOAT32</DisplayString>
</Synthetic>
<Item Name="[channels]">m_Img.Channels</Item>
<Item Name="[width]">m_Img.Width</Item>
<Item Name="[height]">m_Img.Height</Item>
<Item Name="[data]">m_data</Item>
<Item Name="[stride]">m_Img.Step</Item>
</Expand>
</Type>
<Type Name="OpenCLIPP::ColorImage">
<UIVisualizer ServiceId="{A452AFEA-3DF6-46BB-9177-C0B08F318025}" Id="1" />
</Type>
<Type Name="OpenCLIPP::ColorImage">
<DisplayString Condition="m_Buffer.m_Img.Type==0">{{UINT8, {m_Buffer.m_Img.Channels} x {m_Buffer.m_Img.Width} x {m_Buffer.m_Img.Height}}}</DisplayString>
<DisplayString Condition="m_Buffer.m_Img.Type==1">{{INT8, {m_Buffer.m_Img.Channels} x {m_Buffer.m_Img.Width} x {m_Buffer.m_Img.Height}}}</DisplayString>
<DisplayString Condition="m_Buffer.m_Img.Type==2">{{UINT16, {m_Buffer.m_Img.Channels} x {m_Buffer.m_Img.Width} x {m_Buffer.m_Img.Height}}}</DisplayString>
<DisplayString Condition="m_Buffer.m_Img.Type==3">{{INT16, {m_Buffer.m_Img.Channels} x {m_Buffer.m_Img.Width} x {m_Buffer.m_Img.Height}}}</DisplayString>
<DisplayString Condition="m_Buffer.m_Img.Type==4">{{UINT8, {m_Buffer.m_Img.Channels} x {m_Buffer.m_Img.Width} x {m_Buffer.m_Img.Height}}}</DisplayString>
<DisplayString Condition="m_Buffer.m_Img.Type==5">{{INT32, {m_Buffer.m_Img.Channels} x {m_Buffer.m_Img.Width} x {m_Buffer.m_Img.Height}}}</DisplayString>
<DisplayString Condition="m_Buffer.m_Img.Type==6">{{FLOAT32, {m_Buffer.m_Img.Channels} x {m_Buffer.m_Img.Width} x {m_Buffer.m_Img.Height}}}</DisplayString>
<Expand>
<Synthetic Name="[type]" Condition="m_Buffer.m_Img.Type==0">
<DisplayString>UINT8</DisplayString>
</Synthetic>
<Synthetic Name="[type]" Condition="m_Buffer.m_Img.Type==1">
<DisplayString>INT8</DisplayString>
</Synthetic>
<Synthetic Name="[type]" Condition="m_Buffer.m_Img.Type==2">
<DisplayString>UINT16</DisplayString>
</Synthetic>
<Synthetic Name="[type]" Condition="m_Buffer.m_Img.Type==3">
<DisplayString>INT16</DisplayString>
</Synthetic>
<Synthetic Name="[type]" Condition="m_Buffer.m_Img.Type==4">
<DisplayString>UINT32</DisplayString>
</Synthetic>
<Synthetic Name="[type]" Condition="m_Buffer.m_Img.Type==5">
<DisplayString>INT32</DisplayString>
</Synthetic>
<Synthetic Name="[type]" Condition="m_Buffer.m_Img.Type==6">
<DisplayString>FLOAT32</DisplayString>
</Synthetic>
<Item Name="[channels]">m_Buffer.m_Img.Channels</Item>
<Item Name="[width]">m_Buffer.m_Img.Width</Item>
<Item Name="[height]">m_Buffer.m_Img.Height</Item>
<Item Name="[data]">m_Buffer.m_data</Item>
<Item Name="[stride]">m_Buffer.m_Img.Step</Item>
</Expand>
</Type>
<Type Name="CSimpleImage">
<AlternativeType Name="CImage"/>
<AlternativeType Name="CImageROI"/>
<UIVisualizer ServiceId="{A452AFEA-3DF6-46BB-9177-C0B08F318025}" Id="1" />
</Type>
<Type Name="CSimpleImage">
<AlternativeType Name="CImage"/>
<AlternativeType Name="CImageROI"/>
<DisplayString Condition="Type==0">{{UINT8, {Channels} x {Width} x {Height}}}</DisplayString>
<DisplayString Condition="Type==1">{{INT8, {Channels} x {Width} x {Height}}}</DisplayString>
<DisplayString Condition="Type==2">{{UINT16, {Channels} x {Width} x {Height}}}</DisplayString>
<DisplayString Condition="Type==3">{{INT16, {Channels} x {Width} x {Height}}}</DisplayString>
<DisplayString Condition="Type==4">{{UINT8, {Channels} x {Width} x {Height}}}</DisplayString>
<DisplayString Condition="Type==5">{{INT32, {Channels} x {Width} x {Height}}}</DisplayString>
<DisplayString Condition="Type==6">{{FLOAT32, {Channels} x {Width} x {Height}}}</DisplayString>
<Expand>
<Synthetic Name="[type]" Condition="Type==0">
<DisplayString>UINT8</DisplayString>
</Synthetic>
<Synthetic Name="[type]" Condition="Type==1">
<DisplayString>INT8</DisplayString>
</Synthetic>
<Synthetic Name="[type]" Condition="Type==2">
<DisplayString>UINT16</DisplayString>
</Synthetic>
<Synthetic Name="[type]" Condition="Type==3">
<DisplayString>INT16</DisplayString>
</Synthetic>
<Synthetic Name="[type]" Condition="Type==4">
<DisplayString>UINT32</DisplayString>
</Synthetic>
<Synthetic Name="[type]" Condition="Type==5">
<DisplayString>INT32</DisplayString>
</Synthetic>
<Synthetic Name="[type]" Condition="Type==6">
<DisplayString>FLOAT32</DisplayString>
</Synthetic>
<Item Name="[channels]">Channels</Item>
<Item Name="[width]">Width</Item>
<Item Name="[height]">Height</Item>
<Item Name="[data]">m_Data</Item>
<Item Name="[stride]">Step</Item>
</Expand>
</Type>
</AutoVisualizer>