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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
|
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="Misc.cs" company="HandBrake Project (http://handbrake.fr)">
// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
// </copyright>
// <summary>
// Defines the hb_anamorphic_substruct type.
// </summary>
// <auto-generated> Disable Stylecop Warnings for this file </auto-generated>
// --------------------------------------------------------------------------------------------------------------------
namespace HandBrake.Interop.HbLib
{
using System;
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential)]
public struct hb_anamorphic_substruct
{
/// int
public int mode;
/// int
public int itu_par;
/// int
public int par_width;
/// int
public int par_height;
/// int
public int dar_width;
/// int
public int dar_height;
/// int
public int keep_display_aspect;
}
[StructLayout(LayoutKind.Sequential)]
public struct hb_list_s
{
/// void**
public IntPtr items;
/// int
public int items_alloc;
/// int
public int items_count;
}
[StructLayout(LayoutKind.Sequential)]
public struct hb_rate_s
{
/// char*
[MarshalAs(UnmanagedType.LPStr)]
public string @string;
/// int
public int rate;
}
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
public struct hb_metadata_s
{
/// char[255]
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 255)]
public string name;
/// char[255]
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 255)]
public string artist;
/// char[255]
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 255)]
public string composer;
/// char[255]
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 255)]
public string release_date;
/// char[1024]
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 1024)]
public string comment;
/// char[255]
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 255)]
public string album;
/// char[255]
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 255)]
public string genre;
/// uint32_t->unsigned int
public uint coverart_size;
/// uint8_t*
public IntPtr coverart;
}
[StructLayout(LayoutKind.Sequential)]
public struct hb_state_scanning_anon
{
/// int
public int title_cur;
/// int
public int title_count;
}
[StructLayout(LayoutKind.Sequential)]
public struct hb_state_working_anon
{
/// float
public float progress;
/// int
public int job_cur;
/// int
public int job_count;
/// float
public float rate_cur;
/// float
public float rate_avg;
/// int
public int hours;
/// int
public int minutes;
/// int
public int seconds;
/// int
public int sequence_id;
}
[StructLayout(LayoutKind.Sequential)]
public struct hb_state_workdone_anon
{
/// int
public int error;
}
[StructLayout(LayoutKind.Sequential)]
public struct hb_state_muxing_anon
{
/// float
public float progress;
}
[StructLayout(LayoutKind.Explicit)]
public struct hb_state_param_u
{
[FieldOffset(0)]
public hb_state_scanning_anon scanning;
[FieldOffset(0)]
public hb_state_working_anon working;
[FieldOffset(0)]
public hb_state_workdone_anon workdone;
[FieldOffset(0)]
public hb_state_muxing_anon muxing;
}
[StructLayout(LayoutKind.Sequential)]
public struct hb_state_s
{
/// int
public int state;
public hb_state_param_u param;
}
[StructLayout(LayoutKind.Explicit)]
public struct Anonymous_a0a59d69_d9a4_4003_a198_f7c51511e31d
{
/// int
[FieldOffset(0)]
public int ac3;
/// int
[FieldOffset(0)]
public int dca;
}
[StructLayout(LayoutKind.Sequential)]
public struct hb_mixdown_s
{
/// char*
[MarshalAs(UnmanagedType.LPStr)]
public string human_readable_name;
/// char*
[MarshalAs(UnmanagedType.LPStr)]
public string internal_name;
/// char*
[MarshalAs(UnmanagedType.LPStr)]
public string short_name;
/// int
public int amixdown;
}
[StructLayout(LayoutKind.Sequential)]
public struct hb_fifo_s
{
/// hb_lock_t*
public IntPtr @lock;
/// uint32_t->unsigned int
public uint capacity;
/// uint32_t->unsigned int
public uint size;
/// uint32_t->unsigned int
public uint buffer_size;
/// hb_buffer_t*
public IntPtr first;
/// hb_buffer_t*
public IntPtr last;
}
[StructLayout(LayoutKind.Sequential)]
public struct hb_lock_s
{
}
// Only called by detect_comb at the moment
[StructLayout(LayoutKind.Sequential)]
public struct hb_buffer_s
{
/// int
public int size;
/// int
public int alloc;
/// uint8_t*
[MarshalAs(UnmanagedType.LPStr)]
public string data;
/// int
public int cur;
/// int64_t->int
public long sequence;
public hb_buffer_type_anon type;
/// int
public int id;
/// int64_t->int
public long start;
/// int64_t->int
public long stop;
public long pcr;
public byte discontinuity;
/// int
public int new_chap;
/// uint8_t->unsigned char
public byte frametype;
// Given uint by default, probably should be ushort?
/// uint16_t->unsigned int
public uint flags;
/// int64_t->int
public long renderOffset;
/// int
public int x;
/// int
public int y;
/// int
public int width;
/// int
public int height;
/// hb_buffer_t*
public IntPtr sub;
/// hb_buffer_t*
public IntPtr next;
}
public enum hb_buffer_type_anon
{
AUDIO_BUF,
VIDEO_BUF,
SUBTITLE_BUF,
OTHER_BUF
}
[StructLayout(LayoutKind.Sequential)]
public struct hb_mux_data_s
{
/// MP4TrackId->uint32_t->unsigned int
public uint track;
/// uint8_t->unsigned char
public byte subtitle;
/// int
public int sub_format;
/// uint64_t->unsigned int
public ulong sum_dur;
}
// Not referred to anywhere
[StructLayout(LayoutKind.Sequential)]
public struct hb_interjob_s
{
/// int
public int last_job;
/// int
public int frame_count;
public int out_frame_count;
/// uint64_t->unsigned int
public ulong total_time;
/// int
public int vrate;
/// int
public int vrate_base;
/// hb_subtitle_t*
public IntPtr select_subtitle;
}
/// Return Type: void
///param0: void*
public delegate void hb_thread_s_function(IntPtr param0);
[StructLayout(LayoutKind.Sequential)]
public struct hb_thread_s
{
/// char*
[MarshalAs(UnmanagedType.LPStr)]
public string name;
/// int
public int priority;
/// hb_thread_s_function
public hb_thread_s_function AnonymousMember1;
/// void*
public IntPtr arg;
/// hb_lock_t*
public IntPtr @lock;
/// int
public int exited;
/// pthread_t->ptw32_handle_t->Anonymous_55c509b5_bbf2_4788_a684_ac1bd0056655
public ptw32_handle_t thread;
}
[StructLayout(LayoutKind.Sequential)]
public struct ptw32_handle_t
{
/// void*
public IntPtr p;
/// unsigned int
public uint x;
}
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public delegate void LoggingCallback(string message);
}
|