@girs/gstvideo-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.
package/README.md ADDED
@@ -0,0 +1,31 @@
1
+
2
+ # GstVideo-0.10
3
+
4
+ GJS TypeScript type definitions for GstVideo-0.10, generated from library version 0.10.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gjs) v3.0.0-beta.12.
5
+
6
+ ## Install
7
+
8
+ To use this type definitions, install them with NPM like this:
9
+ ```bash
10
+ npm install @girs/gstvideo-0.10
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ You can import this package into your project like this:
16
+ ```ts
17
+ import GstVideo from '@girs/gstvideo-0.10';
18
+ ```
19
+
20
+ Or if you prefer CommonJS, you can also use this:
21
+ ```ts
22
+ const GstVideo = require('@girs/gstvideo-0.10');
23
+ ```
24
+
25
+ If you use [ambient modules](https://github.com/gjsify/ts-for-gir/tree/main/packages/cli#ambient-modules), you can also import this module like you would do this in JavaScript:
26
+
27
+ ```ts
28
+ import GstVideo from 'gi://GstVideo?version=0.10';
29
+ ```
30
+
31
+ Depending on your project configuration, it is recommended to use a bundler like [esbuild](https://esbuild.github.io/). You can find examples using different bundlers [here](https://github.com/gjsify/ts-for-gir/tree/main/examples).
@@ -0,0 +1,9 @@
1
+
2
+
3
+ imports.gi.versions.GstVideo = '0.10'
4
+ const GstVideo = imports.gi.GstVideo;
5
+
6
+ module.exports = GstVideo;
7
+
8
+
9
+
@@ -0,0 +1,313 @@
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
+ * GstVideo-0.10
10
+ */
11
+
12
+ import type libxml2 from '@girs/libxml2-2.0';
13
+ import type GstBase from '@girs/gstbase-0.10';
14
+ import type Gst from '@girs/gst-0.10';
15
+ import type GObject from '@girs/gobject-2.0';
16
+ import type GLib from '@girs/glib-2.0';
17
+ import type GModule from '@girs/gmodule-2.0';
18
+
19
+ /**
20
+ * Enum value describing the most common video formats.
21
+ */
22
+ export enum Format {
23
+ UNKNOWN,
24
+ I420,
25
+ YV12,
26
+ YUY2,
27
+ UYVY,
28
+ AYUV,
29
+ RGBX,
30
+ BGRX,
31
+ XRGB,
32
+ XBGR,
33
+ RGBA,
34
+ BGRA,
35
+ ARGB,
36
+ ABGR,
37
+ RGB,
38
+ BGR,
39
+ Y41B,
40
+ Y42B,
41
+ YVYU,
42
+ Y444,
43
+ V210,
44
+ V216,
45
+ NV12,
46
+ NV21,
47
+ }
48
+ export const BLUE_MASK_15: string
49
+ export const BLUE_MASK_15_INT: number
50
+ export const BLUE_MASK_16: string
51
+ export const BLUE_MASK_16_INT: number
52
+ export const BYTE1_MASK_24: string
53
+ export const BYTE1_MASK_24_INT: number
54
+ export const BYTE1_MASK_32: string
55
+ export const BYTE1_MASK_32_INT: number
56
+ export const BYTE2_MASK_24: string
57
+ export const BYTE2_MASK_24_INT: number
58
+ export const BYTE2_MASK_32: string
59
+ export const BYTE2_MASK_32_INT: number
60
+ export const BYTE3_MASK_24: string
61
+ export const BYTE3_MASK_24_INT: number
62
+ export const BYTE3_MASK_32: string
63
+ export const BYTE3_MASK_32_INT: number
64
+ export const BYTE4_MASK_32: string
65
+ export const BYTE4_MASK_32_INT: number
66
+ export const CAPS_RGB_15: string
67
+ export const CAPS_RGB_16: string
68
+ export const FPS_RANGE: string
69
+ export const GREEN_MASK_15: string
70
+ export const GREEN_MASK_15_INT: number
71
+ export const GREEN_MASK_16: string
72
+ export const GREEN_MASK_16_INT: number
73
+ export const RED_MASK_15: string
74
+ export const RED_MASK_15_INT: number
75
+ export const RED_MASK_16: string
76
+ export const RED_MASK_16_INT: number
77
+ export const SIZE_RANGE: string
78
+ export function calculate_display_ratio(video_width: number, video_height: number, video_par_n: number, video_par_d: number, display_par_n: number, display_par_d: number): [ /* returnType */ boolean, /* dar_n */ number, /* dar_d */ number ]
79
+ export function event_new_still_frame(in_still: boolean): Gst.Event
80
+ export function event_parse_still_frame(event: Gst.Event): [ /* returnType */ boolean, /* in_still */ boolean ]
81
+ export function format_convert(format: Format, width: number, height: number, fps_n: number, fps_d: number, src_format: Gst.Format, src_value: number, dest_format: Gst.Format): [ /* returnType */ boolean, /* dest_value */ number ]
82
+ export function format_from_fourcc(fourcc: number): Format
83
+ export function format_get_component_height(format: Format, component: number, height: number): number
84
+ export function format_get_component_offset(format: Format, component: number, width: number, height: number): number
85
+ export function format_get_component_width(format: Format, component: number, width: number): number
86
+ export function format_get_pixel_stride(format: Format, component: number): number
87
+ export function format_get_row_stride(format: Format, component: number, width: number): number
88
+ export function format_get_size(format: Format, width: number, height: number): number
89
+ export function format_has_alpha(format: Format): boolean
90
+ export function format_is_rgb(format: Format): boolean
91
+ export function format_is_yuv(format: Format): boolean
92
+ export function format_new_caps(format: Format, width: number, height: number, framerate_n: number, framerate_d: number, par_n: number, par_d: number): Gst.Caps
93
+ export function format_new_caps_interlaced(format: Format, width: number, height: number, framerate_n: number, framerate_d: number, par_n: number, par_d: number, interlaced: boolean): Gst.Caps
94
+ export function format_parse_caps(caps: Gst.Caps, format: Format): [ /* returnType */ boolean, /* width */ number, /* height */ number ]
95
+ export function format_parse_caps_interlaced(caps: Gst.Caps): [ /* returnType */ boolean, /* interlaced */ boolean ]
96
+ export function format_to_fourcc(format: Format): number
97
+ export function frame_rate(pad: Gst.Pad): any
98
+ export function get_size(pad: Gst.Pad): [ /* returnType */ boolean, /* width */ number, /* height */ number ]
99
+ export function parse_caps_chroma_site(caps: Gst.Caps): string | null
100
+ export function parse_caps_color_matrix(caps: Gst.Caps): string | null
101
+ export function parse_caps_framerate(caps: Gst.Caps): [ /* returnType */ boolean, /* fps_n */ number, /* fps_d */ number ]
102
+ export function parse_caps_pixel_aspect_ratio(caps: Gst.Caps): [ /* returnType */ boolean, /* par_n */ number, /* par_d */ number ]
103
+ export module Filter {
104
+
105
+ // Constructor properties interface
106
+
107
+ export interface ConstructorProperties extends GstBase.Transform.ConstructorProperties {
108
+ }
109
+
110
+ }
111
+
112
+ export interface Filter {
113
+
114
+ // Conflicting properties
115
+
116
+ object: any
117
+
118
+ // Own fields of GstVideo-0.10.GstVideo.Filter
119
+
120
+ element: any
121
+ inited: boolean
122
+
123
+ // Class property signals of GstVideo-0.10.GstVideo.Filter
124
+
125
+ connect(sigName: "notify::qos", callback: (($obj: Filter, pspec: GObject.ParamSpec) => void)): number
126
+ connect_after(sigName: "notify::qos", callback: (($obj: Filter, pspec: GObject.ParamSpec) => void)): number
127
+ emit(sigName: "notify::qos", ...args: any[]): void
128
+ connect(sigName: string, callback: (...args: any[]) => void): number
129
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
130
+ emit(sigName: string, ...args: any[]): void
131
+ disconnect(id: number): void
132
+ }
133
+
134
+ export class Filter extends GstBase.Transform {
135
+
136
+ // Own properties of GstVideo-0.10.GstVideo.Filter
137
+
138
+ static name: string
139
+ static $gtype: GObject.GType<Filter>
140
+
141
+ // Constructors of GstVideo-0.10.GstVideo.Filter
142
+
143
+ constructor(config?: Filter.ConstructorProperties)
144
+ _init(config?: Filter.ConstructorProperties): void
145
+ }
146
+
147
+ export module Sink {
148
+
149
+ // Constructor properties interface
150
+
151
+ export interface ConstructorProperties extends GstBase.Sink.ConstructorProperties {
152
+
153
+ // Own constructor properties of GstVideo-0.10.GstVideo.Sink
154
+
155
+ show_preroll_frame?: boolean | null
156
+ }
157
+
158
+ }
159
+
160
+ export interface Sink {
161
+
162
+ // Own properties of GstVideo-0.10.GstVideo.Sink
163
+
164
+ show_preroll_frame: boolean
165
+
166
+ // Conflicting properties
167
+
168
+ object: any
169
+
170
+ // Own fields of GstVideo-0.10.GstVideo.Sink
171
+
172
+ element: any
173
+ width: number
174
+ height: number
175
+ priv: any
176
+ _gst_reserved: any
177
+
178
+ // Own virtual methods of GstVideo-0.10.GstVideo.Sink
179
+
180
+ vfunc_show_frame(buf: Gst.Buffer): Gst.FlowReturn
181
+
182
+ // Class property signals of GstVideo-0.10.GstVideo.Sink
183
+
184
+ connect(sigName: "notify::show-preroll-frame", callback: (($obj: Sink, pspec: GObject.ParamSpec) => void)): number
185
+ connect_after(sigName: "notify::show-preroll-frame", callback: (($obj: Sink, pspec: GObject.ParamSpec) => void)): number
186
+ emit(sigName: "notify::show-preroll-frame", ...args: any[]): void
187
+ connect(sigName: "notify::async", callback: (($obj: Sink, pspec: GObject.ParamSpec) => void)): number
188
+ connect_after(sigName: "notify::async", callback: (($obj: Sink, pspec: GObject.ParamSpec) => void)): number
189
+ emit(sigName: "notify::async", ...args: any[]): void
190
+ connect(sigName: "notify::blocksize", callback: (($obj: Sink, pspec: GObject.ParamSpec) => void)): number
191
+ connect_after(sigName: "notify::blocksize", callback: (($obj: Sink, pspec: GObject.ParamSpec) => void)): number
192
+ emit(sigName: "notify::blocksize", ...args: any[]): void
193
+ connect(sigName: "notify::enable-last-buffer", callback: (($obj: Sink, pspec: GObject.ParamSpec) => void)): number
194
+ connect_after(sigName: "notify::enable-last-buffer", callback: (($obj: Sink, pspec: GObject.ParamSpec) => void)): number
195
+ emit(sigName: "notify::enable-last-buffer", ...args: any[]): void
196
+ connect(sigName: "notify::last-buffer", callback: (($obj: Sink, pspec: GObject.ParamSpec) => void)): number
197
+ connect_after(sigName: "notify::last-buffer", callback: (($obj: Sink, pspec: GObject.ParamSpec) => void)): number
198
+ emit(sigName: "notify::last-buffer", ...args: any[]): void
199
+ connect(sigName: "notify::max-lateness", callback: (($obj: Sink, pspec: GObject.ParamSpec) => void)): number
200
+ connect_after(sigName: "notify::max-lateness", callback: (($obj: Sink, pspec: GObject.ParamSpec) => void)): number
201
+ emit(sigName: "notify::max-lateness", ...args: any[]): void
202
+ connect(sigName: "notify::preroll-queue-len", callback: (($obj: Sink, pspec: GObject.ParamSpec) => void)): number
203
+ connect_after(sigName: "notify::preroll-queue-len", callback: (($obj: Sink, pspec: GObject.ParamSpec) => void)): number
204
+ emit(sigName: "notify::preroll-queue-len", ...args: any[]): void
205
+ connect(sigName: "notify::qos", callback: (($obj: Sink, pspec: GObject.ParamSpec) => void)): number
206
+ connect_after(sigName: "notify::qos", callback: (($obj: Sink, pspec: GObject.ParamSpec) => void)): number
207
+ emit(sigName: "notify::qos", ...args: any[]): void
208
+ connect(sigName: "notify::render-delay", callback: (($obj: Sink, pspec: GObject.ParamSpec) => void)): number
209
+ connect_after(sigName: "notify::render-delay", callback: (($obj: Sink, pspec: GObject.ParamSpec) => void)): number
210
+ emit(sigName: "notify::render-delay", ...args: any[]): void
211
+ connect(sigName: "notify::ts-offset", callback: (($obj: Sink, pspec: GObject.ParamSpec) => void)): number
212
+ connect_after(sigName: "notify::ts-offset", callback: (($obj: Sink, pspec: GObject.ParamSpec) => void)): number
213
+ emit(sigName: "notify::ts-offset", ...args: any[]): void
214
+ connect(sigName: string, callback: (...args: any[]) => void): number
215
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
216
+ emit(sigName: string, ...args: any[]): void
217
+ disconnect(id: number): void
218
+ }
219
+
220
+ /**
221
+ * The video sink instance structure. Derived video sinks should set the
222
+ * @class
223
+ */
224
+ export class Sink extends GstBase.Sink {
225
+
226
+ // Own properties of GstVideo-0.10.GstVideo.Sink
227
+
228
+ static name: string
229
+ static $gtype: GObject.GType<Sink>
230
+
231
+ // Constructors of GstVideo-0.10.GstVideo.Sink
232
+
233
+ constructor(config?: Sink.ConstructorProperties)
234
+ _init(config?: Sink.ConstructorProperties): void
235
+ static center_rect(src: Rectangle, dst: Rectangle, result: Rectangle, scaling: boolean): void
236
+ }
237
+
238
+ export interface FilterClass {
239
+
240
+ // Own fields of GstVideo-0.10.GstVideo.FilterClass
241
+
242
+ parent_class: GstBase.TransformClass
243
+ }
244
+
245
+ export abstract class FilterClass {
246
+
247
+ // Own properties of GstVideo-0.10.GstVideo.FilterClass
248
+
249
+ static name: string
250
+ }
251
+
252
+ export interface Rectangle {
253
+
254
+ // Own fields of GstVideo-0.10.GstVideo.Rectangle
255
+
256
+ x: number
257
+ y: number
258
+ w: number
259
+ h: number
260
+ }
261
+
262
+ /**
263
+ * Helper structure representing a rectangular area.
264
+ * @record
265
+ */
266
+ export class Rectangle {
267
+
268
+ // Own properties of GstVideo-0.10.GstVideo.Rectangle
269
+
270
+ static name: string
271
+ }
272
+
273
+ export interface SinkClass {
274
+
275
+ // Own fields of GstVideo-0.10.GstVideo.SinkClass
276
+
277
+ parent_class: GstBase.SinkClass
278
+ show_frame: (video_sink: Sink, buf: Gst.Buffer) => Gst.FlowReturn
279
+ _gst_reserved: any[]
280
+ }
281
+
282
+ /**
283
+ * The video sink class structure. Derived classes should override the
284
+ * @record
285
+ */
286
+ export abstract class SinkClass {
287
+
288
+ // Own properties of GstVideo-0.10.GstVideo.SinkClass
289
+
290
+ static name: string
291
+ }
292
+
293
+ export interface SinkPrivate {
294
+ }
295
+
296
+ export class SinkPrivate {
297
+
298
+ // Own properties of GstVideo-0.10.GstVideo.SinkPrivate
299
+
300
+ static name: string
301
+ }
302
+
303
+ /**
304
+ * Name of the imported GIR library
305
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
306
+ */
307
+ export const __name__: string
308
+ /**
309
+ * Version of the imported GIR library
310
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
311
+ */
312
+ export const __version__: string
313
+ // END
@@ -0,0 +1,318 @@
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
+ * GstVideo-0.10
10
+ */
11
+
12
+ import type libxml2 from '@girs/libxml2-2.0';
13
+ import type GstBase from '@girs/gstbase-0.10';
14
+ import type Gst from '@girs/gst-0.10';
15
+ import type GObject from '@girs/gobject-2.0';
16
+ import type GLib from '@girs/glib-2.0';
17
+ import type GModule from '@girs/gmodule-2.0';
18
+
19
+ export namespace GstVideo {
20
+
21
+ /**
22
+ * Enum value describing the most common video formats.
23
+ */
24
+ enum Format {
25
+ UNKNOWN,
26
+ I420,
27
+ YV12,
28
+ YUY2,
29
+ UYVY,
30
+ AYUV,
31
+ RGBX,
32
+ BGRX,
33
+ XRGB,
34
+ XBGR,
35
+ RGBA,
36
+ BGRA,
37
+ ARGB,
38
+ ABGR,
39
+ RGB,
40
+ BGR,
41
+ Y41B,
42
+ Y42B,
43
+ YVYU,
44
+ Y444,
45
+ V210,
46
+ V216,
47
+ NV12,
48
+ NV21,
49
+ }
50
+ const BLUE_MASK_15: string
51
+ const BLUE_MASK_15_INT: number
52
+ const BLUE_MASK_16: string
53
+ const BLUE_MASK_16_INT: number
54
+ const BYTE1_MASK_24: string
55
+ const BYTE1_MASK_24_INT: number
56
+ const BYTE1_MASK_32: string
57
+ const BYTE1_MASK_32_INT: number
58
+ const BYTE2_MASK_24: string
59
+ const BYTE2_MASK_24_INT: number
60
+ const BYTE2_MASK_32: string
61
+ const BYTE2_MASK_32_INT: number
62
+ const BYTE3_MASK_24: string
63
+ const BYTE3_MASK_24_INT: number
64
+ const BYTE3_MASK_32: string
65
+ const BYTE3_MASK_32_INT: number
66
+ const BYTE4_MASK_32: string
67
+ const BYTE4_MASK_32_INT: number
68
+ const CAPS_RGB_15: string
69
+ const CAPS_RGB_16: string
70
+ const FPS_RANGE: string
71
+ const GREEN_MASK_15: string
72
+ const GREEN_MASK_15_INT: number
73
+ const GREEN_MASK_16: string
74
+ const GREEN_MASK_16_INT: number
75
+ const RED_MASK_15: string
76
+ const RED_MASK_15_INT: number
77
+ const RED_MASK_16: string
78
+ const RED_MASK_16_INT: number
79
+ const SIZE_RANGE: string
80
+ function calculate_display_ratio(video_width: number, video_height: number, video_par_n: number, video_par_d: number, display_par_n: number, display_par_d: number): [ /* returnType */ boolean, /* dar_n */ number, /* dar_d */ number ]
81
+ function event_new_still_frame(in_still: boolean): Gst.Event
82
+ function event_parse_still_frame(event: Gst.Event): [ /* returnType */ boolean, /* in_still */ boolean ]
83
+ function format_convert(format: Format, width: number, height: number, fps_n: number, fps_d: number, src_format: Gst.Format, src_value: number, dest_format: Gst.Format): [ /* returnType */ boolean, /* dest_value */ number ]
84
+ function format_from_fourcc(fourcc: number): Format
85
+ function format_get_component_height(format: Format, component: number, height: number): number
86
+ function format_get_component_offset(format: Format, component: number, width: number, height: number): number
87
+ function format_get_component_width(format: Format, component: number, width: number): number
88
+ function format_get_pixel_stride(format: Format, component: number): number
89
+ function format_get_row_stride(format: Format, component: number, width: number): number
90
+ function format_get_size(format: Format, width: number, height: number): number
91
+ function format_has_alpha(format: Format): boolean
92
+ function format_is_rgb(format: Format): boolean
93
+ function format_is_yuv(format: Format): boolean
94
+ function format_new_caps(format: Format, width: number, height: number, framerate_n: number, framerate_d: number, par_n: number, par_d: number): Gst.Caps
95
+ function format_new_caps_interlaced(format: Format, width: number, height: number, framerate_n: number, framerate_d: number, par_n: number, par_d: number, interlaced: boolean): Gst.Caps
96
+ function format_parse_caps(caps: Gst.Caps, format: Format): [ /* returnType */ boolean, /* width */ number, /* height */ number ]
97
+ function format_parse_caps_interlaced(caps: Gst.Caps): [ /* returnType */ boolean, /* interlaced */ boolean ]
98
+ function format_to_fourcc(format: Format): number
99
+ function frame_rate(pad: Gst.Pad): any
100
+ function get_size(pad: Gst.Pad): [ /* returnType */ boolean, /* width */ number, /* height */ number ]
101
+ function parse_caps_chroma_site(caps: Gst.Caps): string | null
102
+ function parse_caps_color_matrix(caps: Gst.Caps): string | null
103
+ function parse_caps_framerate(caps: Gst.Caps): [ /* returnType */ boolean, /* fps_n */ number, /* fps_d */ number ]
104
+ function parse_caps_pixel_aspect_ratio(caps: Gst.Caps): [ /* returnType */ boolean, /* par_n */ number, /* par_d */ number ]
105
+ module Filter {
106
+
107
+ // Constructor properties interface
108
+
109
+ interface ConstructorProperties extends GstBase.Transform.ConstructorProperties {
110
+ }
111
+
112
+ }
113
+
114
+ interface Filter {
115
+
116
+ // Conflicting properties
117
+
118
+ object: any
119
+
120
+ // Own fields of GstVideo-0.10.GstVideo.Filter
121
+
122
+ element: any
123
+ inited: boolean
124
+
125
+ // Class property signals of GstVideo-0.10.GstVideo.Filter
126
+
127
+ connect(sigName: "notify::qos", callback: (($obj: Filter, pspec: GObject.ParamSpec) => void)): number
128
+ connect_after(sigName: "notify::qos", callback: (($obj: Filter, pspec: GObject.ParamSpec) => void)): number
129
+ emit(sigName: "notify::qos", ...args: any[]): void
130
+ connect(sigName: string, callback: (...args: any[]) => void): number
131
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
132
+ emit(sigName: string, ...args: any[]): void
133
+ disconnect(id: number): void
134
+ }
135
+
136
+ class Filter extends GstBase.Transform {
137
+
138
+ // Own properties of GstVideo-0.10.GstVideo.Filter
139
+
140
+ static name: string
141
+ static $gtype: GObject.GType<Filter>
142
+
143
+ // Constructors of GstVideo-0.10.GstVideo.Filter
144
+
145
+ constructor(config?: Filter.ConstructorProperties)
146
+ _init(config?: Filter.ConstructorProperties): void
147
+ }
148
+
149
+ module Sink {
150
+
151
+ // Constructor properties interface
152
+
153
+ interface ConstructorProperties extends GstBase.Sink.ConstructorProperties {
154
+
155
+ // Own constructor properties of GstVideo-0.10.GstVideo.Sink
156
+
157
+ show_preroll_frame?: boolean | null
158
+ }
159
+
160
+ }
161
+
162
+ interface Sink {
163
+
164
+ // Own properties of GstVideo-0.10.GstVideo.Sink
165
+
166
+ show_preroll_frame: boolean
167
+
168
+ // Conflicting properties
169
+
170
+ object: any
171
+
172
+ // Own fields of GstVideo-0.10.GstVideo.Sink
173
+
174
+ element: any
175
+ width: number
176
+ height: number
177
+ priv: any
178
+ _gst_reserved: any
179
+
180
+ // Own virtual methods of GstVideo-0.10.GstVideo.Sink
181
+
182
+ vfunc_show_frame(buf: Gst.Buffer): Gst.FlowReturn
183
+
184
+ // Class property signals of GstVideo-0.10.GstVideo.Sink
185
+
186
+ connect(sigName: "notify::show-preroll-frame", callback: (($obj: Sink, pspec: GObject.ParamSpec) => void)): number
187
+ connect_after(sigName: "notify::show-preroll-frame", callback: (($obj: Sink, pspec: GObject.ParamSpec) => void)): number
188
+ emit(sigName: "notify::show-preroll-frame", ...args: any[]): void
189
+ connect(sigName: "notify::async", callback: (($obj: Sink, pspec: GObject.ParamSpec) => void)): number
190
+ connect_after(sigName: "notify::async", callback: (($obj: Sink, pspec: GObject.ParamSpec) => void)): number
191
+ emit(sigName: "notify::async", ...args: any[]): void
192
+ connect(sigName: "notify::blocksize", callback: (($obj: Sink, pspec: GObject.ParamSpec) => void)): number
193
+ connect_after(sigName: "notify::blocksize", callback: (($obj: Sink, pspec: GObject.ParamSpec) => void)): number
194
+ emit(sigName: "notify::blocksize", ...args: any[]): void
195
+ connect(sigName: "notify::enable-last-buffer", callback: (($obj: Sink, pspec: GObject.ParamSpec) => void)): number
196
+ connect_after(sigName: "notify::enable-last-buffer", callback: (($obj: Sink, pspec: GObject.ParamSpec) => void)): number
197
+ emit(sigName: "notify::enable-last-buffer", ...args: any[]): void
198
+ connect(sigName: "notify::last-buffer", callback: (($obj: Sink, pspec: GObject.ParamSpec) => void)): number
199
+ connect_after(sigName: "notify::last-buffer", callback: (($obj: Sink, pspec: GObject.ParamSpec) => void)): number
200
+ emit(sigName: "notify::last-buffer", ...args: any[]): void
201
+ connect(sigName: "notify::max-lateness", callback: (($obj: Sink, pspec: GObject.ParamSpec) => void)): number
202
+ connect_after(sigName: "notify::max-lateness", callback: (($obj: Sink, pspec: GObject.ParamSpec) => void)): number
203
+ emit(sigName: "notify::max-lateness", ...args: any[]): void
204
+ connect(sigName: "notify::preroll-queue-len", callback: (($obj: Sink, pspec: GObject.ParamSpec) => void)): number
205
+ connect_after(sigName: "notify::preroll-queue-len", callback: (($obj: Sink, pspec: GObject.ParamSpec) => void)): number
206
+ emit(sigName: "notify::preroll-queue-len", ...args: any[]): void
207
+ connect(sigName: "notify::qos", callback: (($obj: Sink, pspec: GObject.ParamSpec) => void)): number
208
+ connect_after(sigName: "notify::qos", callback: (($obj: Sink, pspec: GObject.ParamSpec) => void)): number
209
+ emit(sigName: "notify::qos", ...args: any[]): void
210
+ connect(sigName: "notify::render-delay", callback: (($obj: Sink, pspec: GObject.ParamSpec) => void)): number
211
+ connect_after(sigName: "notify::render-delay", callback: (($obj: Sink, pspec: GObject.ParamSpec) => void)): number
212
+ emit(sigName: "notify::render-delay", ...args: any[]): void
213
+ connect(sigName: "notify::ts-offset", callback: (($obj: Sink, pspec: GObject.ParamSpec) => void)): number
214
+ connect_after(sigName: "notify::ts-offset", callback: (($obj: Sink, pspec: GObject.ParamSpec) => void)): number
215
+ emit(sigName: "notify::ts-offset", ...args: any[]): void
216
+ connect(sigName: string, callback: (...args: any[]) => void): number
217
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
218
+ emit(sigName: string, ...args: any[]): void
219
+ disconnect(id: number): void
220
+ }
221
+
222
+ /**
223
+ * The video sink instance structure. Derived video sinks should set the
224
+ * @class
225
+ */
226
+ class Sink extends GstBase.Sink {
227
+
228
+ // Own properties of GstVideo-0.10.GstVideo.Sink
229
+
230
+ static name: string
231
+ static $gtype: GObject.GType<Sink>
232
+
233
+ // Constructors of GstVideo-0.10.GstVideo.Sink
234
+
235
+ constructor(config?: Sink.ConstructorProperties)
236
+ _init(config?: Sink.ConstructorProperties): void
237
+ static center_rect(src: Rectangle, dst: Rectangle, result: Rectangle, scaling: boolean): void
238
+ }
239
+
240
+ interface FilterClass {
241
+
242
+ // Own fields of GstVideo-0.10.GstVideo.FilterClass
243
+
244
+ parent_class: GstBase.TransformClass
245
+ }
246
+
247
+ abstract class FilterClass {
248
+
249
+ // Own properties of GstVideo-0.10.GstVideo.FilterClass
250
+
251
+ static name: string
252
+ }
253
+
254
+ interface Rectangle {
255
+
256
+ // Own fields of GstVideo-0.10.GstVideo.Rectangle
257
+
258
+ x: number
259
+ y: number
260
+ w: number
261
+ h: number
262
+ }
263
+
264
+ /**
265
+ * Helper structure representing a rectangular area.
266
+ * @record
267
+ */
268
+ class Rectangle {
269
+
270
+ // Own properties of GstVideo-0.10.GstVideo.Rectangle
271
+
272
+ static name: string
273
+ }
274
+
275
+ interface SinkClass {
276
+
277
+ // Own fields of GstVideo-0.10.GstVideo.SinkClass
278
+
279
+ parent_class: GstBase.SinkClass
280
+ show_frame: (video_sink: Sink, buf: Gst.Buffer) => Gst.FlowReturn
281
+ _gst_reserved: any[]
282
+ }
283
+
284
+ /**
285
+ * The video sink class structure. Derived classes should override the
286
+ * @record
287
+ */
288
+ abstract class SinkClass {
289
+
290
+ // Own properties of GstVideo-0.10.GstVideo.SinkClass
291
+
292
+ static name: string
293
+ }
294
+
295
+ interface SinkPrivate {
296
+ }
297
+
298
+ class SinkPrivate {
299
+
300
+ // Own properties of GstVideo-0.10.GstVideo.SinkPrivate
301
+
302
+ static name: string
303
+ }
304
+
305
+ /**
306
+ * Name of the imported GIR library
307
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
308
+ */
309
+ const __name__: string
310
+ /**
311
+ * Version of the imported GIR library
312
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
313
+ */
314
+ const __version__: string
315
+ }
316
+
317
+ export default GstVideo;
318
+ // END
@@ -0,0 +1,8 @@
1
+
2
+
3
+ // @ts-expect-error
4
+ import GstVideo from 'gi://GstVideo?version=0.10';
5
+ export { GstVideo };
6
+ export default GstVideo;
7
+
8
+
package/package.json ADDED
@@ -0,0 +1,57 @@
1
+ {
2
+ "name": "@girs/gstvideo-0.10",
3
+ "version": "0.10.0-3.0.0-beta.12",
4
+ "description": "GJS TypeScript type definitions for GstVideo-0.10, generated from library version 0.10.0",
5
+ "type": "module",
6
+ "module": "gstvideo-0.10.js",
7
+ "main": "gstvideo-0.10.js",
8
+ "typedoc": {
9
+ "entryPoint": "./gstvideo-0.10.d.ts",
10
+ "readmeFile": "./README.md",
11
+ "displayName": "GstVideo-0.10",
12
+ "tsconfig": "./tsconfig.doc.json"
13
+ },
14
+ "exports": {
15
+ ".": {
16
+ "import": {
17
+ "types": "./gstvideo-0.10.d.ts",
18
+ "default": "./gstvideo-0.10.js"
19
+ },
20
+ "require": {
21
+ "types": "./gstvideo-0.10.d.cts",
22
+ "default": "./gstvideo-0.10.cjs"
23
+ }
24
+ }
25
+ },
26
+ "scripts": {
27
+ "test": "yarn test:esm && yarn test:cjs",
28
+ "test:esm": "tsc --noEmit gstvideo-0.10.d.ts",
29
+ "test:cjs": "tsc --noEmit gstvideo-0.10.d.cts"
30
+ },
31
+ "dependencies": {
32
+ "@girs/glib-2.0": "^2.75.1-3.0.0-beta.12",
33
+ "@girs/gmodule-2.0": "^2.0.0-3.0.0-beta.12",
34
+ "@girs/gobject-2.0": "^2.75.1-3.0.0-beta.12",
35
+ "@girs/gst-0.10": "^0.10.29-3.0.0-beta.12",
36
+ "@girs/gstbase-0.10": "^0.10.0-3.0.0-beta.12",
37
+ "@girs/libxml2-2.0": "^2.0.0-3.0.0-beta.12"
38
+ },
39
+ "devDependencies": {
40
+ "typescript": "^*"
41
+ },
42
+ "keywords": [
43
+ "Gir",
44
+ "TypeScript",
45
+ "GstVideo-0.10"
46
+ ],
47
+ "author": "ts-for-gir",
48
+ "license": "Apache-2.0",
49
+ "repository": {
50
+ "type": "git",
51
+ "url": "git+https://github.com/gjsify/ts-for-gir.git"
52
+ },
53
+ "bugs": {
54
+ "url": "https://github.com/gjsify/ts-for-gir/issues"
55
+ },
56
+ "homepage": "https://github.com/gjsify/ts-for-gir#readme"
57
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "compilerOptions": {
3
+ // General settings for code interpretation
4
+ "target": "ESNext",
5
+ "module": "ESNext",
6
+ "experimentalDecorators": true,
7
+ "moduleResolution": "node",
8
+ "noEmit": true,
9
+ "noEmitOnError": false,
10
+ "baseUrl": "./",
11
+ "rootDir": ".",
12
+ // General settings for code generation
13
+ "removeComments": false,
14
+ "inlineSourceMap": false,
15
+ "inlineSources": false,
16
+ "newLine": "LF"
17
+ },
18
+ "include": ["./gstvideo-0.10.d.ts"]
19
+ }