@girs/gstinterfaces-0.10 0.10.0-3.0.0-beta.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1858 @@
1
+
2
+ /*
3
+ * Type Definitions for Gjs (https://gjs.guide/)
4
+ *
5
+ * These type definitions are automatically generated, do not edit them by hand.
6
+ * If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gjs
7
+ */
8
+ /**
9
+ * GstInterfaces-0.10
10
+ */
11
+
12
+ import type libxml2 from '@girs/libxml2-2.0';
13
+ import type Gst from '@girs/gst-0.10';
14
+ import type GObject from '@girs/gobject-2.0';
15
+ import type GLib from '@girs/glib-2.0';
16
+ import type GModule from '@girs/gmodule-2.0';
17
+
18
+ export namespace GstInterfaces {
19
+
20
+ /**
21
+ * An enumeration indicating whether an element implements color balancing
22
+ * operations in software or in dedicated hardware. In general, dedicated
23
+ * hardware implementations (such as those provided by xvimagesink) are
24
+ * preferred.
25
+ */
26
+ enum ColorBalanceType {
27
+ HARDWARE,
28
+ SOFTWARE,
29
+ }
30
+ /**
31
+ * An enumeration for the type of a GstMixer message received on the bus
32
+ */
33
+ enum MixerMessageType {
34
+ INVALID,
35
+ MUTE_TOGGLED,
36
+ RECORD_TOGGLED,
37
+ VOLUME_CHANGED,
38
+ OPTION_CHANGED,
39
+ OPTIONS_LIST_CHANGED,
40
+ MIXER_CHANGED,
41
+ }
42
+ enum MixerType {
43
+ HARDWARE,
44
+ SOFTWARE,
45
+ }
46
+ /**
47
+ * A set of commands that may be issued to an element providing the
48
+ * #GstNavigation interface. The available commands can be queried via
49
+ * the gst_navigation_query_new_commands() query.
50
+ * For convenience in handling DVD navigation, the MENU commands are aliased as:
51
+ * GST_NAVIGATION_COMMAND_DVD_MENU = `GST_NAVIGATION_COMMAND_MENU1`
52
+ * GST_NAVIGATION_COMMAND_DVD_TITLE_MENU = `GST_NAVIGATION_COMMAND_MENU2`
53
+ * GST_NAVIGATION_COMMAND_DVD_ROOT_MENU = `GST_NAVIGATION_COMMAND_MENU3`
54
+ * GST_NAVIGATION_COMMAND_DVD_SUBPICTURE_MENU = `GST_NAVIGATION_COMMAND_MENU4`
55
+ * GST_NAVIGATION_COMMAND_DVD_AUDIO_MENU = `GST_NAVIGATION_COMMAND_MENU5`
56
+ * GST_NAVIGATION_COMMAND_DVD_ANGLE_MENU = `GST_NAVIGATION_COMMAND_MENU6`
57
+ * GST_NAVIGATION_COMMAND_DVD_CHAPTER_MENU = `GST_NAVIGATION_COMMAND_MENU7`
58
+ */
59
+ enum NavigationCommand {
60
+ INVALID,
61
+ MENU1,
62
+ MENU2,
63
+ MENU3,
64
+ MENU4,
65
+ MENU5,
66
+ MENU6,
67
+ MENU7,
68
+ LEFT,
69
+ RIGHT,
70
+ UP,
71
+ DOWN,
72
+ ACTIVATE,
73
+ PREV_ANGLE,
74
+ NEXT_ANGLE,
75
+ }
76
+ /**
77
+ * Enum values for the various events that an element implementing the
78
+ * GstNavigation interface might send up the pipeline.
79
+ */
80
+ enum NavigationEventType {
81
+ INVALID,
82
+ KEY_PRESS,
83
+ KEY_RELEASE,
84
+ MOUSE_BUTTON_PRESS,
85
+ MOUSE_BUTTON_RELEASE,
86
+ MOUSE_MOVE,
87
+ COMMAND,
88
+ }
89
+ /**
90
+ * A set of notifications that may be received on the bus when navigation
91
+ * related status changes.
92
+ */
93
+ enum NavigationMessageType {
94
+ INVALID,
95
+ MOUSE_OVER,
96
+ COMMANDS_CHANGED,
97
+ ANGLES_CHANGED,
98
+ }
99
+ enum NavigationQueryType {
100
+ INVALID,
101
+ COMMANDS,
102
+ ANGLES,
103
+ }
104
+ /**
105
+ * Different representations of a stream volume. gst_stream_volume_convert()
106
+ * allows to convert between the different representations.
107
+ * Formulas to convert from a linear to a cubic or dB volume are
108
+ * cbrt(val) and 20 * log10 (val).
109
+ */
110
+ enum StreamVolumeFormat {
111
+ LINEAR,
112
+ CUBIC,
113
+ DB,
114
+ }
115
+ /**
116
+ * Flags indicating which optional features are supported by a mixer
117
+ * implementation.
118
+ * @bitfield
119
+ */
120
+ enum MixerFlags {
121
+ NONE,
122
+ AUTO_NOTIFICATIONS,
123
+ HAS_WHITELIST,
124
+ GROUPING,
125
+ }
126
+ /**
127
+ * Mixer track flags.
128
+ * @bitfield
129
+ */
130
+ enum MixerTrackFlags {
131
+ INPUT,
132
+ OUTPUT,
133
+ MUTE,
134
+ RECORD,
135
+ MASTER,
136
+ SOFTWARE,
137
+ NO_RECORD,
138
+ NO_MUTE,
139
+ WHITELIST,
140
+ READONLY,
141
+ WRITEONLY,
142
+ }
143
+ /**
144
+ * An enumeration for flags indicating the available capabilities
145
+ * of a #GstTunerChannel.
146
+ * @bitfield
147
+ */
148
+ enum TunerChannelFlags {
149
+ INPUT,
150
+ OUTPUT,
151
+ FREQUENCY,
152
+ AUDIO,
153
+ }
154
+ function interfaces_marshal_VOID__OBJECT_BOOLEAN(closure: GObject.TClosure, return_value: any, n_param_values: number, param_values: any, invocation_hint: any, marshal_data: any): void
155
+ function interfaces_marshal_VOID__OBJECT_INT(closure: GObject.TClosure, return_value: any, n_param_values: number, param_values: any, invocation_hint: any, marshal_data: any): void
156
+ function interfaces_marshal_VOID__OBJECT_POINTER(closure: GObject.TClosure, return_value: any, n_param_values: number, param_values: any, invocation_hint: any, marshal_data: any): void
157
+ function interfaces_marshal_VOID__OBJECT_STRING(closure: GObject.TClosure, return_value: any, n_param_values: number, param_values: any, invocation_hint: any, marshal_data: any): void
158
+ function interfaces_marshal_VOID__OBJECT_ULONG(closure: GObject.TClosure, return_value: any, n_param_values: number, param_values: any, invocation_hint: any, marshal_data: any): void
159
+ /**
160
+ * Check a bus message to see if it is a GstMixer notification
161
+ * message and return the GstMixerMessageType identifying which
162
+ * type of notification it is.
163
+ * if the message is not a GstMixer notification.
164
+ * @param message A GstMessage to inspect.
165
+ * @returns The type of the GstMixerMessage, or GST_MIXER_MESSAGE_INVALID
166
+ */
167
+ function mixer_message_get_type(message: Gst.Message): MixerMessageType
168
+ /**
169
+ * Extracts the contents of a mute-toggled bus message. Reads
170
+ * the GstMixerTrack that has changed, and the new value of the mute
171
+ * flag.
172
+ * The GstMixerTrack remains valid until the message is freed.
173
+ * @param message A mute-toggled change notification message.
174
+ * @param track Pointer to hold a GstMixerTrack object, or NULL.
175
+ * @param mute A pointer to a gboolean variable, or NULL.
176
+ */
177
+ function mixer_message_parse_mute_toggled(message: Gst.Message, track: MixerTrack, mute: boolean): void
178
+ /**
179
+ * Extracts the GstMixerOptions and new value from a option-changed bus notification
180
+ * message.
181
+ * The options and value returned remain valid until the message is freed.
182
+ * @param message A volume-changed change notification message.
183
+ * @param options Pointer to hold a GstMixerOptions object, or NULL.
184
+ * @param value Result location to receive the new options value, or NULL.
185
+ */
186
+ function mixer_message_parse_option_changed(message: Gst.Message, options: MixerOptions, value: string | null): void
187
+ /**
188
+ * Extracts the GstMixerOptions whose value list has changed from an
189
+ * options-list-changed bus notification message.
190
+ * The options object returned remains valid until the message is freed. You
191
+ * do not need to unref it.
192
+ * @param message A volume-changed change notification message.
193
+ * @param options Pointer to hold a GstMixerOptions object, or NULL.
194
+ */
195
+ function mixer_message_parse_options_list_changed(message: Gst.Message, options: MixerOptions): void
196
+ /**
197
+ * Extracts the contents of a record-toggled bus message. Reads
198
+ * the GstMixerTrack that has changed, and the new value of the
199
+ * recording flag.
200
+ * The GstMixerTrack remains valid until the message is freed.
201
+ * @param message A record-toggled change notification message.
202
+ * @param track Pointer to hold a GstMixerTrack object, or NULL.
203
+ * @param record A pointer to a gboolean variable, or NULL.
204
+ */
205
+ function mixer_message_parse_record_toggled(message: Gst.Message, track: MixerTrack, record: boolean): void
206
+ /**
207
+ * Parses a volume-changed notification message and extracts the track object
208
+ * it refers to, as well as an array of volumes and the size of the volumes array.
209
+ * The track object remains valid until the message is freed.
210
+ * The caller must free the array returned in the volumes parameter using g_free
211
+ * when they are done with it.
212
+ * @param message A volume-changed change notification message.
213
+ * @param track Pointer to hold a GstMixerTrack object, or NULL.
214
+ * @param volumes A pointer to receive an array of gint values, or NULL.
215
+ * @param num_channels Result location to receive the number of channels, or NULL.
216
+ */
217
+ function mixer_message_parse_volume_changed(message: Gst.Message, track: MixerTrack, volumes: number, num_channels: number): void
218
+ /**
219
+ * Inspect a #GstEvent and return the #GstNavigationEventType of the event, or
220
+ * #GST_NAVIGATION_EVENT_INVALID if the event is not a #GstNavigation event.
221
+ * @param event A #GstEvent to inspect.
222
+ */
223
+ function navigation_event_get_type(event: Gst.Event): NavigationEventType
224
+ /**
225
+ * Inspect a #GstNavigation command event and retrieve the enum value of the
226
+ * associated command.
227
+ * @param event A #GstEvent to inspect.
228
+ * @param command Pointer to GstNavigationCommand to receive the type of the navigation event.
229
+ * @returns TRUE if the navigation command could be extracted, otherwise FALSE.
230
+ */
231
+ function navigation_event_parse_command(event: Gst.Event, command: NavigationCommand): boolean
232
+ function navigation_event_parse_key_event(event: Gst.Event, key: string | null): boolean
233
+ /**
234
+ * Retrieve the details of either a #GstNavigation mouse button press event or
235
+ * a mouse button release event. Determine which type the event is using
236
+ * gst_navigation_event_get_type() to retrieve the #GstNavigationEventType.
237
+ * otherwise FALSE.
238
+ * @param event A #GstEvent to inspect.
239
+ * @param button Pointer to a gint that will receive the button number associated with the event.
240
+ * @param x Pointer to a gdouble to receive the x coordinate of the mouse button event.
241
+ * @param y Pointer to a gdouble to receive the y coordinate of the mouse button event.
242
+ * @returns TRUE if the button number and both coordinates could be extracted,
243
+ */
244
+ function navigation_event_parse_mouse_button_event(event: Gst.Event, button: number, x: number, y: number): boolean
245
+ /**
246
+ * Inspect a #GstNavigation mouse movement event and extract the coordinates
247
+ * of the event.
248
+ * @param event A #GstEvent to inspect.
249
+ * @param x Pointer to a gdouble to receive the x coordinate of the mouse movement.
250
+ * @param y Pointer to a gdouble to receive the y coordinate of the mouse movement.
251
+ * @returns TRUE if both coordinates could be extracted, otherwise FALSE.
252
+ */
253
+ function navigation_event_parse_mouse_move_event(event: Gst.Event, x: number, y: number): boolean
254
+ /**
255
+ * Check a bus message to see if it is a #GstNavigation event, and return
256
+ * the #GstNavigationMessageType identifying the type of the message if so.
257
+ * #GST_NAVIGATION_MESSAGE_INVALID if the message is not a #GstNavigation
258
+ * notification.
259
+ * @param message A #GstMessage to inspect.
260
+ * @returns The type of the #GstNavigationMessage, or
261
+ */
262
+ function navigation_message_get_type(message: Gst.Message): NavigationMessageType
263
+ /**
264
+ * Parse a #GstNavigation message of type GST_NAVIGATION_MESSAGE_ANGLES_CHANGED
265
+ * and extract the `cur_angle` and `n_angles` parameters.
266
+ * @param message A #GstMessage to inspect.
267
+ * @param cur_angle A pointer to a #guint to receive the new current angle number, or NULL
268
+ * @param n_angles A pointer to a #guint to receive the new angle count, or NULL.
269
+ * @returns %TRUE if the message could be successfully parsed. %FALSE if not.
270
+ */
271
+ function navigation_message_parse_angles_changed(message: Gst.Message, cur_angle: number, n_angles: number): boolean
272
+ /**
273
+ * Parse a #GstNavigation message of type #GST_NAVIGATION_MESSAGE_MOUSE_OVER
274
+ * and extract the active/inactive flag. If the mouse over event is marked
275
+ * active, it indicates that the mouse is over a clickable area.
276
+ * @param message A #GstMessage to inspect.
277
+ * @param active A pointer to a gboolean to receive the active/inactive state, or NULL.
278
+ * @returns %TRUE if the message could be successfully parsed. %FALSE if not.
279
+ */
280
+ function navigation_message_parse_mouse_over(message: Gst.Message, active: boolean): boolean
281
+ /**
282
+ * Inspect a #GstQuery and return the #GstNavigationQueryType associated with
283
+ * it if it is a #GstNavigation query.
284
+ * #GST_NAVIGATION_QUERY_INVALID
285
+ * @param query The query to inspect
286
+ * @returns The #GstNavigationQueryType of the query, or
287
+ */
288
+ function navigation_query_get_type(query: Gst.Query): NavigationQueryType
289
+ /**
290
+ * Parse the current angle number in the #GstNavigation angles `query` into the
291
+ * #guint pointed to by the `cur_angle` variable, and the number of available
292
+ * angles into the #guint pointed to by the `n_angles` variable.
293
+ * @param query a #GstQuery
294
+ * @param cur_angle Pointer to a #guint into which to store the currently selected angle value from the query, or NULL
295
+ * @param n_angles Pointer to a #guint into which to store the number of angles value from the query, or NULL
296
+ * @returns %TRUE if the query could be successfully parsed. %FALSE if not.
297
+ */
298
+ function navigation_query_parse_angles(query: Gst.Query, cur_angle: number, n_angles: number): boolean
299
+ /**
300
+ * Parse the number of commands in the #GstNavigation commands `query`.
301
+ * @param query a #GstQuery
302
+ * @param n_cmds the number of commands in this query.
303
+ * @returns %TRUE if the query could be successfully parsed. %FALSE if not.
304
+ */
305
+ function navigation_query_parse_commands_length(query: Gst.Query, n_cmds: number): boolean
306
+ /**
307
+ * Parse the #GstNavigation command query and retrieve the `nth` command from
308
+ * it into `cmd`. If the list contains less elements than `nth,` `cmd` will be
309
+ * set to #GST_NAVIGATION_COMMAND_INVALID.
310
+ * @param query a #GstQuery
311
+ * @param nth the nth command to retrieve.
312
+ * @param cmd a pointer to store the nth command into.
313
+ * @returns %TRUE if the query could be successfully parsed. %FALSE if not.
314
+ */
315
+ function navigation_query_parse_commands_nth(query: Gst.Query, nth: number, cmd: NavigationCommand): boolean
316
+ /**
317
+ * Set the #GstNavigation angles query result field in `query`.
318
+ * @param query a #GstQuery
319
+ * @param cur_angle the current viewing angle to set.
320
+ * @param n_angles the number of viewing angles to set.
321
+ */
322
+ function navigation_query_set_angles(query: Gst.Query, cur_angle: number, n_angles: number): void
323
+ /**
324
+ * Set the #GstNavigation command query result fields in `query`. The number
325
+ * of commands passed must be equal to `n_commands`.
326
+ * @param query a #GstQuery
327
+ * @param n_cmds the number of commands to set.
328
+ * @param cmds An array containing `n_cmds` `GstNavigationCommand` values.
329
+ */
330
+ function navigation_query_set_commandsv(query: Gst.Query, n_cmds: number, cmds: NavigationCommand): void
331
+ function stream_volume_convert_volume(from: StreamVolumeFormat, to: StreamVolumeFormat, val: number): number
332
+ module ColorBalance {
333
+
334
+ // Signal callback interfaces
335
+
336
+ /**
337
+ * Signal callback interface for `value-changed`
338
+ */
339
+ interface ValueChangedSignalCallback {
340
+ ($obj: ColorBalance, object: ColorBalanceChannel, p0: number): void
341
+ }
342
+
343
+
344
+ // Constructor properties interface
345
+
346
+ interface ConstructorProperties extends Gst.Element.ConstructorProperties, Gst.ImplementsInterface.ConstructorProperties, GObject.Object.ConstructorProperties {
347
+ }
348
+
349
+ }
350
+
351
+ interface ColorBalance extends Gst.Element, Gst.ImplementsInterface {
352
+
353
+ // Conflicting properties
354
+
355
+ object: any
356
+
357
+ // Owm methods of GstInterfaces-0.10.GstInterfaces.ColorBalance
358
+
359
+ /**
360
+ * Get the #GstColorBalanceType of this implementation.
361
+ * @returns A the #GstColorBalanceType.
362
+ */
363
+ get_balance_type(): ColorBalanceType
364
+ /**
365
+ * Retrieve the current value of the indicated channel, between min_value
366
+ * and max_value.
367
+ * #GstColorBalanceChannel::max_value members of the
368
+ * #GstColorBalanceChannel object.
369
+ * @param channel A #GstColorBalanceChannel instance
370
+ * @returns The current value of the channel.
371
+ */
372
+ get_value(channel: ColorBalanceChannel): number
373
+ /**
374
+ * Retrieve a list of the available channels.
375
+ * The list is owned by the #GstColorBalance instance and must not
376
+ * be freed.
377
+ * @returns A GList containing pointers to #GstColorBalanceChannel objects.
378
+ */
379
+ list_channels(): any[]
380
+ /**
381
+ * Sets the current value of the channel to the passed value, which must
382
+ * be between min_value and max_value.
383
+ * #GstColorBalanceChannel::max_value members of the
384
+ * #GstColorBalanceChannel object.
385
+ * @param channel A #GstColorBalanceChannel instance
386
+ * @param value The new value for the channel.
387
+ */
388
+ set_value(channel: ColorBalanceChannel, value: number): void
389
+ /**
390
+ * A helper function called by implementations of the GstColorBalance
391
+ * interface. It fires the #GstColorBalance::value-changed signal on the
392
+ * instance, and the #GstColorBalanceChannel::value-changed signal on the
393
+ * channel object.
394
+ * @param channel A #GstColorBalanceChannel whose value has changed
395
+ * @param value The new value of the channel
396
+ */
397
+ value_changed(channel: ColorBalanceChannel, value: number): void
398
+
399
+ // Own signals of GstInterfaces-0.10.GstInterfaces.ColorBalance
400
+
401
+ connect(sigName: "value-changed", callback: ColorBalance.ValueChangedSignalCallback): number
402
+ connect_after(sigName: "value-changed", callback: ColorBalance.ValueChangedSignalCallback): number
403
+ emit(sigName: "value-changed", object: ColorBalanceChannel, p0: number, ...args: any[]): void
404
+
405
+ // Class property signals of GstInterfaces-0.10.GstInterfaces.ColorBalance
406
+
407
+ connect(sigName: string, callback: (...args: any[]) => void): number
408
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
409
+ emit(sigName: string, ...args: any[]): void
410
+ disconnect(id: number): void
411
+ }
412
+
413
+ class ColorBalance extends GObject.Object {
414
+
415
+ // Own properties of GstInterfaces-0.10.GstInterfaces.ColorBalance
416
+
417
+ static name: string
418
+ static $gtype: GObject.GType<ColorBalance>
419
+
420
+ // Constructors of GstInterfaces-0.10.GstInterfaces.ColorBalance
421
+
422
+ constructor(config?: ColorBalance.ConstructorProperties)
423
+ _init(config?: ColorBalance.ConstructorProperties): void
424
+ }
425
+
426
+ module Mixer {
427
+
428
+ // Signal callback interfaces
429
+
430
+ /**
431
+ * Signal callback interface for `mute-toggled`
432
+ */
433
+ interface MuteToggledSignalCallback {
434
+ ($obj: Mixer, object: MixerTrack, p0: boolean): void
435
+ }
436
+
437
+ /**
438
+ * Signal callback interface for `option-changed`
439
+ */
440
+ interface OptionChangedSignalCallback {
441
+ ($obj: Mixer, object: MixerOptions, p0: string): void
442
+ }
443
+
444
+ /**
445
+ * Signal callback interface for `record-toggled`
446
+ */
447
+ interface RecordToggledSignalCallback {
448
+ ($obj: Mixer, object: MixerTrack, p0: boolean): void
449
+ }
450
+
451
+ /**
452
+ * Signal callback interface for `volume-changed`
453
+ */
454
+ interface VolumeChangedSignalCallback {
455
+ ($obj: Mixer, object: MixerTrack, p0: any): void
456
+ }
457
+
458
+
459
+ // Constructor properties interface
460
+
461
+ interface ConstructorProperties extends Gst.Element.ConstructorProperties, Gst.ImplementsInterface.ConstructorProperties, GObject.Object.ConstructorProperties {
462
+ }
463
+
464
+ }
465
+
466
+ interface Mixer extends Gst.Element, Gst.ImplementsInterface {
467
+
468
+ // Conflicting properties
469
+
470
+ object: any
471
+
472
+ // Owm methods of GstInterfaces-0.10.GstInterfaces.Mixer
473
+
474
+ /**
475
+ * Get the set of supported flags for this mixer implementation.
476
+ * @returns A set of or-ed GstMixerFlags for supported features.
477
+ */
478
+ get_mixer_flags(): MixerFlags
479
+ /**
480
+ * Get the #GstMixerType of this mixer implementation.
481
+ * @returns A the #GstMixerType.
482
+ */
483
+ get_mixer_type(): MixerType
484
+ /**
485
+ * Get the current value of a name/value option in the mixer.
486
+ * @param opts The #GstMixerOptions that we operate on.
487
+ * @returns current value of the name/value option.
488
+ */
489
+ get_option(opts: MixerOptions): string | null
490
+ /**
491
+ * Get the current volume(s) on the given track.
492
+ * @param track the GstMixerTrack to get the volume from.
493
+ * @param volumes a pre-allocated array of integers (of size track->num_channels) to store the current volume of each channel in the given track in.
494
+ */
495
+ get_volume(track: MixerTrack, volumes: number): void
496
+ /**
497
+ * Returns a list of available tracks for this mixer/element. Note
498
+ * that it is allowed for sink (output) elements to only provide
499
+ * the output tracks in this list. Likewise, for sources (inputs),
500
+ * it is allowed to only provide input elements in this list.
501
+ * The list is owned by the #GstMixer instance and must not be freed
502
+ * or modified.
503
+ * @returns A #GList consisting of zero or more #GstMixerTracks.
504
+ */
505
+ list_tracks(): any[]
506
+ /**
507
+ * This function is called by the mixer implementation to produce
508
+ * a notification message on the bus indicating that the list of available
509
+ * mixer tracks for a given mixer object has changed. Applications should
510
+ * rebuild their interface when they receive this message.
511
+ * This function only works for GstElements that are implementing the
512
+ * GstMixer interface, and the element needs to have been provided a bus.
513
+ */
514
+ mixer_changed(): void
515
+ /**
516
+ * This function is called by the mixer implementation to produce
517
+ * a notification message on the bus indicating that the given track
518
+ * has changed mute state.
519
+ * This function only works for GstElements that are implementing the
520
+ * GstMixer interface, and the element needs to have been provided a bus.
521
+ * @param track the GstMixerTrack that has change mute state.
522
+ * @param mute the new state of the mute flag on the track
523
+ */
524
+ mute_toggled(track: MixerTrack, mute: boolean): void
525
+ /**
526
+ * This function is called by the mixer implementation to produce
527
+ * a notification message on the bus indicating that the given options
528
+ * object has changed state.
529
+ * This function only works for GstElements that are implementing the
530
+ * GstMixer interface, and the element needs to have been provided a bus.
531
+ * @param opts the GstMixerOptions that has changed value.
532
+ * @param value the new value of the GstMixerOptions.
533
+ */
534
+ option_changed(opts: MixerOptions, value: string | null): void
535
+ /**
536
+ * This function is called by the mixer implementation to produce
537
+ * a notification message on the bus indicating that the list of possible
538
+ * options of a given options object has changed.
539
+ * The new options are not contained in the message on purpose. Applications
540
+ * should call gst_mixer_option_get_values() on `opts` to make `opts` update
541
+ * its internal state and obtain the new list of values.
542
+ * This function only works for GstElements that are implementing the
543
+ * GstMixer interface, and the element needs to have been provided a bus
544
+ * for this to work.
545
+ * @param opts the GstMixerOptions whose list of values has changed
546
+ */
547
+ options_list_changed(opts: MixerOptions): void
548
+ /**
549
+ * This function is called by the mixer implementation to produce
550
+ * a notification message on the bus indicating that the given track
551
+ * has changed recording state.
552
+ * This function only works for GstElements that are implementing the
553
+ * GstMixer interface, and the element needs to have been provided a bus.
554
+ * @param track the GstMixerTrack that has changed recording state.
555
+ * @param record the new state of the record flag on the track
556
+ */
557
+ record_toggled(track: MixerTrack, record: boolean): void
558
+ /**
559
+ * Mutes or unmutes the given channel. To find out whether a
560
+ * track is currently muted, use GST_MIXER_TRACK_HAS_FLAG ().
561
+ * @param track the #GstMixerTrack to operate on.
562
+ * @param mute a boolean value indicating whether to turn on or off muting.
563
+ */
564
+ set_mute(track: MixerTrack, mute: boolean): void
565
+ /**
566
+ * Sets a name/value option in the mixer to the requested value.
567
+ * @param opts The #GstMixerOptions that we operate on.
568
+ * @param value The requested new option value.
569
+ */
570
+ set_option(opts: MixerOptions, value: string | null): void
571
+ /**
572
+ * Enables or disables recording on the given track. Note that
573
+ * this is only possible on input tracks, not on output tracks
574
+ * (see GST_MIXER_TRACK_HAS_FLAG () and the GST_MIXER_TRACK_INPUT
575
+ * flag).
576
+ * @param track the #GstMixerTrack to operate on.
577
+ * @param record a boolean value that indicates whether to turn on or off recording.
578
+ */
579
+ set_record(track: MixerTrack, record: boolean): void
580
+ /**
581
+ * Sets the volume on each channel in a track. Short note about
582
+ * the mixer/element, such as 'Line-in' or 'Microphone'. A
583
+ * channel is said to be a mono-stream inside this track. A
584
+ * stereo track thus contains two channels.
585
+ * @param track The #GstMixerTrack to set the volume on.
586
+ * @param volumes an array of integers (of size track->num_channels) that gives the wanted volume for each channel in this track.
587
+ */
588
+ set_volume(track: MixerTrack, volumes: number): void
589
+ /**
590
+ * This function is called by the mixer implementation to produce
591
+ * a notification message on the bus indicating that the volume(s) for the
592
+ * given track have changed.
593
+ * This function only works for GstElements that are implementing the
594
+ * GstMixer interface, and the element needs to have been provided a bus.
595
+ * @param track the GstMixerTrack that has changed.
596
+ * @param volumes Array of volume values, one per channel on the mixer track.
597
+ */
598
+ volume_changed(track: MixerTrack, volumes: number): void
599
+
600
+ // Own signals of GstInterfaces-0.10.GstInterfaces.Mixer
601
+
602
+ connect(sigName: "mute-toggled", callback: Mixer.MuteToggledSignalCallback): number
603
+ connect_after(sigName: "mute-toggled", callback: Mixer.MuteToggledSignalCallback): number
604
+ emit(sigName: "mute-toggled", object: MixerTrack, p0: boolean, ...args: any[]): void
605
+ connect(sigName: "option-changed", callback: Mixer.OptionChangedSignalCallback): number
606
+ connect_after(sigName: "option-changed", callback: Mixer.OptionChangedSignalCallback): number
607
+ emit(sigName: "option-changed", object: MixerOptions, p0: string, ...args: any[]): void
608
+ connect(sigName: "record-toggled", callback: Mixer.RecordToggledSignalCallback): number
609
+ connect_after(sigName: "record-toggled", callback: Mixer.RecordToggledSignalCallback): number
610
+ emit(sigName: "record-toggled", object: MixerTrack, p0: boolean, ...args: any[]): void
611
+ connect(sigName: "volume-changed", callback: Mixer.VolumeChangedSignalCallback): number
612
+ connect_after(sigName: "volume-changed", callback: Mixer.VolumeChangedSignalCallback): number
613
+ emit(sigName: "volume-changed", object: MixerTrack, p0: any, ...args: any[]): void
614
+
615
+ // Class property signals of GstInterfaces-0.10.GstInterfaces.Mixer
616
+
617
+ connect(sigName: string, callback: (...args: any[]) => void): number
618
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
619
+ emit(sigName: string, ...args: any[]): void
620
+ disconnect(id: number): void
621
+ }
622
+
623
+ class Mixer extends GObject.Object {
624
+
625
+ // Own properties of GstInterfaces-0.10.GstInterfaces.Mixer
626
+
627
+ static name: string
628
+ static $gtype: GObject.GType<Mixer>
629
+
630
+ // Constructors of GstInterfaces-0.10.GstInterfaces.Mixer
631
+
632
+ constructor(config?: Mixer.ConstructorProperties)
633
+ _init(config?: Mixer.ConstructorProperties): void
634
+ }
635
+
636
+ module Navigation {
637
+
638
+ // Constructor properties interface
639
+
640
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
641
+ }
642
+
643
+ }
644
+
645
+ interface Navigation {
646
+
647
+ // Owm methods of GstInterfaces-0.10.GstInterfaces.Navigation
648
+
649
+ /**
650
+ * Sends the indicated command to the navigation interface.
651
+ * @param command The command to issue
652
+ */
653
+ send_command(command: NavigationCommand): void
654
+ send_event(structure: Gst.Structure): void
655
+ send_key_event(event: string | null, key: string | null): void
656
+ /**
657
+ * Sends a mouse event to the navigation interface. Mouse event coordinates
658
+ * are sent relative to the display space of the related output area. This is
659
+ * usually the size in pixels of the window associated with the element
660
+ * implementing the #GstNavigation interface.
661
+ * @param event The type of mouse event, as a text string. Recognised values are "mouse-button-press", "mouse-button-release" and "mouse-move".
662
+ * @param button The button number of the button being pressed or released. Pass 0 for mouse-move events.
663
+ * @param x The x coordinate of the mouse event.
664
+ * @param y The y coordinate of the mouse event.
665
+ */
666
+ send_mouse_event(event: string | null, button: number, x: number, y: number): void
667
+
668
+ // Own virtual methods of GstInterfaces-0.10.GstInterfaces.Navigation
669
+
670
+ vfunc_send_event(structure: Gst.Structure): void
671
+
672
+ // Class property signals of GstInterfaces-0.10.GstInterfaces.Navigation
673
+
674
+ connect(sigName: string, callback: (...args: any[]) => void): number
675
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
676
+ emit(sigName: string, ...args: any[]): void
677
+ disconnect(id: number): void
678
+ }
679
+
680
+ class Navigation extends GObject.Object {
681
+
682
+ // Own properties of GstInterfaces-0.10.GstInterfaces.Navigation
683
+
684
+ static name: string
685
+ static $gtype: GObject.GType<Navigation>
686
+
687
+ // Constructors of GstInterfaces-0.10.GstInterfaces.Navigation
688
+
689
+ constructor(config?: Navigation.ConstructorProperties)
690
+ _init(config?: Navigation.ConstructorProperties): void
691
+ }
692
+
693
+ module PropertyProbe {
694
+
695
+ // Signal callback interfaces
696
+
697
+ /**
698
+ * Signal callback interface for `probe-needed`
699
+ */
700
+ interface ProbeNeededSignalCallback {
701
+ ($obj: PropertyProbe, object: any): void
702
+ }
703
+
704
+
705
+ // Constructor properties interface
706
+
707
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
708
+ }
709
+
710
+ }
711
+
712
+ interface PropertyProbe {
713
+
714
+ // Owm methods of GstInterfaces-0.10.GstInterfaces.PropertyProbe
715
+
716
+ /**
717
+ * Get a list of properties for which probing is supported.
718
+ * by this element.
719
+ * @returns the list of properties for which probing is supported
720
+ */
721
+ get_properties(): any[]
722
+ /**
723
+ * Get #GParamSpec for a property for which probing is supported.
724
+ * @param name name of the property.
725
+ * @returns the #GParamSpec of %NULL.
726
+ */
727
+ get_property(name: string | null): GObject.ParamSpec
728
+
729
+ // Overloads of get_property
730
+
731
+ /**
732
+ * Gets a property of an object.
733
+ *
734
+ * The `value` can be:
735
+ *
736
+ * - an empty #GValue initialized by %G_VALUE_INIT, which will be
737
+ * automatically initialized with the expected type of the property
738
+ * (since GLib 2.60)
739
+ * - a #GValue initialized with the expected type of the property
740
+ * - a #GValue initialized with a type to which the expected type
741
+ * of the property can be transformed
742
+ *
743
+ * In general, a copy is made of the property contents and the caller is
744
+ * responsible for freeing the memory by calling g_value_unset().
745
+ *
746
+ * Note that g_object_get_property() is really intended for language
747
+ * bindings, g_object_get() is much more convenient for C programming.
748
+ * @param property_name the name of the property to get
749
+ * @param value return location for the property value
750
+ */
751
+ get_property(property_name: string | null, value: any): void
752
+ /**
753
+ * Gets the possible (probed) values for the given property,
754
+ * requires the property to have been probed before.
755
+ * @param pspec the #GParamSpec property identifier.
756
+ * @returns A list of valid values for the given property.
757
+ */
758
+ get_values(pspec: GObject.ParamSpec): GObject.ValueArray
759
+ /**
760
+ * Same as gst_property_probe_get_values ().
761
+ * @param name the name of the property to get values for.
762
+ * @returns A list of valid values for the given property.
763
+ */
764
+ get_values_name(name: string | null): GObject.ValueArray
765
+ /**
766
+ * Checks whether a property needs a probe. This might be because
767
+ * the property wasn't initialized before, or because host setup
768
+ * changed. This might be, for example, because a new device was
769
+ * added, and thus device probing needs to be refreshed to display
770
+ * the new device.
771
+ * @param pspec a #GParamSpec that identifies the property to check.
772
+ * @returns TRUE if the property needs a new probe, FALSE if not.
773
+ */
774
+ needs_probe(pspec: GObject.ParamSpec): boolean
775
+ /**
776
+ * Same as gst_property_probe_needs_probe ().
777
+ * @param name the name of the property to check.
778
+ * @returns TRUE if the property needs a new probe, FALSE if not.
779
+ */
780
+ needs_probe_name(name: string | null): boolean
781
+ /**
782
+ * Check whether the given property requires a new probe. If so,
783
+ * fo the probe. After that, retrieve a value list. Meant as a
784
+ * utility function that wraps the above functions.
785
+ * @param pspec The #GParamSpec property identifier.
786
+ * @returns the list of valid values for this property.
787
+ */
788
+ probe_and_get_values(pspec: GObject.ParamSpec): GObject.ValueArray
789
+ /**
790
+ * Same as gst_property_probe_probe_and_get_values ().
791
+ * @param name the name of the property to get values for.
792
+ * @returns the list of valid values for this property.
793
+ */
794
+ probe_and_get_values_name(name: string | null): GObject.ValueArray
795
+ /**
796
+ * Runs a probe on the property specified by `pspec`
797
+ * @param pspec #GParamSpec of the property.
798
+ */
799
+ probe_property(pspec: GObject.ParamSpec): void
800
+ /**
801
+ * Runs a probe on the property specified by `name`.
802
+ * @param name name of the property.
803
+ */
804
+ probe_property_name(name: string | null): void
805
+
806
+ // Own virtual methods of GstInterfaces-0.10.GstInterfaces.PropertyProbe
807
+
808
+ /**
809
+ * Get a list of properties for which probing is supported.
810
+ * by this element.
811
+ * @virtual
812
+ * @returns the list of properties for which probing is supported
813
+ */
814
+ vfunc_get_properties(): any[]
815
+ vfunc_get_values(prop_id: number, pspec: GObject.ParamSpec): GObject.ValueArray
816
+ vfunc_needs_probe(prop_id: number, pspec: GObject.ParamSpec): boolean
817
+ vfunc_probe_property(prop_id: number, pspec: GObject.ParamSpec): void
818
+
819
+ // Own signals of GstInterfaces-0.10.GstInterfaces.PropertyProbe
820
+
821
+ connect(sigName: "probe-needed", callback: PropertyProbe.ProbeNeededSignalCallback): number
822
+ connect_after(sigName: "probe-needed", callback: PropertyProbe.ProbeNeededSignalCallback): number
823
+ emit(sigName: "probe-needed", object: any, ...args: any[]): void
824
+
825
+ // Class property signals of GstInterfaces-0.10.GstInterfaces.PropertyProbe
826
+
827
+ connect(sigName: string, callback: (...args: any[]) => void): number
828
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
829
+ emit(sigName: string, ...args: any[]): void
830
+ disconnect(id: number): void
831
+ }
832
+
833
+ /**
834
+ * Opaque #GstPropertyProbe data structure.
835
+ * @interface
836
+ */
837
+ class PropertyProbe extends GObject.Object {
838
+
839
+ // Own properties of GstInterfaces-0.10.GstInterfaces.PropertyProbe
840
+
841
+ static name: string
842
+ static $gtype: GObject.GType<PropertyProbe>
843
+
844
+ // Constructors of GstInterfaces-0.10.GstInterfaces.PropertyProbe
845
+
846
+ constructor(config?: PropertyProbe.ConstructorProperties)
847
+ _init(config?: PropertyProbe.ConstructorProperties): void
848
+ }
849
+
850
+ module StreamVolume {
851
+
852
+ // Constructor properties interface
853
+
854
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
855
+
856
+ // Own constructor properties of GstInterfaces-0.10.GstInterfaces.StreamVolume
857
+
858
+ mute?: boolean | null
859
+ volume?: number | null
860
+ }
861
+
862
+ }
863
+
864
+ interface StreamVolume {
865
+
866
+ // Own properties of GstInterfaces-0.10.GstInterfaces.StreamVolume
867
+
868
+ mute: boolean
869
+ volume: number
870
+
871
+ // Owm methods of GstInterfaces-0.10.GstInterfaces.StreamVolume
872
+
873
+ get_mute(): boolean
874
+ get_volume(format: StreamVolumeFormat): number
875
+ set_mute(mute: boolean): void
876
+ set_volume(format: StreamVolumeFormat, val: number): void
877
+
878
+ // Class property signals of GstInterfaces-0.10.GstInterfaces.StreamVolume
879
+
880
+ connect(sigName: "notify::mute", callback: (($obj: StreamVolume, pspec: GObject.ParamSpec) => void)): number
881
+ connect_after(sigName: "notify::mute", callback: (($obj: StreamVolume, pspec: GObject.ParamSpec) => void)): number
882
+ emit(sigName: "notify::mute", ...args: any[]): void
883
+ connect(sigName: "notify::volume", callback: (($obj: StreamVolume, pspec: GObject.ParamSpec) => void)): number
884
+ connect_after(sigName: "notify::volume", callback: (($obj: StreamVolume, pspec: GObject.ParamSpec) => void)): number
885
+ emit(sigName: "notify::volume", ...args: any[]): void
886
+ connect(sigName: string, callback: (...args: any[]) => void): number
887
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
888
+ emit(sigName: string, ...args: any[]): void
889
+ disconnect(id: number): void
890
+ }
891
+
892
+ class StreamVolume extends GObject.Object {
893
+
894
+ // Own properties of GstInterfaces-0.10.GstInterfaces.StreamVolume
895
+
896
+ static name: string
897
+ static $gtype: GObject.GType<StreamVolume>
898
+
899
+ // Constructors of GstInterfaces-0.10.GstInterfaces.StreamVolume
900
+
901
+ constructor(config?: StreamVolume.ConstructorProperties)
902
+ _init(config?: StreamVolume.ConstructorProperties): void
903
+ }
904
+
905
+ module Tuner {
906
+
907
+ // Signal callback interfaces
908
+
909
+ /**
910
+ * Signal callback interface for `channel-changed`
911
+ */
912
+ interface ChannelChangedSignalCallback {
913
+ ($obj: Tuner, object: TunerChannel): void
914
+ }
915
+
916
+ /**
917
+ * Signal callback interface for `frequency-changed`
918
+ */
919
+ interface FrequencyChangedSignalCallback {
920
+ ($obj: Tuner, object: TunerChannel, p0: number): void
921
+ }
922
+
923
+ /**
924
+ * Signal callback interface for `norm-changed`
925
+ */
926
+ interface NormChangedSignalCallback {
927
+ ($obj: Tuner, object: TunerNorm): void
928
+ }
929
+
930
+ /**
931
+ * Signal callback interface for `signal-changed`
932
+ */
933
+ interface SignalChangedSignalCallback {
934
+ ($obj: Tuner, object: TunerChannel, p0: number): void
935
+ }
936
+
937
+
938
+ // Constructor properties interface
939
+
940
+ interface ConstructorProperties extends Gst.Element.ConstructorProperties, Gst.ImplementsInterface.ConstructorProperties, GObject.Object.ConstructorProperties {
941
+ }
942
+
943
+ }
944
+
945
+ interface Tuner extends Gst.Element, Gst.ImplementsInterface {
946
+
947
+ // Conflicting properties
948
+
949
+ object: any
950
+
951
+ // Owm methods of GstInterfaces-0.10.GstInterfaces.Tuner
952
+
953
+ /**
954
+ * Called by elements implementing the #GstTuner interface when the
955
+ * current channel changes. Fires the #GstTuner::channel-changed signal.
956
+ * @param channel A #GstTunerChannel instance
957
+ */
958
+ channel_changed(channel: TunerChannel): void
959
+ /**
960
+ * Called by elements implementing the #GstTuner interface when the
961
+ * configured frequency changes. Fires the #GstTuner::frequency-changed
962
+ * signal on the tuner, and the #GstTunerChannel::frequency-changed signal
963
+ * on the channel.
964
+ * @param channel The current #GstTunerChannel
965
+ * @param frequency The new frequency setting
966
+ */
967
+ frequency_changed(channel: TunerChannel, frequency: number): void
968
+ /**
969
+ * Retrieve the current frequency from the given channel. As for
970
+ * gst_tuner_set_frequency(), the #GstTunerChannel must support frequency
971
+ * operations, as indicated by the GST_TUNER_CHANNEL_FREQUENCY flag.
972
+ * @param channel The #GstTunerChannel to retrieve the frequency from.
973
+ * @returns The current frequency, or 0 on error.
974
+ */
975
+ get_frequency(channel: TunerChannel): number
976
+ /**
977
+ * Retrieve a #GList of #GstTunerChannels available
978
+ * (e.g. 'composite', 's-video', ...) from the given tuner object.
979
+ * owned by the GstTuner and must not be freed.
980
+ * @returns A list of channels available on this tuner. The list is
981
+ */
982
+ list_channels(): any[]
983
+ /**
984
+ * Retrieve a GList of available #GstTunerNorm settings for the currently
985
+ * tuned channel on the given tuner object.
986
+ * tuner object. The list is owned by the GstTuner and must not
987
+ * be freed.
988
+ * @returns A list of norms available on the current channel for this
989
+ */
990
+ list_norms(): any[]
991
+ /**
992
+ * Called by elements implementing the #GstTuner interface when the
993
+ * current norm changes. Fires the #GstTuner::norm-changed signal.
994
+ * @param norm A #GstTunerNorm instance
995
+ */
996
+ norm_changed(norm: TunerNorm): void
997
+ /**
998
+ * Tunes the object to the given channel, which should be one of the
999
+ * channels returned by gst_tuner_list_channels().
1000
+ * @param channel the channel to tune to.
1001
+ */
1002
+ set_channel(channel: TunerChannel): void
1003
+ /**
1004
+ * Sets a tuning frequency on the given tuner/channel. Note that this
1005
+ * requires the given channel to be a "tuning" channel, which can be
1006
+ * checked using GST_TUNER_CHANNEL_HAS_FLAG (), with the proper flag
1007
+ * being GST_TUNER_CHANNEL_FREQUENCY.
1008
+ * The frequency is in Hz, with minimum steps indicated by the
1009
+ * frequency_multiplicator provided in the #GstTunerChannel. The
1010
+ * valid range is provided in the min_frequency and max_frequency properties
1011
+ * of the #GstTunerChannel.
1012
+ * @param channel The #GstTunerChannel to set the frequency on.
1013
+ * @param frequency The frequency to tune in to.
1014
+ */
1015
+ set_frequency(channel: TunerChannel, frequency: number): void
1016
+ /**
1017
+ * Changes the video norm on this tuner to the given norm, which should be
1018
+ * one of the norms returned by gst_tuner_list_norms().
1019
+ * @param norm the norm to use for the current channel.
1020
+ */
1021
+ set_norm(norm: TunerNorm): void
1022
+ /**
1023
+ * Called by elements implementing the #GstTuner interface when the
1024
+ * incoming signal strength changes. Fires the #GstTuner::signal-changed
1025
+ * signal on the tuner and the #GstTunerChannel::signal-changed signal on
1026
+ * the channel.
1027
+ * @param channel The current #GstTunerChannel
1028
+ * @param signal The new signal strength
1029
+ */
1030
+ signal_changed(channel: TunerChannel, signal: number): void
1031
+ /**
1032
+ * Get the strength of the signal on this channel. Note that this
1033
+ * requires the current channel to be a "tuning" channel, i.e. a
1034
+ * channel on which frequency can be set. This can be checked using
1035
+ * GST_TUNER_CHANNEL_HAS_FLAG (), and the appropriate flag to check
1036
+ * for is GST_TUNER_CHANNEL_FREQUENCY.
1037
+ * The valid range of the signal strength is indicated in the
1038
+ * min_signal and max_signal properties of the #GstTunerChannel.
1039
+ * @param channel the #GstTunerChannel to get the signal strength from.
1040
+ * @returns Signal strength, or 0 on error.
1041
+ */
1042
+ signal_strength(channel: TunerChannel): number
1043
+
1044
+ // Own signals of GstInterfaces-0.10.GstInterfaces.Tuner
1045
+
1046
+ connect(sigName: "channel-changed", callback: Tuner.ChannelChangedSignalCallback): number
1047
+ connect_after(sigName: "channel-changed", callback: Tuner.ChannelChangedSignalCallback): number
1048
+ emit(sigName: "channel-changed", object: TunerChannel, ...args: any[]): void
1049
+ connect(sigName: "frequency-changed", callback: Tuner.FrequencyChangedSignalCallback): number
1050
+ connect_after(sigName: "frequency-changed", callback: Tuner.FrequencyChangedSignalCallback): number
1051
+ emit(sigName: "frequency-changed", object: TunerChannel, p0: number, ...args: any[]): void
1052
+ connect(sigName: "norm-changed", callback: Tuner.NormChangedSignalCallback): number
1053
+ connect_after(sigName: "norm-changed", callback: Tuner.NormChangedSignalCallback): number
1054
+ emit(sigName: "norm-changed", object: TunerNorm, ...args: any[]): void
1055
+ connect(sigName: "signal-changed", callback: Tuner.SignalChangedSignalCallback): number
1056
+ connect_after(sigName: "signal-changed", callback: Tuner.SignalChangedSignalCallback): number
1057
+ emit(sigName: "signal-changed", object: TunerChannel, p0: number, ...args: any[]): void
1058
+
1059
+ // Class property signals of GstInterfaces-0.10.GstInterfaces.Tuner
1060
+
1061
+ connect(sigName: string, callback: (...args: any[]) => void): number
1062
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
1063
+ emit(sigName: string, ...args: any[]): void
1064
+ disconnect(id: number): void
1065
+ }
1066
+
1067
+ class Tuner extends GObject.Object {
1068
+
1069
+ // Own properties of GstInterfaces-0.10.GstInterfaces.Tuner
1070
+
1071
+ static name: string
1072
+ static $gtype: GObject.GType<Tuner>
1073
+
1074
+ // Constructors of GstInterfaces-0.10.GstInterfaces.Tuner
1075
+
1076
+ constructor(config?: Tuner.ConstructorProperties)
1077
+ _init(config?: Tuner.ConstructorProperties): void
1078
+ }
1079
+
1080
+ module VideoOrientation {
1081
+
1082
+ // Constructor properties interface
1083
+
1084
+ interface ConstructorProperties extends Gst.Element.ConstructorProperties, Gst.ImplementsInterface.ConstructorProperties, GObject.Object.ConstructorProperties {
1085
+ }
1086
+
1087
+ }
1088
+
1089
+ interface VideoOrientation extends Gst.Element, Gst.ImplementsInterface {
1090
+
1091
+ // Conflicting properties
1092
+
1093
+ object: any
1094
+
1095
+ // Owm methods of GstInterfaces-0.10.GstInterfaces.VideoOrientation
1096
+
1097
+ /**
1098
+ * Get the horizontal centering offset from the given object.
1099
+ * @param center return location for the result
1100
+ * @returns %TRUE in case the element supports centering
1101
+ */
1102
+ get_hcenter(center: number): boolean
1103
+ /**
1104
+ * Get the horizontal flipping state (%TRUE for flipped) from the given object.
1105
+ * @param flip return location for the result
1106
+ * @returns %TRUE in case the element supports flipping
1107
+ */
1108
+ get_hflip(flip: boolean): boolean
1109
+ /**
1110
+ * Get the vertical centering offset from the given object.
1111
+ * @param center return location for the result
1112
+ * @returns %TRUE in case the element supports centering
1113
+ */
1114
+ get_vcenter(center: number): boolean
1115
+ /**
1116
+ * Get the vertical flipping state (%TRUE for flipped) from the given object.
1117
+ * @param flip return location for the result
1118
+ * @returns %TRUE in case the element supports flipping
1119
+ */
1120
+ get_vflip(flip: boolean): boolean
1121
+ /**
1122
+ * Set the horizontal centering offset for the given object.
1123
+ * @param center centering offset
1124
+ * @returns %TRUE in case the element supports centering
1125
+ */
1126
+ set_hcenter(center: number): boolean
1127
+ /**
1128
+ * Set the horizontal flipping state (%TRUE for flipped) for the given object.
1129
+ * @param flip use flipping
1130
+ * @returns %TRUE in case the element supports flipping
1131
+ */
1132
+ set_hflip(flip: boolean): boolean
1133
+ /**
1134
+ * Set the vertical centering offset for the given object.
1135
+ * @param center centering offset
1136
+ * @returns %TRUE in case the element supports centering
1137
+ */
1138
+ set_vcenter(center: number): boolean
1139
+ /**
1140
+ * Set the vertical flipping state (%TRUE for flipped) for the given object.
1141
+ * @param flip use flipping
1142
+ * @returns %TRUE in case the element supports flipping
1143
+ */
1144
+ set_vflip(flip: boolean): boolean
1145
+
1146
+ // Own virtual methods of GstInterfaces-0.10.GstInterfaces.VideoOrientation
1147
+
1148
+ /**
1149
+ * Get the horizontal centering offset from the given object.
1150
+ * @virtual
1151
+ * @param center return location for the result
1152
+ * @returns %TRUE in case the element supports centering
1153
+ */
1154
+ vfunc_get_hcenter(center: number): boolean
1155
+ /**
1156
+ * Get the horizontal flipping state (%TRUE for flipped) from the given object.
1157
+ * @virtual
1158
+ * @param flip return location for the result
1159
+ * @returns %TRUE in case the element supports flipping
1160
+ */
1161
+ vfunc_get_hflip(flip: boolean): boolean
1162
+ /**
1163
+ * Get the vertical centering offset from the given object.
1164
+ * @virtual
1165
+ * @param center return location for the result
1166
+ * @returns %TRUE in case the element supports centering
1167
+ */
1168
+ vfunc_get_vcenter(center: number): boolean
1169
+ /**
1170
+ * Get the vertical flipping state (%TRUE for flipped) from the given object.
1171
+ * @virtual
1172
+ * @param flip return location for the result
1173
+ * @returns %TRUE in case the element supports flipping
1174
+ */
1175
+ vfunc_get_vflip(flip: boolean): boolean
1176
+ /**
1177
+ * Set the horizontal centering offset for the given object.
1178
+ * @virtual
1179
+ * @param center centering offset
1180
+ * @returns %TRUE in case the element supports centering
1181
+ */
1182
+ vfunc_set_hcenter(center: number): boolean
1183
+ /**
1184
+ * Set the horizontal flipping state (%TRUE for flipped) for the given object.
1185
+ * @virtual
1186
+ * @param flip use flipping
1187
+ * @returns %TRUE in case the element supports flipping
1188
+ */
1189
+ vfunc_set_hflip(flip: boolean): boolean
1190
+ /**
1191
+ * Set the vertical centering offset for the given object.
1192
+ * @virtual
1193
+ * @param center centering offset
1194
+ * @returns %TRUE in case the element supports centering
1195
+ */
1196
+ vfunc_set_vcenter(center: number): boolean
1197
+ /**
1198
+ * Set the vertical flipping state (%TRUE for flipped) for the given object.
1199
+ * @virtual
1200
+ * @param flip use flipping
1201
+ * @returns %TRUE in case the element supports flipping
1202
+ */
1203
+ vfunc_set_vflip(flip: boolean): boolean
1204
+
1205
+ // Class property signals of GstInterfaces-0.10.GstInterfaces.VideoOrientation
1206
+
1207
+ connect(sigName: string, callback: (...args: any[]) => void): number
1208
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
1209
+ emit(sigName: string, ...args: any[]): void
1210
+ disconnect(id: number): void
1211
+ }
1212
+
1213
+ /**
1214
+ * Opaque #GstVideoOrientation data structure.
1215
+ * @interface
1216
+ */
1217
+ class VideoOrientation extends GObject.Object {
1218
+
1219
+ // Own properties of GstInterfaces-0.10.GstInterfaces.VideoOrientation
1220
+
1221
+ static name: string
1222
+ static $gtype: GObject.GType<VideoOrientation>
1223
+
1224
+ // Constructors of GstInterfaces-0.10.GstInterfaces.VideoOrientation
1225
+
1226
+ constructor(config?: VideoOrientation.ConstructorProperties)
1227
+ _init(config?: VideoOrientation.ConstructorProperties): void
1228
+ }
1229
+
1230
+ module XOverlay {
1231
+
1232
+ // Constructor properties interface
1233
+
1234
+ interface ConstructorProperties extends Gst.Element.ConstructorProperties, Gst.ImplementsInterface.ConstructorProperties, GObject.Object.ConstructorProperties {
1235
+ }
1236
+
1237
+ }
1238
+
1239
+ interface XOverlay extends Gst.Element, Gst.ImplementsInterface {
1240
+
1241
+ // Conflicting properties
1242
+
1243
+ object: any
1244
+
1245
+ // Owm methods of GstInterfaces-0.10.GstInterfaces.XOverlay
1246
+
1247
+ /**
1248
+ * Tell an overlay that it has been exposed. This will redraw the current frame
1249
+ * in the drawable even if the pipeline is PAUSED.
1250
+ */
1251
+ expose(): void
1252
+ /**
1253
+ * This will post a "have-xwindow-id" element message on the bus.
1254
+ * This function should only be used by video overlay plugin developers.
1255
+ * @param xwindow_id a #XID referencing the XWindow.
1256
+ */
1257
+ got_xwindow_id(xwindow_id: number): void
1258
+ /**
1259
+ * Tell an overlay that it should handle events from the window system. These
1260
+ * events are forwared upstream as navigation events. In some window system,
1261
+ * events are not propagated in the window hierarchy if a client is listening
1262
+ * for them. This method allows you to disable events handling completely
1263
+ * from the XOverlay.
1264
+ * @param handle_events a #gboolean indicating if events should be handled or not.
1265
+ */
1266
+ handle_events(handle_events: boolean): void
1267
+ /**
1268
+ * This will post a "prepare-xwindow-id" element message on the bus
1269
+ * to give applications an opportunity to call
1270
+ * gst_x_overlay_set_xwindow_id() before a plugin creates its own
1271
+ * window.
1272
+ * This function should only be used by video overlay plugin developers.
1273
+ */
1274
+ prepare_xwindow_id(): void
1275
+ /**
1276
+ * Configure a subregion as a video target within the window set by
1277
+ * gst_x_overlay_set_window_handle(). If this is not used or not supported
1278
+ * the video will fill the area of the window set as the overlay to 100%.
1279
+ * By specifying the rectangle, the video can be overlayed to a specific region
1280
+ * of that window only. After setting the new rectangle one should call
1281
+ * gst_x_overlay_expose() to force a redraw. To unset the region pass -1 for
1282
+ * the `width` and `height` parameters.
1283
+ * This method is needed for non fullscreen video overlay in UI toolkits that
1284
+ * do not support subwindows.
1285
+ * @param x the horizontal offset of the render area inside the window
1286
+ * @param y the vertical offset of the render area inside the window
1287
+ * @param width the width of the render area inside the window
1288
+ * @param height the height of the render area inside the window
1289
+ * @returns %FALSE if not supported by the sink.
1290
+ */
1291
+ set_render_rectangle(x: number, y: number, width: number, height: number): boolean
1292
+ /**
1293
+ * This will call the video overlay's set_xwindow_id method. You should
1294
+ * use this method to tell to a XOverlay to display video output to a
1295
+ * specific XWindow. Passing 0 as the xwindow_id will tell the overlay to
1296
+ * stop using that window and create an internal one.
1297
+ * @param xwindow_id a #XID referencing the XWindow.
1298
+ */
1299
+ set_xwindow_id(xwindow_id: number): void
1300
+
1301
+ // Class property signals of GstInterfaces-0.10.GstInterfaces.XOverlay
1302
+
1303
+ connect(sigName: string, callback: (...args: any[]) => void): number
1304
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
1305
+ emit(sigName: string, ...args: any[]): void
1306
+ disconnect(id: number): void
1307
+ }
1308
+
1309
+ /**
1310
+ * Opaque #GstXOverlay data structure.
1311
+ * @interface
1312
+ */
1313
+ class XOverlay extends GObject.Object {
1314
+
1315
+ // Own properties of GstInterfaces-0.10.GstInterfaces.XOverlay
1316
+
1317
+ static name: string
1318
+ static $gtype: GObject.GType<XOverlay>
1319
+
1320
+ // Constructors of GstInterfaces-0.10.GstInterfaces.XOverlay
1321
+
1322
+ constructor(config?: XOverlay.ConstructorProperties)
1323
+ _init(config?: XOverlay.ConstructorProperties): void
1324
+ }
1325
+
1326
+ module ColorBalanceChannel {
1327
+
1328
+ // Signal callback interfaces
1329
+
1330
+ /**
1331
+ * Signal callback interface for `value-changed`
1332
+ */
1333
+ interface ValueChangedSignalCallback {
1334
+ ($obj: ColorBalanceChannel, object: number): void
1335
+ }
1336
+
1337
+
1338
+ // Constructor properties interface
1339
+
1340
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
1341
+ }
1342
+
1343
+ }
1344
+
1345
+ interface ColorBalanceChannel {
1346
+
1347
+ // Own fields of GstInterfaces-0.10.GstInterfaces.ColorBalanceChannel
1348
+
1349
+ parent: GObject.Object
1350
+ label: string | null
1351
+ min_value: number
1352
+ max_value: number
1353
+
1354
+ // Own signals of GstInterfaces-0.10.GstInterfaces.ColorBalanceChannel
1355
+
1356
+ connect(sigName: "value-changed", callback: ColorBalanceChannel.ValueChangedSignalCallback): number
1357
+ connect_after(sigName: "value-changed", callback: ColorBalanceChannel.ValueChangedSignalCallback): number
1358
+ emit(sigName: "value-changed", object: number, ...args: any[]): void
1359
+
1360
+ // Class property signals of GstInterfaces-0.10.GstInterfaces.ColorBalanceChannel
1361
+
1362
+ connect(sigName: string, callback: (...args: any[]) => void): number
1363
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
1364
+ emit(sigName: string, ...args: any[]): void
1365
+ disconnect(id: number): void
1366
+ }
1367
+
1368
+ class ColorBalanceChannel extends GObject.Object {
1369
+
1370
+ // Own properties of GstInterfaces-0.10.GstInterfaces.ColorBalanceChannel
1371
+
1372
+ static name: string
1373
+ static $gtype: GObject.GType<ColorBalanceChannel>
1374
+
1375
+ // Constructors of GstInterfaces-0.10.GstInterfaces.ColorBalanceChannel
1376
+
1377
+ constructor(config?: ColorBalanceChannel.ConstructorProperties)
1378
+ _init(config?: ColorBalanceChannel.ConstructorProperties): void
1379
+ }
1380
+
1381
+ module MixerOptions {
1382
+
1383
+ // Constructor properties interface
1384
+
1385
+ interface ConstructorProperties extends MixerTrack.ConstructorProperties {
1386
+ }
1387
+
1388
+ }
1389
+
1390
+ interface MixerOptions {
1391
+
1392
+ // Own fields of GstInterfaces-0.10.GstInterfaces.MixerOptions
1393
+
1394
+ parent: MixerTrack & GObject.Object
1395
+ values: any[]
1396
+ _gst_reserved: any[]
1397
+
1398
+ // Class property signals of GstInterfaces-0.10.GstInterfaces.MixerOptions
1399
+
1400
+ connect(sigName: "notify::index", callback: (($obj: MixerOptions, pspec: GObject.ParamSpec) => void)): number
1401
+ connect_after(sigName: "notify::index", callback: (($obj: MixerOptions, pspec: GObject.ParamSpec) => void)): number
1402
+ emit(sigName: "notify::index", ...args: any[]): void
1403
+ connect(sigName: "notify::untranslated-label", callback: (($obj: MixerOptions, pspec: GObject.ParamSpec) => void)): number
1404
+ connect_after(sigName: "notify::untranslated-label", callback: (($obj: MixerOptions, pspec: GObject.ParamSpec) => void)): number
1405
+ emit(sigName: "notify::untranslated-label", ...args: any[]): void
1406
+ connect(sigName: string, callback: (...args: any[]) => void): number
1407
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
1408
+ emit(sigName: string, ...args: any[]): void
1409
+ disconnect(id: number): void
1410
+ }
1411
+
1412
+ class MixerOptions extends MixerTrack {
1413
+
1414
+ // Own properties of GstInterfaces-0.10.GstInterfaces.MixerOptions
1415
+
1416
+ static name: string
1417
+ static $gtype: GObject.GType<MixerOptions>
1418
+
1419
+ // Constructors of GstInterfaces-0.10.GstInterfaces.MixerOptions
1420
+
1421
+ constructor(config?: MixerOptions.ConstructorProperties)
1422
+ _init(config?: MixerOptions.ConstructorProperties): void
1423
+ }
1424
+
1425
+ module MixerTrack {
1426
+
1427
+ // Constructor properties interface
1428
+
1429
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
1430
+
1431
+ // Own constructor properties of GstInterfaces-0.10.GstInterfaces.MixerTrack
1432
+
1433
+ index?: number | null
1434
+ untranslated_label?: string | null
1435
+ }
1436
+
1437
+ }
1438
+
1439
+ interface MixerTrack {
1440
+
1441
+ // Own properties of GstInterfaces-0.10.GstInterfaces.MixerTrack
1442
+
1443
+ readonly index: number
1444
+ readonly untranslated_label: string
1445
+
1446
+ // Own fields of GstInterfaces-0.10.GstInterfaces.MixerTrack
1447
+
1448
+ parent: GObject.Object
1449
+ label: string | null
1450
+ flags: MixerTrackFlags
1451
+ num_channels: number
1452
+ min_volume: number
1453
+ max_volume: number
1454
+
1455
+ // Class property signals of GstInterfaces-0.10.GstInterfaces.MixerTrack
1456
+
1457
+ connect(sigName: "notify::index", callback: (($obj: MixerTrack, pspec: GObject.ParamSpec) => void)): number
1458
+ connect_after(sigName: "notify::index", callback: (($obj: MixerTrack, pspec: GObject.ParamSpec) => void)): number
1459
+ emit(sigName: "notify::index", ...args: any[]): void
1460
+ connect(sigName: "notify::untranslated-label", callback: (($obj: MixerTrack, pspec: GObject.ParamSpec) => void)): number
1461
+ connect_after(sigName: "notify::untranslated-label", callback: (($obj: MixerTrack, pspec: GObject.ParamSpec) => void)): number
1462
+ emit(sigName: "notify::untranslated-label", ...args: any[]): void
1463
+ connect(sigName: string, callback: (...args: any[]) => void): number
1464
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
1465
+ emit(sigName: string, ...args: any[]): void
1466
+ disconnect(id: number): void
1467
+ }
1468
+
1469
+ class MixerTrack extends GObject.Object {
1470
+
1471
+ // Own properties of GstInterfaces-0.10.GstInterfaces.MixerTrack
1472
+
1473
+ static name: string
1474
+ static $gtype: GObject.GType<MixerTrack>
1475
+
1476
+ // Constructors of GstInterfaces-0.10.GstInterfaces.MixerTrack
1477
+
1478
+ constructor(config?: MixerTrack.ConstructorProperties)
1479
+ _init(config?: MixerTrack.ConstructorProperties): void
1480
+ }
1481
+
1482
+ module TunerChannel {
1483
+
1484
+ // Signal callback interfaces
1485
+
1486
+ /**
1487
+ * Signal callback interface for `frequency-changed`
1488
+ */
1489
+ interface FrequencyChangedSignalCallback {
1490
+ ($obj: TunerChannel, object: number): void
1491
+ }
1492
+
1493
+ /**
1494
+ * Signal callback interface for `signal-changed`
1495
+ */
1496
+ interface SignalChangedSignalCallback {
1497
+ ($obj: TunerChannel, object: number): void
1498
+ }
1499
+
1500
+
1501
+ // Constructor properties interface
1502
+
1503
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
1504
+ }
1505
+
1506
+ }
1507
+
1508
+ interface TunerChannel {
1509
+
1510
+ // Own fields of GstInterfaces-0.10.GstInterfaces.TunerChannel
1511
+
1512
+ parent: GObject.Object
1513
+ label: string | null
1514
+ flags: TunerChannelFlags
1515
+ freq_multiplicator: number
1516
+ min_frequency: number
1517
+ max_frequency: number
1518
+ min_signal: number
1519
+ max_signal: number
1520
+
1521
+ // Own signals of GstInterfaces-0.10.GstInterfaces.TunerChannel
1522
+
1523
+ connect(sigName: "frequency-changed", callback: TunerChannel.FrequencyChangedSignalCallback): number
1524
+ connect_after(sigName: "frequency-changed", callback: TunerChannel.FrequencyChangedSignalCallback): number
1525
+ emit(sigName: "frequency-changed", object: number, ...args: any[]): void
1526
+ connect(sigName: "signal-changed", callback: TunerChannel.SignalChangedSignalCallback): number
1527
+ connect_after(sigName: "signal-changed", callback: TunerChannel.SignalChangedSignalCallback): number
1528
+ emit(sigName: "signal-changed", object: number, ...args: any[]): void
1529
+
1530
+ // Class property signals of GstInterfaces-0.10.GstInterfaces.TunerChannel
1531
+
1532
+ connect(sigName: string, callback: (...args: any[]) => void): number
1533
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
1534
+ emit(sigName: string, ...args: any[]): void
1535
+ disconnect(id: number): void
1536
+ }
1537
+
1538
+ class TunerChannel extends GObject.Object {
1539
+
1540
+ // Own properties of GstInterfaces-0.10.GstInterfaces.TunerChannel
1541
+
1542
+ static name: string
1543
+ static $gtype: GObject.GType<TunerChannel>
1544
+
1545
+ // Constructors of GstInterfaces-0.10.GstInterfaces.TunerChannel
1546
+
1547
+ constructor(config?: TunerChannel.ConstructorProperties)
1548
+ _init(config?: TunerChannel.ConstructorProperties): void
1549
+ }
1550
+
1551
+ module TunerNorm {
1552
+
1553
+ // Constructor properties interface
1554
+
1555
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
1556
+ }
1557
+
1558
+ }
1559
+
1560
+ interface TunerNorm {
1561
+
1562
+ // Own fields of GstInterfaces-0.10.GstInterfaces.TunerNorm
1563
+
1564
+ parent: GObject.Object
1565
+ label: string | null
1566
+ framerate: any
1567
+
1568
+ // Class property signals of GstInterfaces-0.10.GstInterfaces.TunerNorm
1569
+
1570
+ connect(sigName: string, callback: (...args: any[]) => void): number
1571
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
1572
+ emit(sigName: string, ...args: any[]): void
1573
+ disconnect(id: number): void
1574
+ }
1575
+
1576
+ class TunerNorm extends GObject.Object {
1577
+
1578
+ // Own properties of GstInterfaces-0.10.GstInterfaces.TunerNorm
1579
+
1580
+ static name: string
1581
+ static $gtype: GObject.GType<TunerNorm>
1582
+
1583
+ // Constructors of GstInterfaces-0.10.GstInterfaces.TunerNorm
1584
+
1585
+ constructor(config?: TunerNorm.ConstructorProperties)
1586
+ _init(config?: TunerNorm.ConstructorProperties): void
1587
+ }
1588
+
1589
+ interface ColorBalanceChannelClass {
1590
+
1591
+ // Own fields of GstInterfaces-0.10.GstInterfaces.ColorBalanceChannelClass
1592
+
1593
+ parent: GObject.ObjectClass
1594
+ value_changed: (channel: ColorBalanceChannel, value: number) => void
1595
+ _gst_reserved: any[]
1596
+ }
1597
+
1598
+ abstract class ColorBalanceChannelClass {
1599
+
1600
+ // Own properties of GstInterfaces-0.10.GstInterfaces.ColorBalanceChannelClass
1601
+
1602
+ static name: string
1603
+ }
1604
+
1605
+ interface ColorBalanceClass {
1606
+
1607
+ // Own fields of GstInterfaces-0.10.GstInterfaces.ColorBalanceClass
1608
+
1609
+ klass: GObject.TypeInterface
1610
+ balance_type: ColorBalanceType
1611
+ list_channels: (balance: ColorBalance) => any[]
1612
+ set_value: (balance: ColorBalance, channel: ColorBalanceChannel, value: number) => void
1613
+ get_value: (balance: ColorBalance, channel: ColorBalanceChannel) => number
1614
+ value_changed: (balance: ColorBalance, channel: ColorBalanceChannel, value: number) => void
1615
+ _gst_reserved: any[]
1616
+ }
1617
+
1618
+ class ColorBalanceClass {
1619
+
1620
+ // Own properties of GstInterfaces-0.10.GstInterfaces.ColorBalanceClass
1621
+
1622
+ static name: string
1623
+ }
1624
+
1625
+ interface MixerClass {
1626
+
1627
+ // Own fields of GstInterfaces-0.10.GstInterfaces.MixerClass
1628
+
1629
+ klass: GObject.TypeInterface
1630
+ mixer_type: MixerType
1631
+ list_tracks: (mixer: Mixer) => any[]
1632
+ set_volume: (mixer: Mixer, track: MixerTrack, volumes: number) => void
1633
+ get_volume: (mixer: Mixer, track: MixerTrack, volumes: number) => void
1634
+ set_mute: (mixer: Mixer, track: MixerTrack, mute: boolean) => void
1635
+ set_record: (mixer: Mixer, track: MixerTrack, record: boolean) => void
1636
+ mute_toggled: (mixer: Mixer, channel: MixerTrack, mute: boolean) => void
1637
+ record_toggled: (mixer: Mixer, channel: MixerTrack, record: boolean) => void
1638
+ volume_changed: (mixer: Mixer, channel: MixerTrack, volumes: number) => void
1639
+ set_option: (mixer: Mixer, opts: MixerOptions, value: string | null) => void
1640
+ get_option: (mixer: Mixer, opts: MixerOptions) => string | null
1641
+ option_changed: (mixer: Mixer, opts: MixerOptions, option: string | null) => void
1642
+ get_mixer_flags: (mixer: Mixer) => MixerFlags
1643
+ _gst_reserved: any[]
1644
+ }
1645
+
1646
+ class MixerClass {
1647
+
1648
+ // Own properties of GstInterfaces-0.10.GstInterfaces.MixerClass
1649
+
1650
+ static name: string
1651
+ }
1652
+
1653
+ interface MixerOptionsClass {
1654
+
1655
+ // Own fields of GstInterfaces-0.10.GstInterfaces.MixerOptionsClass
1656
+
1657
+ parent: MixerTrackClass
1658
+ _gst_reserved: any[]
1659
+ }
1660
+
1661
+ abstract class MixerOptionsClass {
1662
+
1663
+ // Own properties of GstInterfaces-0.10.GstInterfaces.MixerOptionsClass
1664
+
1665
+ static name: string
1666
+ }
1667
+
1668
+ interface MixerTrackClass {
1669
+
1670
+ // Own fields of GstInterfaces-0.10.GstInterfaces.MixerTrackClass
1671
+
1672
+ parent: GObject.ObjectClass
1673
+ _gst_reserved: any[]
1674
+ }
1675
+
1676
+ abstract class MixerTrackClass {
1677
+
1678
+ // Own properties of GstInterfaces-0.10.GstInterfaces.MixerTrackClass
1679
+
1680
+ static name: string
1681
+ }
1682
+
1683
+ interface NavigationInterface {
1684
+
1685
+ // Own fields of GstInterfaces-0.10.GstInterfaces.NavigationInterface
1686
+
1687
+ g_iface: GObject.TypeInterface
1688
+ send_event: (navigation: Navigation, structure: Gst.Structure) => void
1689
+ _gst_reserved: any[]
1690
+ }
1691
+
1692
+ abstract class NavigationInterface {
1693
+
1694
+ // Own properties of GstInterfaces-0.10.GstInterfaces.NavigationInterface
1695
+
1696
+ static name: string
1697
+ }
1698
+
1699
+ interface PropertyProbeInterface {
1700
+
1701
+ // Own fields of GstInterfaces-0.10.GstInterfaces.PropertyProbeInterface
1702
+
1703
+ klass: GObject.TypeInterface
1704
+ probe_needed: (probe: PropertyProbe, pspec: GObject.ParamSpec) => void
1705
+ get_properties: (probe: PropertyProbe) => any[]
1706
+ needs_probe: (probe: PropertyProbe, prop_id: number, pspec: GObject.ParamSpec) => boolean
1707
+ probe_property: (probe: PropertyProbe, prop_id: number, pspec: GObject.ParamSpec) => void
1708
+ get_values: (probe: PropertyProbe, prop_id: number, pspec: GObject.ParamSpec) => GObject.ValueArray
1709
+ _gst_reserved: any[]
1710
+ }
1711
+
1712
+ /**
1713
+ * #GstPropertyProbe interface.
1714
+ * @record
1715
+ */
1716
+ abstract class PropertyProbeInterface {
1717
+
1718
+ // Own properties of GstInterfaces-0.10.GstInterfaces.PropertyProbeInterface
1719
+
1720
+ static name: string
1721
+ }
1722
+
1723
+ interface StreamVolumeInterface {
1724
+
1725
+ // Own fields of GstInterfaces-0.10.GstInterfaces.StreamVolumeInterface
1726
+
1727
+ parent: GObject.TypeInterface
1728
+ _gst_reserved: any[]
1729
+ }
1730
+
1731
+ abstract class StreamVolumeInterface {
1732
+
1733
+ // Own properties of GstInterfaces-0.10.GstInterfaces.StreamVolumeInterface
1734
+
1735
+ static name: string
1736
+ }
1737
+
1738
+ interface TunerChannelClass {
1739
+
1740
+ // Own fields of GstInterfaces-0.10.GstInterfaces.TunerChannelClass
1741
+
1742
+ parent: GObject.ObjectClass
1743
+ frequency_changed: (channel: TunerChannel, frequency: number) => void
1744
+ signal_changed: (channel: TunerChannel, signal: number) => void
1745
+ _gst_reserved: any[]
1746
+ }
1747
+
1748
+ abstract class TunerChannelClass {
1749
+
1750
+ // Own properties of GstInterfaces-0.10.GstInterfaces.TunerChannelClass
1751
+
1752
+ static name: string
1753
+ }
1754
+
1755
+ interface TunerClass {
1756
+
1757
+ // Own fields of GstInterfaces-0.10.GstInterfaces.TunerClass
1758
+
1759
+ klass: GObject.TypeInterface
1760
+ list_channels: (tuner: Tuner) => any[]
1761
+ set_channel: (tuner: Tuner, channel: TunerChannel) => void
1762
+ list_norms: (tuner: Tuner) => any[]
1763
+ set_norm: (tuner: Tuner, norm: TunerNorm) => void
1764
+ set_frequency: (tuner: Tuner, channel: TunerChannel, frequency: number) => void
1765
+ get_frequency: (tuner: Tuner, channel: TunerChannel) => number
1766
+ signal_strength: (tuner: Tuner, channel: TunerChannel) => number
1767
+ channel_changed: (tuner: Tuner, channel: TunerChannel) => void
1768
+ norm_changed: (tuner: Tuner, norm: TunerNorm) => void
1769
+ frequency_changed: (tuner: Tuner, channel: TunerChannel, frequency: number) => void
1770
+ signal_changed: (tuner: Tuner, channel: TunerChannel, signal: number) => void
1771
+ _gst_reserved: any[]
1772
+ }
1773
+
1774
+ class TunerClass {
1775
+
1776
+ // Own properties of GstInterfaces-0.10.GstInterfaces.TunerClass
1777
+
1778
+ static name: string
1779
+ }
1780
+
1781
+ interface TunerNormClass {
1782
+
1783
+ // Own fields of GstInterfaces-0.10.GstInterfaces.TunerNormClass
1784
+
1785
+ parent: GObject.ObjectClass
1786
+ _gst_reserved: any[]
1787
+ }
1788
+
1789
+ abstract class TunerNormClass {
1790
+
1791
+ // Own properties of GstInterfaces-0.10.GstInterfaces.TunerNormClass
1792
+
1793
+ static name: string
1794
+ }
1795
+
1796
+ interface VideoOrientationInterface {
1797
+
1798
+ // Own fields of GstInterfaces-0.10.GstInterfaces.VideoOrientationInterface
1799
+
1800
+ parent: GObject.TypeInterface
1801
+ get_hflip: (video_orientation: VideoOrientation, flip: boolean) => boolean
1802
+ get_vflip: (video_orientation: VideoOrientation, flip: boolean) => boolean
1803
+ get_hcenter: (video_orientation: VideoOrientation, center: number) => boolean
1804
+ get_vcenter: (video_orientation: VideoOrientation, center: number) => boolean
1805
+ set_hflip: (video_orientation: VideoOrientation, flip: boolean) => boolean
1806
+ set_vflip: (video_orientation: VideoOrientation, flip: boolean) => boolean
1807
+ set_hcenter: (video_orientation: VideoOrientation, center: number) => boolean
1808
+ set_vcenter: (video_orientation: VideoOrientation, center: number) => boolean
1809
+ }
1810
+
1811
+ /**
1812
+ * #GstVideoOrientationInterface interface.
1813
+ * @record
1814
+ */
1815
+ abstract class VideoOrientationInterface {
1816
+
1817
+ // Own properties of GstInterfaces-0.10.GstInterfaces.VideoOrientationInterface
1818
+
1819
+ static name: string
1820
+ }
1821
+
1822
+ interface XOverlayClass {
1823
+
1824
+ // Own fields of GstInterfaces-0.10.GstInterfaces.XOverlayClass
1825
+
1826
+ klass: GObject.TypeInterface
1827
+ set_xwindow_id: (overlay: XOverlay, xwindow_id: number) => void
1828
+ expose: (overlay: XOverlay) => void
1829
+ handle_events: (overlay: XOverlay, handle_events: boolean) => void
1830
+ set_render_rectangle: (overlay: XOverlay, x: number, y: number, width: number, height: number) => void
1831
+ _gst_reserved: any[]
1832
+ }
1833
+
1834
+ /**
1835
+ * #GstXOverlay interface
1836
+ * @record
1837
+ */
1838
+ class XOverlayClass {
1839
+
1840
+ // Own properties of GstInterfaces-0.10.GstInterfaces.XOverlayClass
1841
+
1842
+ static name: string
1843
+ }
1844
+
1845
+ /**
1846
+ * Name of the imported GIR library
1847
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
1848
+ */
1849
+ const __name__: string
1850
+ /**
1851
+ * Version of the imported GIR library
1852
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
1853
+ */
1854
+ const __version__: string
1855
+ }
1856
+
1857
+ export default GstInterfaces;
1858
+ // END