@girs/gsthip-1.0 1.0.0-4.0.0-beta.41
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 +85 -0
- package/gsthip-1.0-ambient.d.ts +9 -0
- package/gsthip-1.0-ambient.js +2 -0
- package/gsthip-1.0-import.d.ts +9 -0
- package/gsthip-1.0-import.js +3 -0
- package/gsthip-1.0.d.ts +767 -0
- package/gsthip-1.0.js +5 -0
- package/index.d.ts +15 -0
- package/index.js +5 -0
- package/package.json +57 -0
- package/tsconfig.json +48 -0
- package/typedoc.json +9 -0
package/README.md
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
|
|
2
|
+
# GstHip-1.0
|
|
3
|
+
|
|
4
|
+

|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
GJS TypeScript type definitions for GstHip-1.0, generated from library version 1.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.41.
|
|
9
|
+
|
|
10
|
+
## Install
|
|
11
|
+
|
|
12
|
+
To use this type definitions, install them with NPM:
|
|
13
|
+
```bash
|
|
14
|
+
npm install @girs/gsthip-1.0
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
You can import this package into your project like this:
|
|
20
|
+
```ts
|
|
21
|
+
import GstHip from '@girs/gsthip-1.0';
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
### Ambient Modules
|
|
25
|
+
|
|
26
|
+
You can also use [ambient modules](https://github.com/gjsify/ts-for-gir/tree/main/packages/cli#ambient-modules) to import this module like you would do this in JavaScript.
|
|
27
|
+
For this you need to include `@girs/gsthip-1.0` or `@girs/gsthip-1.0/ambient` in your `tsconfig` or entry point Typescript file:
|
|
28
|
+
|
|
29
|
+
`index.ts`:
|
|
30
|
+
```ts
|
|
31
|
+
import '@girs/gsthip-1.0'
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
`tsconfig.json`:
|
|
35
|
+
```json
|
|
36
|
+
{
|
|
37
|
+
"compilerOptions": {
|
|
38
|
+
...
|
|
39
|
+
},
|
|
40
|
+
"include": ["@girs/gsthip-1.0"],
|
|
41
|
+
...
|
|
42
|
+
}
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Now you can import the ambient module with TypeScript support:
|
|
46
|
+
|
|
47
|
+
```ts
|
|
48
|
+
import GstHip from 'gi://GstHip?version=1.0';
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### Global import
|
|
52
|
+
|
|
53
|
+
You can also import the module with Typescript support using the global `imports.gi` object of GJS.
|
|
54
|
+
For this you need to include `@girs/gsthip-1.0` or `@girs/gsthip-1.0/import` in your `tsconfig` or entry point Typescript file:
|
|
55
|
+
|
|
56
|
+
`index.ts`:
|
|
57
|
+
```ts
|
|
58
|
+
import '@girs/gsthip-1.0'
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
`tsconfig.json`:
|
|
62
|
+
```json
|
|
63
|
+
{
|
|
64
|
+
"compilerOptions": {
|
|
65
|
+
...
|
|
66
|
+
},
|
|
67
|
+
"include": ["@girs/gsthip-1.0"],
|
|
68
|
+
...
|
|
69
|
+
}
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Now you have also type support for this, too:
|
|
73
|
+
|
|
74
|
+
```ts
|
|
75
|
+
const GstHip = imports.gi.GstHip;
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### Bundle
|
|
79
|
+
|
|
80
|
+
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).
|
|
81
|
+
|
|
82
|
+
## Other packages
|
|
83
|
+
|
|
84
|
+
All existing pre-generated packages can be found on [gjsify/types](https://github.com/gjsify/types).
|
|
85
|
+
|
package/gsthip-1.0.d.ts
ADDED
|
@@ -0,0 +1,767 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type Definitions for Gjs (https://gjs.guide/)
|
|
3
|
+
*
|
|
4
|
+
* These type definitions are automatically generated, do not edit them by hand.
|
|
5
|
+
* If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gir
|
|
6
|
+
*
|
|
7
|
+
* The based EJS template file is used for the generated .d.ts file of each GIR module like Gtk-4.0, GObject-2.0, ...
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
import '@girs/gjs';
|
|
11
|
+
|
|
12
|
+
// Module dependencies
|
|
13
|
+
import type GstVideo from '@girs/gstvideo-1.0';
|
|
14
|
+
import type GstBase from '@girs/gstbase-1.0';
|
|
15
|
+
import type Gst from '@girs/gst-1.0';
|
|
16
|
+
import type GObject from '@girs/gobject-2.0';
|
|
17
|
+
import type GLib from '@girs/glib-2.0';
|
|
18
|
+
import type GModule from '@girs/gmodule-2.0';
|
|
19
|
+
|
|
20
|
+
export namespace GstHip {
|
|
21
|
+
/**
|
|
22
|
+
* GstHip-1.0
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @gir-type Enum
|
|
27
|
+
*/
|
|
28
|
+
export namespace HipVendor {
|
|
29
|
+
export const $gtype: GObject.GType<HipVendor>;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* @gir-type Enum
|
|
34
|
+
* @since 1.28
|
|
35
|
+
*/
|
|
36
|
+
enum HipVendor {
|
|
37
|
+
UNKNOWN,
|
|
38
|
+
AMD,
|
|
39
|
+
NVIDIA,
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
const CAPS_FEATURE_MEMORY_HIP_MEMORY: string;
|
|
43
|
+
const HIP_DEVICE_CONTEXT_TYPE: string;
|
|
44
|
+
const HIP_MEMORY_NAME: string;
|
|
45
|
+
const MAP_HIP: Gst.MapFlags;
|
|
46
|
+
const MAP_READ_HIP: Gst.MapFlags;
|
|
47
|
+
const MAP_WRITE_HIP: Gst.MapFlags;
|
|
48
|
+
/**
|
|
49
|
+
* @param device a {@link GstHip.HipDevice}
|
|
50
|
+
* @returns a new {@link Gst.Context} embedding the `device`
|
|
51
|
+
* @since 1.28
|
|
52
|
+
*/
|
|
53
|
+
function context_new_hip_device(device: HipDevice): Gst.Context;
|
|
54
|
+
/**
|
|
55
|
+
* Perform the steps necessary for retrieving a {@link GstHip.HipDevice} from the
|
|
56
|
+
* surrounding elements or from the application using the {@link Gst.Context} mechanism.
|
|
57
|
+
*
|
|
58
|
+
* If the content of `device` is not `null`, then no {@link Gst.Context} query is
|
|
59
|
+
* necessary for {@link GstHip.HipDevice}.
|
|
60
|
+
* @param element the {@link Gst.Element} running the query
|
|
61
|
+
* @param vendor a {@link GstHip.HipVendor}
|
|
62
|
+
* @param device_id preferred device-id, pass device_id >=0 when the device_id explicitly required. Otherwise, set -1.
|
|
63
|
+
* @param device the resulting {@link GstHip.HipDevice}
|
|
64
|
+
* @returns whether a {@link GstHip.HipDevice} exists in `device`
|
|
65
|
+
* @since 1.28
|
|
66
|
+
*/
|
|
67
|
+
function hip_ensure_element_data(
|
|
68
|
+
element: Gst.Element,
|
|
69
|
+
vendor: HipVendor | null,
|
|
70
|
+
device_id: number,
|
|
71
|
+
device: HipDevice,
|
|
72
|
+
): [boolean, HipDevice];
|
|
73
|
+
/**
|
|
74
|
+
* @param element a {@link Gst.Element}
|
|
75
|
+
* @param query a {@link Gst.Query} of type {@link Gst.QueryType.CONTEXT}
|
|
76
|
+
* @param device a {@link GstHip.HipDevice}
|
|
77
|
+
* @returns Whether the `query` was successfully responded to from the passed `context`.
|
|
78
|
+
* @since 1.28
|
|
79
|
+
*/
|
|
80
|
+
function hip_handle_context_query(element: Gst.Element, query: Gst.Query, device?: HipDevice | null): boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Helper function for implementing {@link Gst.ElementClass}.set_context() in
|
|
83
|
+
* HIP capable elements.
|
|
84
|
+
*
|
|
85
|
+
* Retrieves the {@link GstHip.HipDevice} in `context` and places the result in `device`.
|
|
86
|
+
* @param element a {@link Gst.Element}
|
|
87
|
+
* @param context a {@link Gst.Context}
|
|
88
|
+
* @param vendor a {@link GstHip.HipVendor}
|
|
89
|
+
* @param device_id preferred device-id, pass device_id >=0 when the device_id explicitly required. Otherwise, set -1.
|
|
90
|
+
* @param device location of a {@link GstHip.HipDevice}
|
|
91
|
+
* @returns whether the `device` could be set successfully
|
|
92
|
+
* @since 1.28
|
|
93
|
+
*/
|
|
94
|
+
function hip_handle_set_context(
|
|
95
|
+
element: Gst.Element,
|
|
96
|
+
context: Gst.Context,
|
|
97
|
+
vendor: HipVendor | null,
|
|
98
|
+
device_id: number,
|
|
99
|
+
device: HipDevice,
|
|
100
|
+
): [boolean, HipDevice];
|
|
101
|
+
/**
|
|
102
|
+
* Opens `vendor` specific runtime libraries
|
|
103
|
+
* @param vendor a {@link GstHip.HipVendor}
|
|
104
|
+
* @returns `true` if succeeded
|
|
105
|
+
* @since 1.28
|
|
106
|
+
*/
|
|
107
|
+
function hip_load_library(vendor: HipVendor | null): boolean;
|
|
108
|
+
/**
|
|
109
|
+
* Compiles `source` with given compile options
|
|
110
|
+
* @param device a {@link GstHip.HipDevice}
|
|
111
|
+
* @param source HIP kernel source
|
|
112
|
+
* @param options array of compile option string
|
|
113
|
+
* @param num_options option array size
|
|
114
|
+
* @returns Compiled kernel blob or `null` if failed. *
|
|
115
|
+
* @since 1.28
|
|
116
|
+
*/
|
|
117
|
+
function hip_rtc_compile(device: HipDevice, source: string, options: string, num_options: number): string | null;
|
|
118
|
+
/**
|
|
119
|
+
* Opens `vendor` specific runtime compiler libraries
|
|
120
|
+
* @param vendor a {@link GstHip.HipVendor}
|
|
121
|
+
* @returns `true` if succeeded
|
|
122
|
+
* @since 1.28
|
|
123
|
+
*/
|
|
124
|
+
function hip_rtc_load_library(vendor: HipVendor | null): boolean;
|
|
125
|
+
/**
|
|
126
|
+
* @param mem a {@link Gst.Memory}
|
|
127
|
+
* @returns `true` if `mem` is a {@link GstHip.HipMemory}
|
|
128
|
+
* @since 1.28
|
|
129
|
+
*/
|
|
130
|
+
function is_hip_memory(mem: Gst.Memory): boolean;
|
|
131
|
+
/**
|
|
132
|
+
* @gir-type Flags
|
|
133
|
+
*/
|
|
134
|
+
enum HipMemoryTransfer {
|
|
135
|
+
DOWNLOAD,
|
|
136
|
+
UPLOAD,
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
namespace HipAllocator {
|
|
140
|
+
// Signal signatures
|
|
141
|
+
interface SignalSignatures extends Gst.Allocator.SignalSignatures {
|
|
142
|
+
'notify::name': (pspec: GObject.ParamSpec) => void;
|
|
143
|
+
'notify::parent': (pspec: GObject.ParamSpec) => void;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
// Constructor properties interface
|
|
147
|
+
|
|
148
|
+
interface ConstructorProps extends Gst.Allocator.ConstructorProps {}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Opaque GstHipAllocator struct
|
|
153
|
+
* @gir-type Class
|
|
154
|
+
* @since 1.28
|
|
155
|
+
*/
|
|
156
|
+
class HipAllocator extends Gst.Allocator {
|
|
157
|
+
static $gtype: GObject.GType<HipAllocator>;
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Compile-time signal type information.
|
|
161
|
+
*
|
|
162
|
+
* This instance property is generated only for TypeScript type checking.
|
|
163
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
164
|
+
* @internal
|
|
165
|
+
*/
|
|
166
|
+
$signals: HipAllocator.SignalSignatures;
|
|
167
|
+
|
|
168
|
+
// Fields
|
|
169
|
+
|
|
170
|
+
allocator: Gst.Allocator;
|
|
171
|
+
|
|
172
|
+
// Constructors
|
|
173
|
+
|
|
174
|
+
constructor(properties?: Partial<HipAllocator.ConstructorProps>, ...args: any[]);
|
|
175
|
+
|
|
176
|
+
_init(...args: any[]): void;
|
|
177
|
+
|
|
178
|
+
// Signals
|
|
179
|
+
|
|
180
|
+
/** @signal */
|
|
181
|
+
connect<K extends keyof HipAllocator.SignalSignatures>(
|
|
182
|
+
signal: K,
|
|
183
|
+
callback: GObject.SignalCallback<this, HipAllocator.SignalSignatures[K]>,
|
|
184
|
+
): number;
|
|
185
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
186
|
+
/** @signal */
|
|
187
|
+
connect_after<K extends keyof HipAllocator.SignalSignatures>(
|
|
188
|
+
signal: K,
|
|
189
|
+
callback: GObject.SignalCallback<this, HipAllocator.SignalSignatures[K]>,
|
|
190
|
+
): number;
|
|
191
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
192
|
+
/** @signal */
|
|
193
|
+
emit<K extends keyof HipAllocator.SignalSignatures>(
|
|
194
|
+
signal: K,
|
|
195
|
+
...args: GObject.GjsParameters<HipAllocator.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
196
|
+
): void;
|
|
197
|
+
emit(signal: string, ...args: any[]): void;
|
|
198
|
+
|
|
199
|
+
// Virtual methods
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Controls the active state of `allocator`.
|
|
203
|
+
* @param active the new active state
|
|
204
|
+
* @virtual
|
|
205
|
+
*/
|
|
206
|
+
vfunc_set_active(active: boolean): boolean;
|
|
207
|
+
|
|
208
|
+
// Methods
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* Allocates a new GstHipMemory
|
|
212
|
+
* @param device a {@link GstHip.HipDevice}
|
|
213
|
+
* @param info a {@link GstVideo.VideoInfo}
|
|
214
|
+
* @returns a newly allocated {@link GstHip.HipMemory} or `null` if allocation failed
|
|
215
|
+
*/
|
|
216
|
+
alloc(device: HipDevice, info: GstVideo.VideoInfo): Gst.Memory | null;
|
|
217
|
+
/**
|
|
218
|
+
* @param args
|
|
219
|
+
*/
|
|
220
|
+
// Conflicted with Gst.Allocator.alloc
|
|
221
|
+
alloc(...args: never[]): any;
|
|
222
|
+
/**
|
|
223
|
+
* Controls the active state of `allocator`.
|
|
224
|
+
* @param active the new active state
|
|
225
|
+
* @returns `true` if active state of `allocator` was successfully updated.
|
|
226
|
+
*/
|
|
227
|
+
set_active(active: boolean): boolean;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
namespace HipBufferPool {
|
|
231
|
+
// Signal signatures
|
|
232
|
+
interface SignalSignatures extends Gst.BufferPool.SignalSignatures {
|
|
233
|
+
'notify::name': (pspec: GObject.ParamSpec) => void;
|
|
234
|
+
'notify::parent': (pspec: GObject.ParamSpec) => void;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
// Constructor properties interface
|
|
238
|
+
|
|
239
|
+
interface ConstructorProps extends Gst.BufferPool.ConstructorProps {}
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* Opaque GstHipBufferPool struct
|
|
244
|
+
* @gir-type Class
|
|
245
|
+
* @since 1.28
|
|
246
|
+
*/
|
|
247
|
+
class HipBufferPool extends Gst.BufferPool {
|
|
248
|
+
static $gtype: GObject.GType<HipBufferPool>;
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* Compile-time signal type information.
|
|
252
|
+
*
|
|
253
|
+
* This instance property is generated only for TypeScript type checking.
|
|
254
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
255
|
+
* @internal
|
|
256
|
+
*/
|
|
257
|
+
$signals: HipBufferPool.SignalSignatures;
|
|
258
|
+
|
|
259
|
+
// Fields
|
|
260
|
+
|
|
261
|
+
device: HipDevice;
|
|
262
|
+
|
|
263
|
+
// Constructors
|
|
264
|
+
|
|
265
|
+
constructor(properties?: Partial<HipBufferPool.ConstructorProps>, ...args: any[]);
|
|
266
|
+
|
|
267
|
+
_init(...args: any[]): void;
|
|
268
|
+
|
|
269
|
+
static ['new'](device: HipDevice): HipBufferPool;
|
|
270
|
+
// Conflicted with Gst.BufferPool.new
|
|
271
|
+
|
|
272
|
+
static ['new'](...args: never[]): any;
|
|
273
|
+
|
|
274
|
+
// Signals
|
|
275
|
+
|
|
276
|
+
/** @signal */
|
|
277
|
+
connect<K extends keyof HipBufferPool.SignalSignatures>(
|
|
278
|
+
signal: K,
|
|
279
|
+
callback: GObject.SignalCallback<this, HipBufferPool.SignalSignatures[K]>,
|
|
280
|
+
): number;
|
|
281
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
282
|
+
/** @signal */
|
|
283
|
+
connect_after<K extends keyof HipBufferPool.SignalSignatures>(
|
|
284
|
+
signal: K,
|
|
285
|
+
callback: GObject.SignalCallback<this, HipBufferPool.SignalSignatures[K]>,
|
|
286
|
+
): number;
|
|
287
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
288
|
+
/** @signal */
|
|
289
|
+
emit<K extends keyof HipBufferPool.SignalSignatures>(
|
|
290
|
+
signal: K,
|
|
291
|
+
...args: GObject.GjsParameters<HipBufferPool.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
292
|
+
): void;
|
|
293
|
+
emit(signal: string, ...args: any[]): void;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
namespace HipDevice {
|
|
297
|
+
// Signal signatures
|
|
298
|
+
interface SignalSignatures extends Gst.Object.SignalSignatures {
|
|
299
|
+
'notify::device-id': (pspec: GObject.ParamSpec) => void;
|
|
300
|
+
'notify::texture2d-support': (pspec: GObject.ParamSpec) => void;
|
|
301
|
+
'notify::vendor': (pspec: GObject.ParamSpec) => void;
|
|
302
|
+
'notify::name': (pspec: GObject.ParamSpec) => void;
|
|
303
|
+
'notify::parent': (pspec: GObject.ParamSpec) => void;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
// Constructor properties interface
|
|
307
|
+
|
|
308
|
+
interface ConstructorProps extends Gst.Object.ConstructorProps {
|
|
309
|
+
device_id: number;
|
|
310
|
+
deviceId: number;
|
|
311
|
+
texture2d_support: boolean;
|
|
312
|
+
texture2dSupport: boolean;
|
|
313
|
+
vendor: HipVendor;
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* Opaque GstHipDevice struct
|
|
319
|
+
* @gir-type Class
|
|
320
|
+
* @since 1.28
|
|
321
|
+
*/
|
|
322
|
+
class HipDevice extends Gst.Object {
|
|
323
|
+
static $gtype: GObject.GType<HipDevice>;
|
|
324
|
+
|
|
325
|
+
// Properties
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* @read-only
|
|
329
|
+
*/
|
|
330
|
+
get device_id(): number;
|
|
331
|
+
/**
|
|
332
|
+
* @read-only
|
|
333
|
+
*/
|
|
334
|
+
get deviceId(): number;
|
|
335
|
+
/**
|
|
336
|
+
* @read-only
|
|
337
|
+
*/
|
|
338
|
+
get texture2d_support(): boolean;
|
|
339
|
+
/**
|
|
340
|
+
* @read-only
|
|
341
|
+
*/
|
|
342
|
+
get texture2dSupport(): boolean;
|
|
343
|
+
/**
|
|
344
|
+
* @read-only
|
|
345
|
+
*/
|
|
346
|
+
get vendor(): HipVendor;
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* Compile-time signal type information.
|
|
350
|
+
*
|
|
351
|
+
* This instance property is generated only for TypeScript type checking.
|
|
352
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
353
|
+
* @internal
|
|
354
|
+
*/
|
|
355
|
+
$signals: HipDevice.SignalSignatures;
|
|
356
|
+
|
|
357
|
+
// Fields
|
|
358
|
+
|
|
359
|
+
object: Gst.Object;
|
|
360
|
+
|
|
361
|
+
// Constructors
|
|
362
|
+
|
|
363
|
+
constructor(properties?: Partial<HipDevice.ConstructorProps>, ...args: any[]);
|
|
364
|
+
|
|
365
|
+
_init(...args: any[]): void;
|
|
366
|
+
|
|
367
|
+
static ['new'](vendor: HipVendor, device_id: number): HipDevice;
|
|
368
|
+
|
|
369
|
+
// Signals
|
|
370
|
+
|
|
371
|
+
/** @signal */
|
|
372
|
+
connect<K extends keyof HipDevice.SignalSignatures>(
|
|
373
|
+
signal: K,
|
|
374
|
+
callback: GObject.SignalCallback<this, HipDevice.SignalSignatures[K]>,
|
|
375
|
+
): number;
|
|
376
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
377
|
+
/** @signal */
|
|
378
|
+
connect_after<K extends keyof HipDevice.SignalSignatures>(
|
|
379
|
+
signal: K,
|
|
380
|
+
callback: GObject.SignalCallback<this, HipDevice.SignalSignatures[K]>,
|
|
381
|
+
): number;
|
|
382
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
383
|
+
/** @signal */
|
|
384
|
+
emit<K extends keyof HipDevice.SignalSignatures>(
|
|
385
|
+
signal: K,
|
|
386
|
+
...args: GObject.GjsParameters<HipDevice.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
387
|
+
): void;
|
|
388
|
+
emit(signal: string, ...args: any[]): void;
|
|
389
|
+
|
|
390
|
+
// Methods
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* Gets numeric device identifier of `device`
|
|
394
|
+
* @returns the device identifier
|
|
395
|
+
*/
|
|
396
|
+
get_device_id(): number;
|
|
397
|
+
/**
|
|
398
|
+
* Gets per {@link GstHip.HipDevice} default {@link GstHip.HipStream} owned by `device`
|
|
399
|
+
* @returns a {@link GstHip.HipStream}
|
|
400
|
+
*/
|
|
401
|
+
get_stream(): HipStream;
|
|
402
|
+
/**
|
|
403
|
+
* Gets vendor of `device`
|
|
404
|
+
* @returns {@link GstHip.HipVendor}
|
|
405
|
+
*/
|
|
406
|
+
get_vendor(): HipVendor;
|
|
407
|
+
/**
|
|
408
|
+
* Checks equality of `device1` and `device2`
|
|
409
|
+
* @param device2 a {@link GstHip.HipDevice}
|
|
410
|
+
* @returns `true` if both devices are associated with the same hardware device
|
|
411
|
+
*/
|
|
412
|
+
is_equal(device2: HipDevice): boolean;
|
|
413
|
+
/**
|
|
414
|
+
* Sets `device` to current stack via hipSetDevice
|
|
415
|
+
* @returns `true` if hipSetDevice call succeeded
|
|
416
|
+
*/
|
|
417
|
+
set_current(): boolean;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
namespace HipEventPool {
|
|
421
|
+
// Signal signatures
|
|
422
|
+
interface SignalSignatures extends Gst.Object.SignalSignatures {
|
|
423
|
+
'notify::name': (pspec: GObject.ParamSpec) => void;
|
|
424
|
+
'notify::parent': (pspec: GObject.ParamSpec) => void;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
// Constructor properties interface
|
|
428
|
+
|
|
429
|
+
interface ConstructorProps extends Gst.Object.ConstructorProps {}
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* Opaque GstHipEventPool struct
|
|
434
|
+
* @gir-type Class
|
|
435
|
+
* @since 1.28
|
|
436
|
+
*/
|
|
437
|
+
class HipEventPool extends Gst.Object {
|
|
438
|
+
static $gtype: GObject.GType<HipEventPool>;
|
|
439
|
+
|
|
440
|
+
/**
|
|
441
|
+
* Compile-time signal type information.
|
|
442
|
+
*
|
|
443
|
+
* This instance property is generated only for TypeScript type checking.
|
|
444
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
445
|
+
* @internal
|
|
446
|
+
*/
|
|
447
|
+
$signals: HipEventPool.SignalSignatures;
|
|
448
|
+
|
|
449
|
+
// Constructors
|
|
450
|
+
|
|
451
|
+
constructor(properties?: Partial<HipEventPool.ConstructorProps>, ...args: any[]);
|
|
452
|
+
|
|
453
|
+
_init(...args: any[]): void;
|
|
454
|
+
|
|
455
|
+
static ['new'](vendor: HipVendor, device_id: number): HipEventPool;
|
|
456
|
+
|
|
457
|
+
// Signals
|
|
458
|
+
|
|
459
|
+
/** @signal */
|
|
460
|
+
connect<K extends keyof HipEventPool.SignalSignatures>(
|
|
461
|
+
signal: K,
|
|
462
|
+
callback: GObject.SignalCallback<this, HipEventPool.SignalSignatures[K]>,
|
|
463
|
+
): number;
|
|
464
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
465
|
+
/** @signal */
|
|
466
|
+
connect_after<K extends keyof HipEventPool.SignalSignatures>(
|
|
467
|
+
signal: K,
|
|
468
|
+
callback: GObject.SignalCallback<this, HipEventPool.SignalSignatures[K]>,
|
|
469
|
+
): number;
|
|
470
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
471
|
+
/** @signal */
|
|
472
|
+
emit<K extends keyof HipEventPool.SignalSignatures>(
|
|
473
|
+
signal: K,
|
|
474
|
+
...args: GObject.GjsParameters<HipEventPool.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
475
|
+
): void;
|
|
476
|
+
emit(signal: string, ...args: any[]): void;
|
|
477
|
+
|
|
478
|
+
// Methods
|
|
479
|
+
|
|
480
|
+
/**
|
|
481
|
+
* Acquires {@link GstHip.HipEvent} from `pool`
|
|
482
|
+
* @returns `true` if succeeded
|
|
483
|
+
*/
|
|
484
|
+
acquire(): [boolean, HipEvent | null];
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
namespace HipPoolAllocator {
|
|
488
|
+
// Signal signatures
|
|
489
|
+
interface SignalSignatures extends HipAllocator.SignalSignatures {
|
|
490
|
+
'notify::name': (pspec: GObject.ParamSpec) => void;
|
|
491
|
+
'notify::parent': (pspec: GObject.ParamSpec) => void;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
// Constructor properties interface
|
|
495
|
+
|
|
496
|
+
interface ConstructorProps extends HipAllocator.ConstructorProps {}
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
/**
|
|
500
|
+
* Opaque GstHipPoolAllocator struct
|
|
501
|
+
* @gir-type Class
|
|
502
|
+
* @since 1.28
|
|
503
|
+
*/
|
|
504
|
+
class HipPoolAllocator extends HipAllocator {
|
|
505
|
+
static $gtype: GObject.GType<HipPoolAllocator>;
|
|
506
|
+
|
|
507
|
+
/**
|
|
508
|
+
* Compile-time signal type information.
|
|
509
|
+
*
|
|
510
|
+
* This instance property is generated only for TypeScript type checking.
|
|
511
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
512
|
+
* @internal
|
|
513
|
+
*/
|
|
514
|
+
$signals: HipPoolAllocator.SignalSignatures;
|
|
515
|
+
|
|
516
|
+
// Fields
|
|
517
|
+
|
|
518
|
+
device: HipDevice;
|
|
519
|
+
|
|
520
|
+
// Constructors
|
|
521
|
+
|
|
522
|
+
constructor(properties?: Partial<HipPoolAllocator.ConstructorProps>, ...args: any[]);
|
|
523
|
+
|
|
524
|
+
_init(...args: any[]): void;
|
|
525
|
+
|
|
526
|
+
static ['new'](device: HipDevice, info: GstVideo.VideoInfo): HipPoolAllocator;
|
|
527
|
+
|
|
528
|
+
// Signals
|
|
529
|
+
|
|
530
|
+
/** @signal */
|
|
531
|
+
connect<K extends keyof HipPoolAllocator.SignalSignatures>(
|
|
532
|
+
signal: K,
|
|
533
|
+
callback: GObject.SignalCallback<this, HipPoolAllocator.SignalSignatures[K]>,
|
|
534
|
+
): number;
|
|
535
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
536
|
+
/** @signal */
|
|
537
|
+
connect_after<K extends keyof HipPoolAllocator.SignalSignatures>(
|
|
538
|
+
signal: K,
|
|
539
|
+
callback: GObject.SignalCallback<this, HipPoolAllocator.SignalSignatures[K]>,
|
|
540
|
+
): number;
|
|
541
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
542
|
+
/** @signal */
|
|
543
|
+
emit<K extends keyof HipPoolAllocator.SignalSignatures>(
|
|
544
|
+
signal: K,
|
|
545
|
+
...args: GObject.GjsParameters<HipPoolAllocator.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
546
|
+
): void;
|
|
547
|
+
emit(signal: string, ...args: any[]): void;
|
|
548
|
+
|
|
549
|
+
// Methods
|
|
550
|
+
|
|
551
|
+
/**
|
|
552
|
+
* Acquires a {@link Gst.Memory} from `allocator`. `memory` should point to a memory
|
|
553
|
+
* location that can hold a pointer to the new {@link Gst.Memory}.
|
|
554
|
+
* @returns a {@link Gst.FlowReturn} such as {@link Gst.FlowReturn.FLUSHING} when the allocator is inactive.
|
|
555
|
+
*/
|
|
556
|
+
acquire_memory(): [Gst.FlowReturn, Gst.Memory | null];
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
/**
|
|
560
|
+
* @gir-type Alias
|
|
561
|
+
*/
|
|
562
|
+
type HipAllocatorClass = typeof HipAllocator;
|
|
563
|
+
/**
|
|
564
|
+
* @gir-type Struct
|
|
565
|
+
*/
|
|
566
|
+
abstract class HipAllocatorPrivate {
|
|
567
|
+
static $gtype: GObject.GType<HipAllocatorPrivate>;
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
/**
|
|
571
|
+
* @gir-type Alias
|
|
572
|
+
*/
|
|
573
|
+
type HipBufferPoolClass = typeof HipBufferPool;
|
|
574
|
+
/**
|
|
575
|
+
* @gir-type Struct
|
|
576
|
+
*/
|
|
577
|
+
abstract class HipBufferPoolPrivate {
|
|
578
|
+
static $gtype: GObject.GType<HipBufferPoolPrivate>;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
/**
|
|
582
|
+
* @gir-type Alias
|
|
583
|
+
*/
|
|
584
|
+
type HipDeviceClass = typeof HipDevice;
|
|
585
|
+
/**
|
|
586
|
+
* @gir-type Struct
|
|
587
|
+
*/
|
|
588
|
+
abstract class HipDevicePrivate {
|
|
589
|
+
static $gtype: GObject.GType<HipDevicePrivate>;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
/**
|
|
593
|
+
* @gir-type Struct
|
|
594
|
+
*/
|
|
595
|
+
abstract class HipEvent {
|
|
596
|
+
static $gtype: GObject.GType<HipEvent>;
|
|
597
|
+
|
|
598
|
+
// Methods
|
|
599
|
+
|
|
600
|
+
/**
|
|
601
|
+
* Gets numeric device identifier of `event` object
|
|
602
|
+
* @returns device identifier
|
|
603
|
+
*/
|
|
604
|
+
get_device_id(): number;
|
|
605
|
+
/**
|
|
606
|
+
* Gets device vendor of `event` object
|
|
607
|
+
* @returns {@link GstHip.HipVendor}
|
|
608
|
+
*/
|
|
609
|
+
get_vendor(): HipVendor;
|
|
610
|
+
/**
|
|
611
|
+
* Increments the reference count on `event`
|
|
612
|
+
* @returns a pointer to `event`
|
|
613
|
+
*/
|
|
614
|
+
ref(): HipEvent;
|
|
615
|
+
/**
|
|
616
|
+
* Decrements the reference count on `event`
|
|
617
|
+
*/
|
|
618
|
+
unref(): void;
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
/**
|
|
622
|
+
* @gir-type Alias
|
|
623
|
+
*/
|
|
624
|
+
type HipEventPoolClass = typeof HipEventPool;
|
|
625
|
+
/**
|
|
626
|
+
* @gir-type Struct
|
|
627
|
+
*/
|
|
628
|
+
abstract class HipEventPoolPrivate {
|
|
629
|
+
static $gtype: GObject.GType<HipEventPoolPrivate>;
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
/**
|
|
633
|
+
* @gir-type Struct
|
|
634
|
+
*/
|
|
635
|
+
abstract class HipGraphicsResource {
|
|
636
|
+
static $gtype: GObject.GType<HipGraphicsResource>;
|
|
637
|
+
|
|
638
|
+
// Methods
|
|
639
|
+
|
|
640
|
+
/**
|
|
641
|
+
* Increments the reference count on `resource`
|
|
642
|
+
* @returns a pointer to `resource`
|
|
643
|
+
*/
|
|
644
|
+
ref(): HipGraphicsResource;
|
|
645
|
+
/**
|
|
646
|
+
* Decrements the reference count on `resource`
|
|
647
|
+
*/
|
|
648
|
+
unref(): void;
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
/**
|
|
652
|
+
* Opaque GstHipMemory struct
|
|
653
|
+
* @gir-type Struct
|
|
654
|
+
* @since 1.28
|
|
655
|
+
*/
|
|
656
|
+
class HipMemory {
|
|
657
|
+
static $gtype: GObject.GType<HipMemory>;
|
|
658
|
+
|
|
659
|
+
// Fields
|
|
660
|
+
|
|
661
|
+
device: HipDevice;
|
|
662
|
+
|
|
663
|
+
// Methods
|
|
664
|
+
|
|
665
|
+
/**
|
|
666
|
+
* Gets HIP stream object associated with `mem`
|
|
667
|
+
* @returns a {@link GstHip.HipStream} or `null` if default HIP stream is in use
|
|
668
|
+
*/
|
|
669
|
+
get_stream(): HipStream | null;
|
|
670
|
+
/**
|
|
671
|
+
* Creates hipTextureObject_t with given parameters
|
|
672
|
+
* @param plane the plane index
|
|
673
|
+
* @param filter_mode filter mode
|
|
674
|
+
* @param address_mode address mode
|
|
675
|
+
* @returns `true` if succeeded
|
|
676
|
+
*/
|
|
677
|
+
get_texture(plane: number, filter_mode: number, address_mode: number): [boolean, any];
|
|
678
|
+
/**
|
|
679
|
+
* Sets `event` to `mem` for later synchronization operation
|
|
680
|
+
* @param event a {@link GstHip.HipEvent}
|
|
681
|
+
*/
|
|
682
|
+
set_event(event?: HipEvent | null): void;
|
|
683
|
+
/**
|
|
684
|
+
* Waits for device synchronization by using previously configured {@link GstHip.HipEvent}
|
|
685
|
+
* via `gst_hip_memory_set_event()`
|
|
686
|
+
*/
|
|
687
|
+
sync(): void;
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
/**
|
|
691
|
+
* @gir-type Struct
|
|
692
|
+
*/
|
|
693
|
+
abstract class HipMemoryPrivate {
|
|
694
|
+
static $gtype: GObject.GType<HipMemoryPrivate>;
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
/**
|
|
698
|
+
* @gir-type Alias
|
|
699
|
+
*/
|
|
700
|
+
type HipPoolAllocatorClass = typeof HipPoolAllocator;
|
|
701
|
+
/**
|
|
702
|
+
* @gir-type Struct
|
|
703
|
+
*/
|
|
704
|
+
abstract class HipPoolAllocatorPrivate {
|
|
705
|
+
static $gtype: GObject.GType<HipPoolAllocatorPrivate>;
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
/**
|
|
709
|
+
* @gir-type Struct
|
|
710
|
+
*/
|
|
711
|
+
class HipStream {
|
|
712
|
+
static $gtype: GObject.GType<HipStream>;
|
|
713
|
+
|
|
714
|
+
// Constructors
|
|
715
|
+
|
|
716
|
+
constructor(vendor: HipVendor, device_id: number);
|
|
717
|
+
|
|
718
|
+
static ['new'](vendor: HipVendor, device_id: number): HipStream;
|
|
719
|
+
|
|
720
|
+
// Methods
|
|
721
|
+
|
|
722
|
+
/**
|
|
723
|
+
* Gets numeric device identifier of `stream` object
|
|
724
|
+
* @returns device identifier
|
|
725
|
+
*/
|
|
726
|
+
get_device_id(): number;
|
|
727
|
+
/**
|
|
728
|
+
* Gets hipStream_t handle owned by `stream`
|
|
729
|
+
* @returns hipStream_t handle
|
|
730
|
+
*/
|
|
731
|
+
get_handle(): any | null;
|
|
732
|
+
/**
|
|
733
|
+
* Gets device vendor of `stream` object
|
|
734
|
+
* @returns {@link GstHip.HipVendor}
|
|
735
|
+
*/
|
|
736
|
+
get_vendor(): HipVendor;
|
|
737
|
+
/**
|
|
738
|
+
* Records currently scheduled operations in `stream` to {@link GstHip.HipEvent}
|
|
739
|
+
* @returns `true` if succeeded
|
|
740
|
+
*/
|
|
741
|
+
record_event(): [boolean, HipEvent | null];
|
|
742
|
+
/**
|
|
743
|
+
* Increments the reference count on `stream`
|
|
744
|
+
* @returns a pointer to `stream`
|
|
745
|
+
*/
|
|
746
|
+
ref(): HipStream;
|
|
747
|
+
/**
|
|
748
|
+
* Decrements the reference count on `stream`
|
|
749
|
+
*/
|
|
750
|
+
unref(): void;
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
/**
|
|
754
|
+
* Name of the imported GIR library
|
|
755
|
+
* `see` https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
|
|
756
|
+
*/
|
|
757
|
+
const __name__: string;
|
|
758
|
+
/**
|
|
759
|
+
* Version of the imported GIR library
|
|
760
|
+
* `see` https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
|
|
761
|
+
*/
|
|
762
|
+
const __version__: string;
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
export default GstHip;
|
|
766
|
+
|
|
767
|
+
// END
|
package/gsthip-1.0.js
ADDED
package/index.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type Definitions for Gjs (https://gjs.guide/)
|
|
3
|
+
*
|
|
4
|
+
* These type definitions are automatically generated, do not edit them by hand.
|
|
5
|
+
* If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gir
|
|
6
|
+
*
|
|
7
|
+
* This template is used to generate the index.d.ts file of each GIR module like Gtk-4.0, GObject-2.0, ...
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
import './gsthip-1.0-ambient.d.ts';
|
|
11
|
+
|
|
12
|
+
import './gsthip-1.0-import.d.ts';
|
|
13
|
+
|
|
14
|
+
import GstHip from './gsthip-1.0.js';
|
|
15
|
+
export default GstHip;
|
package/index.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@girs/gsthip-1.0",
|
|
3
|
+
"version": "1.0.0-4.0.0-beta.41",
|
|
4
|
+
"description": "GJS TypeScript type definitions for GstHip-1.0, generated from library version 1.0.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"module": "gsthip-1.0.js",
|
|
7
|
+
"main": "gsthip-1.0.js",
|
|
8
|
+
"exports": {
|
|
9
|
+
"./ambient": {
|
|
10
|
+
"types": "./gsthip-1.0-ambient.d.ts",
|
|
11
|
+
"import": "./gsthip-1.0-ambient.js",
|
|
12
|
+
"default": "./gsthip-1.0-ambient.js"
|
|
13
|
+
},
|
|
14
|
+
"./import": {
|
|
15
|
+
"types": "./gsthip-1.0-import.d.ts",
|
|
16
|
+
"import": "./gsthip-1.0-import.js",
|
|
17
|
+
"default": "./gsthip-1.0-import.js"
|
|
18
|
+
},
|
|
19
|
+
"./gsthip-1.0": {
|
|
20
|
+
"types": "./gsthip-1.0.d.ts",
|
|
21
|
+
"import": "./gsthip-1.0.js",
|
|
22
|
+
"default": "./gsthip-1.0.js"
|
|
23
|
+
},
|
|
24
|
+
".": {
|
|
25
|
+
"types": "./index.d.ts",
|
|
26
|
+
"import": "./index.js",
|
|
27
|
+
"default": "./index.js"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"scripts": {
|
|
31
|
+
"test": "tsc --project tsconfig.json"
|
|
32
|
+
},
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@girs/gjs": "4.0.0-beta.41",
|
|
35
|
+
"@girs/gstvideo-1.0": "1.0.0-4.0.0-beta.41",
|
|
36
|
+
"@girs/gstbase-1.0": "1.0.0-4.0.0-beta.41",
|
|
37
|
+
"@girs/gst-1.0": "1.28.1-4.0.0-beta.41",
|
|
38
|
+
"@girs/gobject-2.0": "2.88.0-4.0.0-beta.41",
|
|
39
|
+
"@girs/glib-2.0": "2.88.0-4.0.0-beta.41",
|
|
40
|
+
"@girs/gmodule-2.0": "2.0.0-4.0.0-beta.41" },
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"typescript": "*"
|
|
43
|
+
},
|
|
44
|
+
"keywords": ["Gir", "TypeScript", "types", "GObject-Introspection", "GJS", "GstHip-1.0"],
|
|
45
|
+
"author": "ts-for-gir",
|
|
46
|
+
"license": "MIT",
|
|
47
|
+
"repository": {
|
|
48
|
+
"type": "git",
|
|
49
|
+
"url": "git+https://github.com/gjsify/types.git"
|
|
50
|
+
},
|
|
51
|
+
"bugs": {
|
|
52
|
+
"url": "https://github.com/gjsify/ts-for-gir/issues"
|
|
53
|
+
},
|
|
54
|
+
"homepage": "https://github.com/gjsify/types/tree/main/gsthip-1.0#readme"
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
// General settings for code interpretation
|
|
4
|
+
"target": "ESNext",
|
|
5
|
+
"module": "NodeNext",
|
|
6
|
+
"lib": ["ESNext"],
|
|
7
|
+
"types": [],
|
|
8
|
+
"experimentalDecorators": true,
|
|
9
|
+
"moduleResolution": "NodeNext",
|
|
10
|
+
"noEmit": true,
|
|
11
|
+
"noEmitOnError": false,
|
|
12
|
+
"baseUrl": "./",
|
|
13
|
+
"rootDir": ".",
|
|
14
|
+
// General settings for code generation
|
|
15
|
+
"removeComments": false,
|
|
16
|
+
"inlineSourceMap": false,
|
|
17
|
+
"inlineSources": false,
|
|
18
|
+
"newLine": "LF",
|
|
19
|
+
// Show diagnostics
|
|
20
|
+
"diagnostics": true,
|
|
21
|
+
"paths": {
|
|
22
|
+
"@girs/gstvideo-1.0": [
|
|
23
|
+
"../gstvideo-1.0/index.d.ts"
|
|
24
|
+
],
|
|
25
|
+
"@girs/gstbase-1.0": [
|
|
26
|
+
"../gstbase-1.0/index.d.ts"
|
|
27
|
+
],
|
|
28
|
+
"@girs/gst-1.0": [
|
|
29
|
+
"../gst-1.0/index.d.ts"
|
|
30
|
+
],
|
|
31
|
+
"@girs/gobject-2.0": [
|
|
32
|
+
"../gobject-2.0/index.d.ts"
|
|
33
|
+
],
|
|
34
|
+
"@girs/glib-2.0": [
|
|
35
|
+
"../glib-2.0/index.d.ts"
|
|
36
|
+
],
|
|
37
|
+
"@girs/gmodule-2.0": [
|
|
38
|
+
"../gmodule-2.0/index.d.ts"
|
|
39
|
+
],
|
|
40
|
+
"@girs/gjs": [
|
|
41
|
+
"../gjs/index.d.ts"
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"include": ["./gsthip-1.0.d.ts"]
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
package/typedoc.json
ADDED