@girs/gstgl-1.0 1.0.0-3.2.6 → 1.0.0-3.2.8
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 +1 -1
- package/gstgl-1.0-ambient.js +2 -0
- package/gstgl-1.0-import.js +3 -0
- package/gstgl-1.0.d.cts +75 -84
- package/gstgl-1.0.d.ts +75 -84
- package/package.json +17 -11
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for GstGL-1.0, generated from library version 1.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.
|
|
8
|
+
GJS TypeScript type definitions for GstGL-1.0, generated from library version 1.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.8.
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
## Install
|
package/gstgl-1.0.d.cts
CHANGED
|
@@ -520,27 +520,27 @@ export enum GLSLProfile {
|
|
|
520
520
|
* An option that can be activated on bufferpools to request OpenGL
|
|
521
521
|
* synchronization metadata on buffers from the pool.
|
|
522
522
|
*/
|
|
523
|
-
export const BUFFER_POOL_OPTION_GL_SYNC_META: string
|
|
523
|
+
export const BUFFER_POOL_OPTION_GL_SYNC_META: string
|
|
524
524
|
/**
|
|
525
525
|
* String used for %GST_GL_TEXTURE_TARGET_2D as a #GstBufferPool pool option
|
|
526
526
|
*/
|
|
527
|
-
export const BUFFER_POOL_OPTION_GL_TEXTURE_TARGET_2D: string
|
|
527
|
+
export const BUFFER_POOL_OPTION_GL_TEXTURE_TARGET_2D: string
|
|
528
528
|
/**
|
|
529
529
|
* String used for %GST_GL_TEXTURE_TARGET_EXTERNAL_OES as a #GstBufferPool pool option
|
|
530
530
|
*/
|
|
531
|
-
export const BUFFER_POOL_OPTION_GL_TEXTURE_TARGET_EXTERNAL_OES: string
|
|
531
|
+
export const BUFFER_POOL_OPTION_GL_TEXTURE_TARGET_EXTERNAL_OES: string
|
|
532
532
|
/**
|
|
533
533
|
* String used for %GST_GL_TEXTURE_TARGET_RECTANGLE as a #GstBufferPool pool option
|
|
534
534
|
*/
|
|
535
|
-
export const BUFFER_POOL_OPTION_GL_TEXTURE_TARGET_RECTANGLE: string
|
|
535
|
+
export const BUFFER_POOL_OPTION_GL_TEXTURE_TARGET_RECTANGLE: string
|
|
536
536
|
/**
|
|
537
537
|
* Name of the caps feature indicating the use of GL buffers
|
|
538
538
|
*/
|
|
539
|
-
export const CAPS_FEATURE_MEMORY_GL_BUFFER: string
|
|
539
|
+
export const CAPS_FEATURE_MEMORY_GL_BUFFER: string
|
|
540
540
|
/**
|
|
541
541
|
* Name of the caps feature for indicating the use of #GstGLMemory
|
|
542
542
|
*/
|
|
543
|
-
export const CAPS_FEATURE_MEMORY_GL_MEMORY: string
|
|
543
|
+
export const CAPS_FEATURE_MEMORY_GL_MEMORY: string
|
|
544
544
|
/**
|
|
545
545
|
* GL Allocation flag indicating that the implementation should allocate the
|
|
546
546
|
* necessary resources.
|
|
@@ -570,77 +570,77 @@ export const GL_ALLOCATION_PARAMS_ALLOC_FLAG_WRAP_SYSMEM: number
|
|
|
570
570
|
/**
|
|
571
571
|
* The name for %GST_GL_API_GLES1 used in various places
|
|
572
572
|
*/
|
|
573
|
-
export const GL_API_GLES1_NAME: string
|
|
573
|
+
export const GL_API_GLES1_NAME: string
|
|
574
574
|
/**
|
|
575
575
|
* The name for %GST_GL_API_GLES2 used in various places
|
|
576
576
|
*/
|
|
577
|
-
export const GL_API_GLES2_NAME: string
|
|
577
|
+
export const GL_API_GLES2_NAME: string
|
|
578
578
|
/**
|
|
579
579
|
* The name for %GST_GL_API_OPENGL3 used in various places
|
|
580
580
|
*/
|
|
581
|
-
export const GL_API_OPENGL3_NAME: string
|
|
581
|
+
export const GL_API_OPENGL3_NAME: string
|
|
582
582
|
/**
|
|
583
583
|
* The name for %GST_GL_API_OPENGL used in various places
|
|
584
584
|
*/
|
|
585
|
-
export const GL_API_OPENGL_NAME: string
|
|
585
|
+
export const GL_API_OPENGL_NAME: string
|
|
586
586
|
/**
|
|
587
587
|
* The name of the GL buffer allocator
|
|
588
588
|
*/
|
|
589
|
-
export const GL_BASE_MEMORY_ALLOCATOR_NAME: string
|
|
589
|
+
export const GL_BASE_MEMORY_ALLOCATOR_NAME: string
|
|
590
590
|
/**
|
|
591
591
|
* The name of the GL buffer allocator
|
|
592
592
|
*/
|
|
593
|
-
export const GL_BUFFER_ALLOCATOR_NAME: string
|
|
593
|
+
export const GL_BUFFER_ALLOCATOR_NAME: string
|
|
594
594
|
/**
|
|
595
595
|
* The currently supported formats that can be converted
|
|
596
596
|
*/
|
|
597
|
-
export const GL_COLOR_CONVERT_FORMATS: string
|
|
597
|
+
export const GL_COLOR_CONVERT_FORMATS: string
|
|
598
598
|
/**
|
|
599
599
|
* The currently supported #GstCaps that can be converted
|
|
600
600
|
*/
|
|
601
|
-
export const GL_COLOR_CONVERT_VIDEO_CAPS: string
|
|
601
|
+
export const GL_COLOR_CONVERT_VIDEO_CAPS: string
|
|
602
602
|
/**
|
|
603
603
|
* The canonical name of a #GstStructure that contains a configuration for a
|
|
604
604
|
* #GstGLContext.
|
|
605
605
|
*/
|
|
606
|
-
export const GL_CONFIG_STRUCTURE_NAME: string
|
|
607
|
-
export const GL_CONTEXT_TYPE_CGL: string
|
|
608
|
-
export const GL_CONTEXT_TYPE_EAGL: string
|
|
609
|
-
export const GL_CONTEXT_TYPE_EGL: string
|
|
610
|
-
export const GL_CONTEXT_TYPE_GLX: string
|
|
611
|
-
export const GL_CONTEXT_TYPE_WGL: string
|
|
606
|
+
export const GL_CONFIG_STRUCTURE_NAME: string
|
|
607
|
+
export const GL_CONTEXT_TYPE_CGL: string
|
|
608
|
+
export const GL_CONTEXT_TYPE_EAGL: string
|
|
609
|
+
export const GL_CONTEXT_TYPE_EGL: string
|
|
610
|
+
export const GL_CONTEXT_TYPE_GLX: string
|
|
611
|
+
export const GL_CONTEXT_TYPE_WGL: string
|
|
612
612
|
/**
|
|
613
613
|
* The name used in #GstContext queries for requesting a #GstGLDisplay
|
|
614
614
|
*/
|
|
615
|
-
export const GL_DISPLAY_CONTEXT_TYPE: string
|
|
615
|
+
export const GL_DISPLAY_CONTEXT_TYPE: string
|
|
616
616
|
/**
|
|
617
617
|
* The name of the GL memory allocator
|
|
618
618
|
*/
|
|
619
|
-
export const GL_MEMORY_ALLOCATOR_NAME: string
|
|
619
|
+
export const GL_MEMORY_ALLOCATOR_NAME: string
|
|
620
620
|
/**
|
|
621
621
|
* The name of the GL Memory PBO allocator
|
|
622
622
|
*/
|
|
623
|
-
export const GL_MEMORY_PBO_ALLOCATOR_NAME: string
|
|
623
|
+
export const GL_MEMORY_PBO_ALLOCATOR_NAME: string
|
|
624
624
|
/**
|
|
625
625
|
* List of video formats that are supported by #GstGLMemory
|
|
626
626
|
*/
|
|
627
|
-
export const GL_MEMORY_VIDEO_FORMATS_STR: string
|
|
627
|
+
export const GL_MEMORY_VIDEO_FORMATS_STR: string
|
|
628
628
|
/**
|
|
629
629
|
* The name of the GL renderbuffer allocator
|
|
630
630
|
*/
|
|
631
|
-
export const GL_RENDERBUFFER_ALLOCATOR_NAME: string
|
|
631
|
+
export const GL_RENDERBUFFER_ALLOCATOR_NAME: string
|
|
632
632
|
/**
|
|
633
633
|
* String used for %GST_GL_TEXTURE_TARGET_2D in things like caps values
|
|
634
634
|
*/
|
|
635
|
-
export const GL_TEXTURE_TARGET_2D_STR: string
|
|
635
|
+
export const GL_TEXTURE_TARGET_2D_STR: string
|
|
636
636
|
/**
|
|
637
637
|
* String used for %GST_GL_TEXTURE_TARGET_EXTERNAL_OES in things like caps values
|
|
638
638
|
*/
|
|
639
|
-
export const GL_TEXTURE_TARGET_EXTERNAL_OES_STR: string
|
|
639
|
+
export const GL_TEXTURE_TARGET_EXTERNAL_OES_STR: string
|
|
640
640
|
/**
|
|
641
641
|
* String used for %GST_GL_TEXTURE_TARGET_RECTANGLE in things like caps values
|
|
642
642
|
*/
|
|
643
|
-
export const GL_TEXTURE_TARGET_RECTANGLE_STR: string
|
|
643
|
+
export const GL_TEXTURE_TARGET_RECTANGLE_STR: string
|
|
644
644
|
/**
|
|
645
645
|
* Flag indicating that we should map the GL object instead of to system memory.
|
|
646
646
|
*
|
|
@@ -665,7 +665,7 @@ export function context_get_gl_display(context: Gst.Context): [ /* returnType */
|
|
|
665
665
|
* @param display resulting #GstGLDisplay
|
|
666
666
|
*/
|
|
667
667
|
export function context_set_gl_display(context: Gst.Context, display: GLDisplay | null): void
|
|
668
|
-
export function gl_api_from_string(api_s: string
|
|
668
|
+
export function gl_api_from_string(api_s: string): GLAPI
|
|
669
669
|
export function gl_api_to_string(api: GLAPI): string | null
|
|
670
670
|
export function gl_base_memory_alloc(allocator: GLBaseMemoryAllocator, params: GLAllocationParams): GLBaseMemory | null
|
|
671
671
|
export function gl_base_memory_error_quark(): GLib.Quark
|
|
@@ -679,7 +679,7 @@ export function gl_base_memory_init_once(): void
|
|
|
679
679
|
* multiple times. This must be called before any other #GstGLBuffer operation.
|
|
680
680
|
*/
|
|
681
681
|
export function gl_buffer_init_once(): void
|
|
682
|
-
export function gl_check_extension(name: string
|
|
682
|
+
export function gl_check_extension(name: string, ext: string): boolean
|
|
683
683
|
export function gl_config_caveat_to_string(caveat: GLConfigCaveat): string | null
|
|
684
684
|
export function gl_config_surface_type_to_string(surface_type: GLConfigSurfaceType): string | null
|
|
685
685
|
export function gl_context_error_quark(): GLib.Quark
|
|
@@ -760,7 +760,7 @@ export function gl_memory_pbo_init_once(): void
|
|
|
760
760
|
* @param b another 2-dimensional 4x4 array of #gfloat
|
|
761
761
|
*/
|
|
762
762
|
export function gl_multiply_matrix4(a: number[], b: number[]): /* result */ number[]
|
|
763
|
-
export function gl_platform_from_string(platform_s: string
|
|
763
|
+
export function gl_platform_from_string(platform_s: string): GLPlatform
|
|
764
764
|
export function gl_platform_to_string(platform: GLPlatform): string | null
|
|
765
765
|
/**
|
|
766
766
|
* Performs a GST_QUERY_CONTEXT query of type "gst.gl.local_context" on all
|
|
@@ -789,7 +789,7 @@ export function gl_stereo_downmix_mode_get_type(): GObject.GType
|
|
|
789
789
|
export function gl_sync_meta_api_get_type(): GObject.GType
|
|
790
790
|
export function gl_sync_meta_get_info(): Gst.MetaInfo
|
|
791
791
|
export function gl_texture_target_from_gl(target: number): GLTextureTarget
|
|
792
|
-
export function gl_texture_target_from_string(str: string
|
|
792
|
+
export function gl_texture_target_from_string(str: string): GLTextureTarget
|
|
793
793
|
export function gl_texture_target_to_buffer_pool_option(target: GLTextureTarget): string | null
|
|
794
794
|
export function gl_texture_target_to_gl(target: GLTextureTarget): number
|
|
795
795
|
export function gl_texture_target_to_string(target: GLTextureTarget): string | null
|
|
@@ -811,7 +811,7 @@ export function gl_value_set_texture_target_from_mask(value: any, target_mask: G
|
|
|
811
811
|
export function gl_version_to_glsl_version(gl_api: GLAPI, maj: number, min: number): GLSLVersion
|
|
812
812
|
export function gl_window_error_quark(): GLib.Quark
|
|
813
813
|
export function glsl_error_quark(): GLib.Quark
|
|
814
|
-
export function glsl_profile_from_string(string: string
|
|
814
|
+
export function glsl_profile_from_string(string: string): GLSLProfile
|
|
815
815
|
export function glsl_profile_to_string(profile: GLSLProfile): string | null
|
|
816
816
|
/**
|
|
817
817
|
* Note: this function first searches the first 1 kilobytes for a `#version`
|
|
@@ -819,15 +819,15 @@ export function glsl_profile_to_string(profile: GLSLProfile): string | null
|
|
|
819
819
|
* @param s string to search for a valid `#version` string
|
|
820
820
|
* @returns TRUE if a valid `#version` string was found, FALSE otherwise
|
|
821
821
|
*/
|
|
822
|
-
export function glsl_string_get_version_profile(s: string
|
|
823
|
-
export function glsl_version_from_string(string: string
|
|
822
|
+
export function glsl_string_get_version_profile(s: string): [ /* returnType */ boolean, /* version */ GLSLVersion, /* profile */ GLSLProfile ]
|
|
823
|
+
export function glsl_version_from_string(string: string): GLSLVersion
|
|
824
824
|
/**
|
|
825
825
|
* Note: this function expects either a `#version` GLSL preprocesser directive
|
|
826
826
|
* or a valid GLSL version and/or profile.
|
|
827
827
|
* @param string a valid GLSL `#version` string
|
|
828
828
|
* @returns TRUE if a valid `#version` string was found, FALSE otherwise
|
|
829
829
|
*/
|
|
830
|
-
export function glsl_version_profile_from_string(string: string
|
|
830
|
+
export function glsl_version_profile_from_string(string: string): [ /* returnType */ boolean, /* version_ret */ GLSLVersion, /* profile_ret */ GLSLProfile ]
|
|
831
831
|
export function glsl_version_profile_to_string(version: GLSLVersion, profile: GLSLProfile): string | null
|
|
832
832
|
export function glsl_version_to_string(version: GLSLVersion): string | null
|
|
833
833
|
export function is_gl_base_memory(mem: Gst.Memory): boolean
|
|
@@ -1209,7 +1209,6 @@ export interface GLBaseMixer {
|
|
|
1209
1209
|
|
|
1210
1210
|
// Conflicting properties
|
|
1211
1211
|
|
|
1212
|
-
start_time: any
|
|
1213
1212
|
object: any
|
|
1214
1213
|
|
|
1215
1214
|
// Own fields of GstGL-1.0.GstGL.GLBaseMixer
|
|
@@ -1440,7 +1439,6 @@ export module GLBaseSrc {
|
|
|
1440
1439
|
|
|
1441
1440
|
// Own constructor properties of GstGL-1.0.GstGL.GLBaseSrc
|
|
1442
1441
|
|
|
1443
|
-
timestamp_offset?: number | null
|
|
1444
1442
|
timestampOffset?: number | null
|
|
1445
1443
|
}
|
|
1446
1444
|
|
|
@@ -1450,7 +1448,6 @@ export interface GLBaseSrc {
|
|
|
1450
1448
|
|
|
1451
1449
|
// Own properties of GstGL-1.0.GstGL.GLBaseSrc
|
|
1452
1450
|
|
|
1453
|
-
timestamp_offset: number
|
|
1454
1451
|
timestampOffset: number
|
|
1455
1452
|
|
|
1456
1453
|
// Conflicting properties
|
|
@@ -2032,7 +2029,7 @@ export interface GLContext {
|
|
|
2032
2029
|
* @param feature a platform specific feature
|
|
2033
2030
|
* @returns Whether @feature is supported by @context
|
|
2034
2031
|
*/
|
|
2035
|
-
check_feature(feature: string
|
|
2032
|
+
check_feature(feature: string): boolean
|
|
2036
2033
|
/**
|
|
2037
2034
|
* Must be called with `context` current.
|
|
2038
2035
|
* @param fbo_target the GL value of the framebuffer target, GL_FRAMEBUFFER, GL_READ_FRAMEBUFFER, GL_DRAW_FRAMEBUFFER
|
|
@@ -2151,7 +2148,7 @@ export interface GLContext {
|
|
|
2151
2148
|
* @param name an opengl function name
|
|
2152
2149
|
* @returns a function pointer or %NULL
|
|
2153
2150
|
*/
|
|
2154
|
-
get_proc_address(name: string
|
|
2151
|
+
get_proc_address(name: string): any | null
|
|
2155
2152
|
get_thread(): GLib.Thread | null
|
|
2156
2153
|
get_window(): GLWindow | null
|
|
2157
2154
|
is_shared(): boolean
|
|
@@ -2260,7 +2257,7 @@ export interface GLContext {
|
|
|
2260
2257
|
* @param feature a platform specific feature
|
|
2261
2258
|
* @returns Whether @feature is supported by @context
|
|
2262
2259
|
*/
|
|
2263
|
-
vfunc_check_feature(feature: string
|
|
2260
|
+
vfunc_check_feature(feature: string): boolean
|
|
2264
2261
|
vfunc_choose_format(): boolean
|
|
2265
2262
|
vfunc_create_context(gl_api: GLAPI, other_context: GLContext): boolean
|
|
2266
2263
|
vfunc_destroy_context(): void
|
|
@@ -2408,7 +2405,7 @@ export class GLContext extends Gst.Object {
|
|
|
2408
2405
|
* @param name then function to get the address of
|
|
2409
2406
|
* @returns an address pointing to @name or %NULL
|
|
2410
2407
|
*/
|
|
2411
|
-
static default_get_proc_address(gl_api: GLAPI, name: string
|
|
2408
|
+
static default_get_proc_address(gl_api: GLAPI, name: string): any | null
|
|
2412
2409
|
/**
|
|
2413
2410
|
* See also gst_gl_context_activate().
|
|
2414
2411
|
* @returns the #GstGLContext active in the current thread or %NULL
|
|
@@ -2432,7 +2429,7 @@ export class GLContext extends Gst.Object {
|
|
|
2432
2429
|
* @param name the name of the function to retrieve
|
|
2433
2430
|
* @returns a function pointer for @name, or %NULL
|
|
2434
2431
|
*/
|
|
2435
|
-
static get_proc_address_with_platform(context_type: GLPlatform, gl_api: GLAPI, name: string
|
|
2432
|
+
static get_proc_address_with_platform(context_type: GLPlatform, gl_api: GLAPI, name: string): any | null
|
|
2436
2433
|
}
|
|
2437
2434
|
|
|
2438
2435
|
export module GLDisplay {
|
|
@@ -3231,7 +3228,6 @@ export interface GLMixer {
|
|
|
3231
3228
|
|
|
3232
3229
|
// Conflicting properties
|
|
3233
3230
|
|
|
3234
|
-
start_time: any
|
|
3235
3231
|
object: any
|
|
3236
3232
|
|
|
3237
3233
|
// Own fields of GstGL-1.0.GstGL.GLMixer
|
|
@@ -3779,7 +3775,7 @@ export class GLSLStage extends Gst.Object {
|
|
|
3779
3775
|
static new(context: GLContext, type: number): GLSLStage
|
|
3780
3776
|
static new_default_fragment(context: GLContext): GLSLStage
|
|
3781
3777
|
static new_default_vertex(context: GLContext): GLSLStage
|
|
3782
|
-
static new_with_string(context: GLContext, type: number, version: GLSLVersion, profile: GLSLProfile, str: string
|
|
3778
|
+
static new_with_string(context: GLContext, type: number, version: GLSLVersion, profile: GLSLProfile, str: string): GLSLStage
|
|
3783
3779
|
static new_with_strings(context: GLContext, type: number, version: GLSLVersion, profile: GLSLProfile, str: string[]): GLSLStage
|
|
3784
3780
|
_init(config?: GLSLStage.ConstructorProperties): void
|
|
3785
3781
|
}
|
|
@@ -3830,14 +3826,14 @@ export interface GLShader {
|
|
|
3830
3826
|
* @param index attribute index to set
|
|
3831
3827
|
* @param name name of the attribute
|
|
3832
3828
|
*/
|
|
3833
|
-
bind_attribute_location(index: number, name: string
|
|
3829
|
+
bind_attribute_location(index: number, name: string): void
|
|
3834
3830
|
/**
|
|
3835
3831
|
* Bind attribute `name` to the specified location `index` using
|
|
3836
3832
|
* `glBindFragDataLocation()`.
|
|
3837
3833
|
* @param index attribute index to set
|
|
3838
3834
|
* @param name name of the attribute
|
|
3839
3835
|
*/
|
|
3840
|
-
bind_frag_data_location(index: number, name: string
|
|
3836
|
+
bind_frag_data_location(index: number, name: string): void
|
|
3841
3837
|
/**
|
|
3842
3838
|
* Compiles `stage` and attaches it to `shader`.
|
|
3843
3839
|
*
|
|
@@ -3862,7 +3858,7 @@ export interface GLShader {
|
|
|
3862
3858
|
* @param stage a #GstGLSLStage to attach
|
|
3863
3859
|
*/
|
|
3864
3860
|
detach_unlocked(stage: GLSLStage): void
|
|
3865
|
-
get_attribute_location(name: string
|
|
3861
|
+
get_attribute_location(name: string): number
|
|
3866
3862
|
get_program_handle(): number
|
|
3867
3863
|
/**
|
|
3868
3864
|
* Note: must be called in the GL thread
|
|
@@ -3893,51 +3889,51 @@ export interface GLShader {
|
|
|
3893
3889
|
* @param name name of the uniform
|
|
3894
3890
|
* @param value value to set
|
|
3895
3891
|
*/
|
|
3896
|
-
set_uniform_1f(name: string
|
|
3892
|
+
set_uniform_1f(name: string, value: number): void
|
|
3897
3893
|
/**
|
|
3898
3894
|
* Perform `glUniform1fv()` for `name` on `shader`
|
|
3899
3895
|
* @param name name of the uniform
|
|
3900
3896
|
* @param value values to set
|
|
3901
3897
|
*/
|
|
3902
|
-
set_uniform_1fv(name: string
|
|
3898
|
+
set_uniform_1fv(name: string, value: number[]): void
|
|
3903
3899
|
/**
|
|
3904
3900
|
* Perform `glUniform1i()` for `name` on `shader`
|
|
3905
3901
|
* @param name name of the uniform
|
|
3906
3902
|
* @param value value to set
|
|
3907
3903
|
*/
|
|
3908
|
-
set_uniform_1i(name: string
|
|
3904
|
+
set_uniform_1i(name: string, value: number): void
|
|
3909
3905
|
/**
|
|
3910
3906
|
* Perform `glUniform1iv()` for `name` on `shader`
|
|
3911
3907
|
* @param name name of the uniform
|
|
3912
3908
|
* @param value values to set
|
|
3913
3909
|
*/
|
|
3914
|
-
set_uniform_1iv(name: string
|
|
3910
|
+
set_uniform_1iv(name: string, value: number[]): void
|
|
3915
3911
|
/**
|
|
3916
3912
|
* Perform `glUniform2f()` for `name` on `shader`
|
|
3917
3913
|
* @param name name of the uniform
|
|
3918
3914
|
* @param v0 first value to set
|
|
3919
3915
|
* @param v1 second value to set
|
|
3920
3916
|
*/
|
|
3921
|
-
set_uniform_2f(name: string
|
|
3917
|
+
set_uniform_2f(name: string, v0: number, v1: number): void
|
|
3922
3918
|
/**
|
|
3923
3919
|
* Perform `glUniform2fv()` for `name` on `shader`
|
|
3924
3920
|
* @param name name of the uniform
|
|
3925
3921
|
* @param value values to set
|
|
3926
3922
|
*/
|
|
3927
|
-
set_uniform_2fv(name: string
|
|
3923
|
+
set_uniform_2fv(name: string, value: number[]): void
|
|
3928
3924
|
/**
|
|
3929
3925
|
* Perform `glUniform2i()` for `name` on `shader`
|
|
3930
3926
|
* @param name name of the uniform
|
|
3931
3927
|
* @param v0 first value to set
|
|
3932
3928
|
* @param v1 second value to set
|
|
3933
3929
|
*/
|
|
3934
|
-
set_uniform_2i(name: string
|
|
3930
|
+
set_uniform_2i(name: string, v0: number, v1: number): void
|
|
3935
3931
|
/**
|
|
3936
3932
|
* Perform `glUniform2iv()` for `name` on `shader`
|
|
3937
3933
|
* @param name name of the uniform
|
|
3938
3934
|
* @param value values to set
|
|
3939
3935
|
*/
|
|
3940
|
-
set_uniform_2iv(name: string
|
|
3936
|
+
set_uniform_2iv(name: string, value: number[]): void
|
|
3941
3937
|
/**
|
|
3942
3938
|
* Perform `glUniform3f()` for `name` on `shader`
|
|
3943
3939
|
* @param name name of the uniform
|
|
@@ -3945,13 +3941,13 @@ export interface GLShader {
|
|
|
3945
3941
|
* @param v1 second value to set
|
|
3946
3942
|
* @param v2 third value to set
|
|
3947
3943
|
*/
|
|
3948
|
-
set_uniform_3f(name: string
|
|
3944
|
+
set_uniform_3f(name: string, v0: number, v1: number, v2: number): void
|
|
3949
3945
|
/**
|
|
3950
3946
|
* Perform `glUniform3fv()` for `name` on `shader`
|
|
3951
3947
|
* @param name name of the uniform
|
|
3952
3948
|
* @param value values to set
|
|
3953
3949
|
*/
|
|
3954
|
-
set_uniform_3fv(name: string
|
|
3950
|
+
set_uniform_3fv(name: string, value: number[]): void
|
|
3955
3951
|
/**
|
|
3956
3952
|
* Perform `glUniform3i()` for `name` on `shader`
|
|
3957
3953
|
* @param name name of the uniform
|
|
@@ -3959,13 +3955,13 @@ export interface GLShader {
|
|
|
3959
3955
|
* @param v1 second value to set
|
|
3960
3956
|
* @param v2 third value to set
|
|
3961
3957
|
*/
|
|
3962
|
-
set_uniform_3i(name: string
|
|
3958
|
+
set_uniform_3i(name: string, v0: number, v1: number, v2: number): void
|
|
3963
3959
|
/**
|
|
3964
3960
|
* Perform `glUniform3iv()` for `name` on `shader`
|
|
3965
3961
|
* @param name name of the uniform
|
|
3966
3962
|
* @param value values to set
|
|
3967
3963
|
*/
|
|
3968
|
-
set_uniform_3iv(name: string
|
|
3964
|
+
set_uniform_3iv(name: string, value: number[]): void
|
|
3969
3965
|
/**
|
|
3970
3966
|
* Perform `glUniform4f()` for `name` on `shader`
|
|
3971
3967
|
* @param name name of the uniform
|
|
@@ -3974,13 +3970,13 @@ export interface GLShader {
|
|
|
3974
3970
|
* @param v2 third value to set
|
|
3975
3971
|
* @param v3 fourth value to set
|
|
3976
3972
|
*/
|
|
3977
|
-
set_uniform_4f(name: string
|
|
3973
|
+
set_uniform_4f(name: string, v0: number, v1: number, v2: number, v3: number): void
|
|
3978
3974
|
/**
|
|
3979
3975
|
* Perform `glUniform4fv()` for `name` on `shader`
|
|
3980
3976
|
* @param name name of the uniform
|
|
3981
3977
|
* @param value values to set
|
|
3982
3978
|
*/
|
|
3983
|
-
set_uniform_4fv(name: string
|
|
3979
|
+
set_uniform_4fv(name: string, value: number[]): void
|
|
3984
3980
|
/**
|
|
3985
3981
|
* Perform `glUniform4i()` for `name` on `shader`
|
|
3986
3982
|
* @param name name of the uniform
|
|
@@ -3989,13 +3985,13 @@ export interface GLShader {
|
|
|
3989
3985
|
* @param v2 third value to set
|
|
3990
3986
|
* @param v3 fourth value to set
|
|
3991
3987
|
*/
|
|
3992
|
-
set_uniform_4i(name: string
|
|
3988
|
+
set_uniform_4i(name: string, v0: number, v1: number, v2: number, v3: number): void
|
|
3993
3989
|
/**
|
|
3994
3990
|
* Perform `glUniform4iv()` for `name` on `shader`
|
|
3995
3991
|
* @param name name of the uniform
|
|
3996
3992
|
* @param value values to set
|
|
3997
3993
|
*/
|
|
3998
|
-
set_uniform_4iv(name: string
|
|
3994
|
+
set_uniform_4iv(name: string, value: number[]): void
|
|
3999
3995
|
/**
|
|
4000
3996
|
* Perform `glUniformMatrix2fv()` for `name` on `shader`
|
|
4001
3997
|
* @param name name of the uniform
|
|
@@ -4003,7 +3999,7 @@ export interface GLShader {
|
|
|
4003
3999
|
* @param transpose transpose the matrix
|
|
4004
4000
|
* @param value matrix to set
|
|
4005
4001
|
*/
|
|
4006
|
-
set_uniform_matrix_2fv(name: string
|
|
4002
|
+
set_uniform_matrix_2fv(name: string, count: number, transpose: boolean, value: number): void
|
|
4007
4003
|
/**
|
|
4008
4004
|
* Perform `glUniformMatrix2x3fv()` for `name` on `shader`
|
|
4009
4005
|
* @param name name of the uniform
|
|
@@ -4011,7 +4007,7 @@ export interface GLShader {
|
|
|
4011
4007
|
* @param transpose transpose the matrix
|
|
4012
4008
|
* @param value values to set
|
|
4013
4009
|
*/
|
|
4014
|
-
set_uniform_matrix_2x3fv(name: string
|
|
4010
|
+
set_uniform_matrix_2x3fv(name: string, count: number, transpose: boolean, value: number): void
|
|
4015
4011
|
/**
|
|
4016
4012
|
* Perform `glUniformMatrix2x4fv()` for `name` on `shader`
|
|
4017
4013
|
* @param name name of the uniform
|
|
@@ -4019,7 +4015,7 @@ export interface GLShader {
|
|
|
4019
4015
|
* @param transpose transpose the matrix
|
|
4020
4016
|
* @param value values to set
|
|
4021
4017
|
*/
|
|
4022
|
-
set_uniform_matrix_2x4fv(name: string
|
|
4018
|
+
set_uniform_matrix_2x4fv(name: string, count: number, transpose: boolean, value: number): void
|
|
4023
4019
|
/**
|
|
4024
4020
|
* Perform `glUniformMatrix3fv()` for `name` on `shader`
|
|
4025
4021
|
* @param name name of the uniform
|
|
@@ -4027,7 +4023,7 @@ export interface GLShader {
|
|
|
4027
4023
|
* @param transpose transpose the matrix
|
|
4028
4024
|
* @param value values to set
|
|
4029
4025
|
*/
|
|
4030
|
-
set_uniform_matrix_3fv(name: string
|
|
4026
|
+
set_uniform_matrix_3fv(name: string, count: number, transpose: boolean, value: number): void
|
|
4031
4027
|
/**
|
|
4032
4028
|
* Perform `glUniformMatrix3x2fv()` for `name` on `shader`
|
|
4033
4029
|
* @param name name of the uniform
|
|
@@ -4035,7 +4031,7 @@ export interface GLShader {
|
|
|
4035
4031
|
* @param transpose transpose the matrix
|
|
4036
4032
|
* @param value values to set
|
|
4037
4033
|
*/
|
|
4038
|
-
set_uniform_matrix_3x2fv(name: string
|
|
4034
|
+
set_uniform_matrix_3x2fv(name: string, count: number, transpose: boolean, value: number): void
|
|
4039
4035
|
/**
|
|
4040
4036
|
* Perform `glUniformMatrix3x4fv()` for `name` on `shader`
|
|
4041
4037
|
* @param name name of the uniform
|
|
@@ -4043,7 +4039,7 @@ export interface GLShader {
|
|
|
4043
4039
|
* @param transpose transpose the matrix
|
|
4044
4040
|
* @param value values to set
|
|
4045
4041
|
*/
|
|
4046
|
-
set_uniform_matrix_3x4fv(name: string
|
|
4042
|
+
set_uniform_matrix_3x4fv(name: string, count: number, transpose: boolean, value: number): void
|
|
4047
4043
|
/**
|
|
4048
4044
|
* Perform `glUniformMatrix4fv()` for `name` on `shader`
|
|
4049
4045
|
* @param name name of the uniform
|
|
@@ -4051,7 +4047,7 @@ export interface GLShader {
|
|
|
4051
4047
|
* @param transpose transpose the matrix
|
|
4052
4048
|
* @param value values to set
|
|
4053
4049
|
*/
|
|
4054
|
-
set_uniform_matrix_4fv(name: string
|
|
4050
|
+
set_uniform_matrix_4fv(name: string, count: number, transpose: boolean, value: number): void
|
|
4055
4051
|
/**
|
|
4056
4052
|
* Perform `glUniformMatrix4x2fv()` for `name` on `shader`
|
|
4057
4053
|
* @param name name of the uniform
|
|
@@ -4059,7 +4055,7 @@ export interface GLShader {
|
|
|
4059
4055
|
* @param transpose transpose the matrix
|
|
4060
4056
|
* @param value values to set
|
|
4061
4057
|
*/
|
|
4062
|
-
set_uniform_matrix_4x2fv(name: string
|
|
4058
|
+
set_uniform_matrix_4x2fv(name: string, count: number, transpose: boolean, value: number): void
|
|
4063
4059
|
/**
|
|
4064
4060
|
* Perform `glUniformMatrix4x3fv()` for `name` on `shader`
|
|
4065
4061
|
* @param name name of the uniform
|
|
@@ -4067,7 +4063,7 @@ export interface GLShader {
|
|
|
4067
4063
|
* @param transpose transpose the matrix
|
|
4068
4064
|
* @param value values to set
|
|
4069
4065
|
*/
|
|
4070
|
-
set_uniform_matrix_4x3fv(name: string
|
|
4066
|
+
set_uniform_matrix_4x3fv(name: string, count: number, transpose: boolean, value: number): void
|
|
4071
4067
|
/**
|
|
4072
4068
|
* Mark's `shader` as being used for the next GL draw command.
|
|
4073
4069
|
*
|
|
@@ -4170,7 +4166,7 @@ export class GLShader extends Gst.Object {
|
|
|
4170
4166
|
* @param profile a #GstGLSLProfile
|
|
4171
4167
|
* @returns a shader string defining the precision of float types based on @context, @version and @profile
|
|
4172
4168
|
*/
|
|
4173
|
-
static string_get_highest_precision(context: GLContext, version: GLSLVersion, profile: GLSLProfile): string
|
|
4169
|
+
static string_get_highest_precision(context: GLContext, version: GLSLVersion, profile: GLSLProfile): string
|
|
4174
4170
|
}
|
|
4175
4171
|
|
|
4176
4172
|
export module GLUpload {
|
|
@@ -4290,11 +4286,6 @@ export module GLViewConvert {
|
|
|
4290
4286
|
|
|
4291
4287
|
// Own constructor properties of GstGL-1.0.GstGL.GLViewConvert
|
|
4292
4288
|
|
|
4293
|
-
downmix_mode?: GLStereoDownmix | null
|
|
4294
|
-
input_flags_override?: GstVideo.VideoMultiviewFlags | null
|
|
4295
|
-
input_mode_override?: GstVideo.VideoMultiviewMode | null
|
|
4296
|
-
output_flags_override?: GstVideo.VideoMultiviewFlags | null
|
|
4297
|
-
output_mode_override?: GstVideo.VideoMultiviewMode | null
|
|
4298
4289
|
downmixMode?: GLStereoDownmix | null
|
|
4299
4290
|
inputFlagsOverride?: GstVideo.VideoMultiviewFlags | null
|
|
4300
4291
|
inputModeOverride?: GstVideo.VideoMultiviewMode | null
|
|
@@ -4555,7 +4546,7 @@ export interface GLWindow {
|
|
|
4555
4546
|
* Start the execution of the runloop.
|
|
4556
4547
|
*/
|
|
4557
4548
|
run(): void
|
|
4558
|
-
send_key_event(event_type: string
|
|
4549
|
+
send_key_event(event_type: string, key_str: string): void
|
|
4559
4550
|
/**
|
|
4560
4551
|
* Invoke `callback` with data on the window thread. `callback` is guaranteed to
|
|
4561
4552
|
* have executed when this function returns.
|
|
@@ -4568,7 +4559,7 @@ export interface GLWindow {
|
|
|
4568
4559
|
* @param callback function to invoke
|
|
4569
4560
|
*/
|
|
4570
4561
|
send_message_async(callback: GLWindowCB): void
|
|
4571
|
-
send_mouse_event(event_type: string
|
|
4562
|
+
send_mouse_event(event_type: string, button: number, posx: number, posy: number): void
|
|
4572
4563
|
/**
|
|
4573
4564
|
* Notify a `window` about a scroll event. A scroll signal holding the event
|
|
4574
4565
|
* coordinates will be emitted.
|
|
@@ -5324,13 +5315,13 @@ export interface GLContextClass {
|
|
|
5324
5315
|
get_gl_context: (context: GLContext) => never
|
|
5325
5316
|
get_gl_api: (context: GLContext) => GLAPI
|
|
5326
5317
|
get_gl_platform: (context: GLContext) => GLPlatform
|
|
5327
|
-
get_proc_address: (gl_api: GLAPI, name: string
|
|
5318
|
+
get_proc_address: (gl_api: GLAPI, name: string) => any
|
|
5328
5319
|
activate: (context: GLContext, activate: boolean) => boolean
|
|
5329
5320
|
choose_format: (context: GLContext) => boolean
|
|
5330
5321
|
create_context: (context: GLContext, gl_api: GLAPI, other_context: GLContext) => boolean
|
|
5331
5322
|
destroy_context: (context: GLContext) => void
|
|
5332
5323
|
swap_buffers: (context: GLContext) => void
|
|
5333
|
-
check_feature: (context: GLContext, feature: string
|
|
5324
|
+
check_feature: (context: GLContext, feature: string) => boolean
|
|
5334
5325
|
get_gl_platform_version: (context: GLContext) => [ /* major */ number, /* minor */ number ]
|
|
5335
5326
|
get_config: (context: GLContext) => Gst.Structure | null
|
|
5336
5327
|
request_config: (context: GLContext, gl_config: Gst.Structure | null) => boolean
|
package/gstgl-1.0.d.ts
CHANGED
|
@@ -522,27 +522,27 @@ enum GLSLProfile {
|
|
|
522
522
|
* An option that can be activated on bufferpools to request OpenGL
|
|
523
523
|
* synchronization metadata on buffers from the pool.
|
|
524
524
|
*/
|
|
525
|
-
const BUFFER_POOL_OPTION_GL_SYNC_META: string
|
|
525
|
+
const BUFFER_POOL_OPTION_GL_SYNC_META: string
|
|
526
526
|
/**
|
|
527
527
|
* String used for %GST_GL_TEXTURE_TARGET_2D as a #GstBufferPool pool option
|
|
528
528
|
*/
|
|
529
|
-
const BUFFER_POOL_OPTION_GL_TEXTURE_TARGET_2D: string
|
|
529
|
+
const BUFFER_POOL_OPTION_GL_TEXTURE_TARGET_2D: string
|
|
530
530
|
/**
|
|
531
531
|
* String used for %GST_GL_TEXTURE_TARGET_EXTERNAL_OES as a #GstBufferPool pool option
|
|
532
532
|
*/
|
|
533
|
-
const BUFFER_POOL_OPTION_GL_TEXTURE_TARGET_EXTERNAL_OES: string
|
|
533
|
+
const BUFFER_POOL_OPTION_GL_TEXTURE_TARGET_EXTERNAL_OES: string
|
|
534
534
|
/**
|
|
535
535
|
* String used for %GST_GL_TEXTURE_TARGET_RECTANGLE as a #GstBufferPool pool option
|
|
536
536
|
*/
|
|
537
|
-
const BUFFER_POOL_OPTION_GL_TEXTURE_TARGET_RECTANGLE: string
|
|
537
|
+
const BUFFER_POOL_OPTION_GL_TEXTURE_TARGET_RECTANGLE: string
|
|
538
538
|
/**
|
|
539
539
|
* Name of the caps feature indicating the use of GL buffers
|
|
540
540
|
*/
|
|
541
|
-
const CAPS_FEATURE_MEMORY_GL_BUFFER: string
|
|
541
|
+
const CAPS_FEATURE_MEMORY_GL_BUFFER: string
|
|
542
542
|
/**
|
|
543
543
|
* Name of the caps feature for indicating the use of #GstGLMemory
|
|
544
544
|
*/
|
|
545
|
-
const CAPS_FEATURE_MEMORY_GL_MEMORY: string
|
|
545
|
+
const CAPS_FEATURE_MEMORY_GL_MEMORY: string
|
|
546
546
|
/**
|
|
547
547
|
* GL Allocation flag indicating that the implementation should allocate the
|
|
548
548
|
* necessary resources.
|
|
@@ -572,77 +572,77 @@ const GL_ALLOCATION_PARAMS_ALLOC_FLAG_WRAP_SYSMEM: number
|
|
|
572
572
|
/**
|
|
573
573
|
* The name for %GST_GL_API_GLES1 used in various places
|
|
574
574
|
*/
|
|
575
|
-
const GL_API_GLES1_NAME: string
|
|
575
|
+
const GL_API_GLES1_NAME: string
|
|
576
576
|
/**
|
|
577
577
|
* The name for %GST_GL_API_GLES2 used in various places
|
|
578
578
|
*/
|
|
579
|
-
const GL_API_GLES2_NAME: string
|
|
579
|
+
const GL_API_GLES2_NAME: string
|
|
580
580
|
/**
|
|
581
581
|
* The name for %GST_GL_API_OPENGL3 used in various places
|
|
582
582
|
*/
|
|
583
|
-
const GL_API_OPENGL3_NAME: string
|
|
583
|
+
const GL_API_OPENGL3_NAME: string
|
|
584
584
|
/**
|
|
585
585
|
* The name for %GST_GL_API_OPENGL used in various places
|
|
586
586
|
*/
|
|
587
|
-
const GL_API_OPENGL_NAME: string
|
|
587
|
+
const GL_API_OPENGL_NAME: string
|
|
588
588
|
/**
|
|
589
589
|
* The name of the GL buffer allocator
|
|
590
590
|
*/
|
|
591
|
-
const GL_BASE_MEMORY_ALLOCATOR_NAME: string
|
|
591
|
+
const GL_BASE_MEMORY_ALLOCATOR_NAME: string
|
|
592
592
|
/**
|
|
593
593
|
* The name of the GL buffer allocator
|
|
594
594
|
*/
|
|
595
|
-
const GL_BUFFER_ALLOCATOR_NAME: string
|
|
595
|
+
const GL_BUFFER_ALLOCATOR_NAME: string
|
|
596
596
|
/**
|
|
597
597
|
* The currently supported formats that can be converted
|
|
598
598
|
*/
|
|
599
|
-
const GL_COLOR_CONVERT_FORMATS: string
|
|
599
|
+
const GL_COLOR_CONVERT_FORMATS: string
|
|
600
600
|
/**
|
|
601
601
|
* The currently supported #GstCaps that can be converted
|
|
602
602
|
*/
|
|
603
|
-
const GL_COLOR_CONVERT_VIDEO_CAPS: string
|
|
603
|
+
const GL_COLOR_CONVERT_VIDEO_CAPS: string
|
|
604
604
|
/**
|
|
605
605
|
* The canonical name of a #GstStructure that contains a configuration for a
|
|
606
606
|
* #GstGLContext.
|
|
607
607
|
*/
|
|
608
|
-
const GL_CONFIG_STRUCTURE_NAME: string
|
|
609
|
-
const GL_CONTEXT_TYPE_CGL: string
|
|
610
|
-
const GL_CONTEXT_TYPE_EAGL: string
|
|
611
|
-
const GL_CONTEXT_TYPE_EGL: string
|
|
612
|
-
const GL_CONTEXT_TYPE_GLX: string
|
|
613
|
-
const GL_CONTEXT_TYPE_WGL: string
|
|
608
|
+
const GL_CONFIG_STRUCTURE_NAME: string
|
|
609
|
+
const GL_CONTEXT_TYPE_CGL: string
|
|
610
|
+
const GL_CONTEXT_TYPE_EAGL: string
|
|
611
|
+
const GL_CONTEXT_TYPE_EGL: string
|
|
612
|
+
const GL_CONTEXT_TYPE_GLX: string
|
|
613
|
+
const GL_CONTEXT_TYPE_WGL: string
|
|
614
614
|
/**
|
|
615
615
|
* The name used in #GstContext queries for requesting a #GstGLDisplay
|
|
616
616
|
*/
|
|
617
|
-
const GL_DISPLAY_CONTEXT_TYPE: string
|
|
617
|
+
const GL_DISPLAY_CONTEXT_TYPE: string
|
|
618
618
|
/**
|
|
619
619
|
* The name of the GL memory allocator
|
|
620
620
|
*/
|
|
621
|
-
const GL_MEMORY_ALLOCATOR_NAME: string
|
|
621
|
+
const GL_MEMORY_ALLOCATOR_NAME: string
|
|
622
622
|
/**
|
|
623
623
|
* The name of the GL Memory PBO allocator
|
|
624
624
|
*/
|
|
625
|
-
const GL_MEMORY_PBO_ALLOCATOR_NAME: string
|
|
625
|
+
const GL_MEMORY_PBO_ALLOCATOR_NAME: string
|
|
626
626
|
/**
|
|
627
627
|
* List of video formats that are supported by #GstGLMemory
|
|
628
628
|
*/
|
|
629
|
-
const GL_MEMORY_VIDEO_FORMATS_STR: string
|
|
629
|
+
const GL_MEMORY_VIDEO_FORMATS_STR: string
|
|
630
630
|
/**
|
|
631
631
|
* The name of the GL renderbuffer allocator
|
|
632
632
|
*/
|
|
633
|
-
const GL_RENDERBUFFER_ALLOCATOR_NAME: string
|
|
633
|
+
const GL_RENDERBUFFER_ALLOCATOR_NAME: string
|
|
634
634
|
/**
|
|
635
635
|
* String used for %GST_GL_TEXTURE_TARGET_2D in things like caps values
|
|
636
636
|
*/
|
|
637
|
-
const GL_TEXTURE_TARGET_2D_STR: string
|
|
637
|
+
const GL_TEXTURE_TARGET_2D_STR: string
|
|
638
638
|
/**
|
|
639
639
|
* String used for %GST_GL_TEXTURE_TARGET_EXTERNAL_OES in things like caps values
|
|
640
640
|
*/
|
|
641
|
-
const GL_TEXTURE_TARGET_EXTERNAL_OES_STR: string
|
|
641
|
+
const GL_TEXTURE_TARGET_EXTERNAL_OES_STR: string
|
|
642
642
|
/**
|
|
643
643
|
* String used for %GST_GL_TEXTURE_TARGET_RECTANGLE in things like caps values
|
|
644
644
|
*/
|
|
645
|
-
const GL_TEXTURE_TARGET_RECTANGLE_STR: string
|
|
645
|
+
const GL_TEXTURE_TARGET_RECTANGLE_STR: string
|
|
646
646
|
/**
|
|
647
647
|
* Flag indicating that we should map the GL object instead of to system memory.
|
|
648
648
|
*
|
|
@@ -667,7 +667,7 @@ function context_get_gl_display(context: Gst.Context): [ /* returnType */ boolea
|
|
|
667
667
|
* @param display resulting #GstGLDisplay
|
|
668
668
|
*/
|
|
669
669
|
function context_set_gl_display(context: Gst.Context, display: GLDisplay | null): void
|
|
670
|
-
function gl_api_from_string(api_s: string
|
|
670
|
+
function gl_api_from_string(api_s: string): GLAPI
|
|
671
671
|
function gl_api_to_string(api: GLAPI): string | null
|
|
672
672
|
function gl_base_memory_alloc(allocator: GLBaseMemoryAllocator, params: GLAllocationParams): GLBaseMemory | null
|
|
673
673
|
function gl_base_memory_error_quark(): GLib.Quark
|
|
@@ -681,7 +681,7 @@ function gl_base_memory_init_once(): void
|
|
|
681
681
|
* multiple times. This must be called before any other #GstGLBuffer operation.
|
|
682
682
|
*/
|
|
683
683
|
function gl_buffer_init_once(): void
|
|
684
|
-
function gl_check_extension(name: string
|
|
684
|
+
function gl_check_extension(name: string, ext: string): boolean
|
|
685
685
|
function gl_config_caveat_to_string(caveat: GLConfigCaveat): string | null
|
|
686
686
|
function gl_config_surface_type_to_string(surface_type: GLConfigSurfaceType): string | null
|
|
687
687
|
function gl_context_error_quark(): GLib.Quark
|
|
@@ -762,7 +762,7 @@ function gl_memory_pbo_init_once(): void
|
|
|
762
762
|
* @param b another 2-dimensional 4x4 array of #gfloat
|
|
763
763
|
*/
|
|
764
764
|
function gl_multiply_matrix4(a: number[], b: number[]): /* result */ number[]
|
|
765
|
-
function gl_platform_from_string(platform_s: string
|
|
765
|
+
function gl_platform_from_string(platform_s: string): GLPlatform
|
|
766
766
|
function gl_platform_to_string(platform: GLPlatform): string | null
|
|
767
767
|
/**
|
|
768
768
|
* Performs a GST_QUERY_CONTEXT query of type "gst.gl.local_context" on all
|
|
@@ -791,7 +791,7 @@ function gl_stereo_downmix_mode_get_type(): GObject.GType
|
|
|
791
791
|
function gl_sync_meta_api_get_type(): GObject.GType
|
|
792
792
|
function gl_sync_meta_get_info(): Gst.MetaInfo
|
|
793
793
|
function gl_texture_target_from_gl(target: number): GLTextureTarget
|
|
794
|
-
function gl_texture_target_from_string(str: string
|
|
794
|
+
function gl_texture_target_from_string(str: string): GLTextureTarget
|
|
795
795
|
function gl_texture_target_to_buffer_pool_option(target: GLTextureTarget): string | null
|
|
796
796
|
function gl_texture_target_to_gl(target: GLTextureTarget): number
|
|
797
797
|
function gl_texture_target_to_string(target: GLTextureTarget): string | null
|
|
@@ -813,7 +813,7 @@ function gl_value_set_texture_target_from_mask(value: any, target_mask: GLTextur
|
|
|
813
813
|
function gl_version_to_glsl_version(gl_api: GLAPI, maj: number, min: number): GLSLVersion
|
|
814
814
|
function gl_window_error_quark(): GLib.Quark
|
|
815
815
|
function glsl_error_quark(): GLib.Quark
|
|
816
|
-
function glsl_profile_from_string(string: string
|
|
816
|
+
function glsl_profile_from_string(string: string): GLSLProfile
|
|
817
817
|
function glsl_profile_to_string(profile: GLSLProfile): string | null
|
|
818
818
|
/**
|
|
819
819
|
* Note: this function first searches the first 1 kilobytes for a `#version`
|
|
@@ -821,15 +821,15 @@ function glsl_profile_to_string(profile: GLSLProfile): string | null
|
|
|
821
821
|
* @param s string to search for a valid `#version` string
|
|
822
822
|
* @returns TRUE if a valid `#version` string was found, FALSE otherwise
|
|
823
823
|
*/
|
|
824
|
-
function glsl_string_get_version_profile(s: string
|
|
825
|
-
function glsl_version_from_string(string: string
|
|
824
|
+
function glsl_string_get_version_profile(s: string): [ /* returnType */ boolean, /* version */ GLSLVersion, /* profile */ GLSLProfile ]
|
|
825
|
+
function glsl_version_from_string(string: string): GLSLVersion
|
|
826
826
|
/**
|
|
827
827
|
* Note: this function expects either a `#version` GLSL preprocesser directive
|
|
828
828
|
* or a valid GLSL version and/or profile.
|
|
829
829
|
* @param string a valid GLSL `#version` string
|
|
830
830
|
* @returns TRUE if a valid `#version` string was found, FALSE otherwise
|
|
831
831
|
*/
|
|
832
|
-
function glsl_version_profile_from_string(string: string
|
|
832
|
+
function glsl_version_profile_from_string(string: string): [ /* returnType */ boolean, /* version_ret */ GLSLVersion, /* profile_ret */ GLSLProfile ]
|
|
833
833
|
function glsl_version_profile_to_string(version: GLSLVersion, profile: GLSLProfile): string | null
|
|
834
834
|
function glsl_version_to_string(version: GLSLVersion): string | null
|
|
835
835
|
function is_gl_base_memory(mem: Gst.Memory): boolean
|
|
@@ -1211,7 +1211,6 @@ interface GLBaseMixer {
|
|
|
1211
1211
|
|
|
1212
1212
|
// Conflicting properties
|
|
1213
1213
|
|
|
1214
|
-
start_time: any
|
|
1215
1214
|
object: any
|
|
1216
1215
|
|
|
1217
1216
|
// Own fields of GstGL-1.0.GstGL.GLBaseMixer
|
|
@@ -1442,7 +1441,6 @@ module GLBaseSrc {
|
|
|
1442
1441
|
|
|
1443
1442
|
// Own constructor properties of GstGL-1.0.GstGL.GLBaseSrc
|
|
1444
1443
|
|
|
1445
|
-
timestamp_offset?: number | null
|
|
1446
1444
|
timestampOffset?: number | null
|
|
1447
1445
|
}
|
|
1448
1446
|
|
|
@@ -1452,7 +1450,6 @@ interface GLBaseSrc {
|
|
|
1452
1450
|
|
|
1453
1451
|
// Own properties of GstGL-1.0.GstGL.GLBaseSrc
|
|
1454
1452
|
|
|
1455
|
-
timestamp_offset: number
|
|
1456
1453
|
timestampOffset: number
|
|
1457
1454
|
|
|
1458
1455
|
// Conflicting properties
|
|
@@ -2034,7 +2031,7 @@ interface GLContext {
|
|
|
2034
2031
|
* @param feature a platform specific feature
|
|
2035
2032
|
* @returns Whether @feature is supported by @context
|
|
2036
2033
|
*/
|
|
2037
|
-
check_feature(feature: string
|
|
2034
|
+
check_feature(feature: string): boolean
|
|
2038
2035
|
/**
|
|
2039
2036
|
* Must be called with `context` current.
|
|
2040
2037
|
* @param fbo_target the GL value of the framebuffer target, GL_FRAMEBUFFER, GL_READ_FRAMEBUFFER, GL_DRAW_FRAMEBUFFER
|
|
@@ -2153,7 +2150,7 @@ interface GLContext {
|
|
|
2153
2150
|
* @param name an opengl function name
|
|
2154
2151
|
* @returns a function pointer or %NULL
|
|
2155
2152
|
*/
|
|
2156
|
-
get_proc_address(name: string
|
|
2153
|
+
get_proc_address(name: string): any | null
|
|
2157
2154
|
get_thread(): GLib.Thread | null
|
|
2158
2155
|
get_window(): GLWindow | null
|
|
2159
2156
|
is_shared(): boolean
|
|
@@ -2262,7 +2259,7 @@ interface GLContext {
|
|
|
2262
2259
|
* @param feature a platform specific feature
|
|
2263
2260
|
* @returns Whether @feature is supported by @context
|
|
2264
2261
|
*/
|
|
2265
|
-
vfunc_check_feature(feature: string
|
|
2262
|
+
vfunc_check_feature(feature: string): boolean
|
|
2266
2263
|
vfunc_choose_format(): boolean
|
|
2267
2264
|
vfunc_create_context(gl_api: GLAPI, other_context: GLContext): boolean
|
|
2268
2265
|
vfunc_destroy_context(): void
|
|
@@ -2410,7 +2407,7 @@ class GLContext extends Gst.Object {
|
|
|
2410
2407
|
* @param name then function to get the address of
|
|
2411
2408
|
* @returns an address pointing to @name or %NULL
|
|
2412
2409
|
*/
|
|
2413
|
-
static default_get_proc_address(gl_api: GLAPI, name: string
|
|
2410
|
+
static default_get_proc_address(gl_api: GLAPI, name: string): any | null
|
|
2414
2411
|
/**
|
|
2415
2412
|
* See also gst_gl_context_activate().
|
|
2416
2413
|
* @returns the #GstGLContext active in the current thread or %NULL
|
|
@@ -2434,7 +2431,7 @@ class GLContext extends Gst.Object {
|
|
|
2434
2431
|
* @param name the name of the function to retrieve
|
|
2435
2432
|
* @returns a function pointer for @name, or %NULL
|
|
2436
2433
|
*/
|
|
2437
|
-
static get_proc_address_with_platform(context_type: GLPlatform, gl_api: GLAPI, name: string
|
|
2434
|
+
static get_proc_address_with_platform(context_type: GLPlatform, gl_api: GLAPI, name: string): any | null
|
|
2438
2435
|
}
|
|
2439
2436
|
|
|
2440
2437
|
module GLDisplay {
|
|
@@ -3233,7 +3230,6 @@ interface GLMixer {
|
|
|
3233
3230
|
|
|
3234
3231
|
// Conflicting properties
|
|
3235
3232
|
|
|
3236
|
-
start_time: any
|
|
3237
3233
|
object: any
|
|
3238
3234
|
|
|
3239
3235
|
// Own fields of GstGL-1.0.GstGL.GLMixer
|
|
@@ -3781,7 +3777,7 @@ class GLSLStage extends Gst.Object {
|
|
|
3781
3777
|
static new(context: GLContext, type: number): GLSLStage
|
|
3782
3778
|
static new_default_fragment(context: GLContext): GLSLStage
|
|
3783
3779
|
static new_default_vertex(context: GLContext): GLSLStage
|
|
3784
|
-
static new_with_string(context: GLContext, type: number, version: GLSLVersion, profile: GLSLProfile, str: string
|
|
3780
|
+
static new_with_string(context: GLContext, type: number, version: GLSLVersion, profile: GLSLProfile, str: string): GLSLStage
|
|
3785
3781
|
static new_with_strings(context: GLContext, type: number, version: GLSLVersion, profile: GLSLProfile, str: string[]): GLSLStage
|
|
3786
3782
|
_init(config?: GLSLStage.ConstructorProperties): void
|
|
3787
3783
|
}
|
|
@@ -3832,14 +3828,14 @@ interface GLShader {
|
|
|
3832
3828
|
* @param index attribute index to set
|
|
3833
3829
|
* @param name name of the attribute
|
|
3834
3830
|
*/
|
|
3835
|
-
bind_attribute_location(index: number, name: string
|
|
3831
|
+
bind_attribute_location(index: number, name: string): void
|
|
3836
3832
|
/**
|
|
3837
3833
|
* Bind attribute `name` to the specified location `index` using
|
|
3838
3834
|
* `glBindFragDataLocation()`.
|
|
3839
3835
|
* @param index attribute index to set
|
|
3840
3836
|
* @param name name of the attribute
|
|
3841
3837
|
*/
|
|
3842
|
-
bind_frag_data_location(index: number, name: string
|
|
3838
|
+
bind_frag_data_location(index: number, name: string): void
|
|
3843
3839
|
/**
|
|
3844
3840
|
* Compiles `stage` and attaches it to `shader`.
|
|
3845
3841
|
*
|
|
@@ -3864,7 +3860,7 @@ interface GLShader {
|
|
|
3864
3860
|
* @param stage a #GstGLSLStage to attach
|
|
3865
3861
|
*/
|
|
3866
3862
|
detach_unlocked(stage: GLSLStage): void
|
|
3867
|
-
get_attribute_location(name: string
|
|
3863
|
+
get_attribute_location(name: string): number
|
|
3868
3864
|
get_program_handle(): number
|
|
3869
3865
|
/**
|
|
3870
3866
|
* Note: must be called in the GL thread
|
|
@@ -3895,51 +3891,51 @@ interface GLShader {
|
|
|
3895
3891
|
* @param name name of the uniform
|
|
3896
3892
|
* @param value value to set
|
|
3897
3893
|
*/
|
|
3898
|
-
set_uniform_1f(name: string
|
|
3894
|
+
set_uniform_1f(name: string, value: number): void
|
|
3899
3895
|
/**
|
|
3900
3896
|
* Perform `glUniform1fv()` for `name` on `shader`
|
|
3901
3897
|
* @param name name of the uniform
|
|
3902
3898
|
* @param value values to set
|
|
3903
3899
|
*/
|
|
3904
|
-
set_uniform_1fv(name: string
|
|
3900
|
+
set_uniform_1fv(name: string, value: number[]): void
|
|
3905
3901
|
/**
|
|
3906
3902
|
* Perform `glUniform1i()` for `name` on `shader`
|
|
3907
3903
|
* @param name name of the uniform
|
|
3908
3904
|
* @param value value to set
|
|
3909
3905
|
*/
|
|
3910
|
-
set_uniform_1i(name: string
|
|
3906
|
+
set_uniform_1i(name: string, value: number): void
|
|
3911
3907
|
/**
|
|
3912
3908
|
* Perform `glUniform1iv()` for `name` on `shader`
|
|
3913
3909
|
* @param name name of the uniform
|
|
3914
3910
|
* @param value values to set
|
|
3915
3911
|
*/
|
|
3916
|
-
set_uniform_1iv(name: string
|
|
3912
|
+
set_uniform_1iv(name: string, value: number[]): void
|
|
3917
3913
|
/**
|
|
3918
3914
|
* Perform `glUniform2f()` for `name` on `shader`
|
|
3919
3915
|
* @param name name of the uniform
|
|
3920
3916
|
* @param v0 first value to set
|
|
3921
3917
|
* @param v1 second value to set
|
|
3922
3918
|
*/
|
|
3923
|
-
set_uniform_2f(name: string
|
|
3919
|
+
set_uniform_2f(name: string, v0: number, v1: number): void
|
|
3924
3920
|
/**
|
|
3925
3921
|
* Perform `glUniform2fv()` for `name` on `shader`
|
|
3926
3922
|
* @param name name of the uniform
|
|
3927
3923
|
* @param value values to set
|
|
3928
3924
|
*/
|
|
3929
|
-
set_uniform_2fv(name: string
|
|
3925
|
+
set_uniform_2fv(name: string, value: number[]): void
|
|
3930
3926
|
/**
|
|
3931
3927
|
* Perform `glUniform2i()` for `name` on `shader`
|
|
3932
3928
|
* @param name name of the uniform
|
|
3933
3929
|
* @param v0 first value to set
|
|
3934
3930
|
* @param v1 second value to set
|
|
3935
3931
|
*/
|
|
3936
|
-
set_uniform_2i(name: string
|
|
3932
|
+
set_uniform_2i(name: string, v0: number, v1: number): void
|
|
3937
3933
|
/**
|
|
3938
3934
|
* Perform `glUniform2iv()` for `name` on `shader`
|
|
3939
3935
|
* @param name name of the uniform
|
|
3940
3936
|
* @param value values to set
|
|
3941
3937
|
*/
|
|
3942
|
-
set_uniform_2iv(name: string
|
|
3938
|
+
set_uniform_2iv(name: string, value: number[]): void
|
|
3943
3939
|
/**
|
|
3944
3940
|
* Perform `glUniform3f()` for `name` on `shader`
|
|
3945
3941
|
* @param name name of the uniform
|
|
@@ -3947,13 +3943,13 @@ interface GLShader {
|
|
|
3947
3943
|
* @param v1 second value to set
|
|
3948
3944
|
* @param v2 third value to set
|
|
3949
3945
|
*/
|
|
3950
|
-
set_uniform_3f(name: string
|
|
3946
|
+
set_uniform_3f(name: string, v0: number, v1: number, v2: number): void
|
|
3951
3947
|
/**
|
|
3952
3948
|
* Perform `glUniform3fv()` for `name` on `shader`
|
|
3953
3949
|
* @param name name of the uniform
|
|
3954
3950
|
* @param value values to set
|
|
3955
3951
|
*/
|
|
3956
|
-
set_uniform_3fv(name: string
|
|
3952
|
+
set_uniform_3fv(name: string, value: number[]): void
|
|
3957
3953
|
/**
|
|
3958
3954
|
* Perform `glUniform3i()` for `name` on `shader`
|
|
3959
3955
|
* @param name name of the uniform
|
|
@@ -3961,13 +3957,13 @@ interface GLShader {
|
|
|
3961
3957
|
* @param v1 second value to set
|
|
3962
3958
|
* @param v2 third value to set
|
|
3963
3959
|
*/
|
|
3964
|
-
set_uniform_3i(name: string
|
|
3960
|
+
set_uniform_3i(name: string, v0: number, v1: number, v2: number): void
|
|
3965
3961
|
/**
|
|
3966
3962
|
* Perform `glUniform3iv()` for `name` on `shader`
|
|
3967
3963
|
* @param name name of the uniform
|
|
3968
3964
|
* @param value values to set
|
|
3969
3965
|
*/
|
|
3970
|
-
set_uniform_3iv(name: string
|
|
3966
|
+
set_uniform_3iv(name: string, value: number[]): void
|
|
3971
3967
|
/**
|
|
3972
3968
|
* Perform `glUniform4f()` for `name` on `shader`
|
|
3973
3969
|
* @param name name of the uniform
|
|
@@ -3976,13 +3972,13 @@ interface GLShader {
|
|
|
3976
3972
|
* @param v2 third value to set
|
|
3977
3973
|
* @param v3 fourth value to set
|
|
3978
3974
|
*/
|
|
3979
|
-
set_uniform_4f(name: string
|
|
3975
|
+
set_uniform_4f(name: string, v0: number, v1: number, v2: number, v3: number): void
|
|
3980
3976
|
/**
|
|
3981
3977
|
* Perform `glUniform4fv()` for `name` on `shader`
|
|
3982
3978
|
* @param name name of the uniform
|
|
3983
3979
|
* @param value values to set
|
|
3984
3980
|
*/
|
|
3985
|
-
set_uniform_4fv(name: string
|
|
3981
|
+
set_uniform_4fv(name: string, value: number[]): void
|
|
3986
3982
|
/**
|
|
3987
3983
|
* Perform `glUniform4i()` for `name` on `shader`
|
|
3988
3984
|
* @param name name of the uniform
|
|
@@ -3991,13 +3987,13 @@ interface GLShader {
|
|
|
3991
3987
|
* @param v2 third value to set
|
|
3992
3988
|
* @param v3 fourth value to set
|
|
3993
3989
|
*/
|
|
3994
|
-
set_uniform_4i(name: string
|
|
3990
|
+
set_uniform_4i(name: string, v0: number, v1: number, v2: number, v3: number): void
|
|
3995
3991
|
/**
|
|
3996
3992
|
* Perform `glUniform4iv()` for `name` on `shader`
|
|
3997
3993
|
* @param name name of the uniform
|
|
3998
3994
|
* @param value values to set
|
|
3999
3995
|
*/
|
|
4000
|
-
set_uniform_4iv(name: string
|
|
3996
|
+
set_uniform_4iv(name: string, value: number[]): void
|
|
4001
3997
|
/**
|
|
4002
3998
|
* Perform `glUniformMatrix2fv()` for `name` on `shader`
|
|
4003
3999
|
* @param name name of the uniform
|
|
@@ -4005,7 +4001,7 @@ interface GLShader {
|
|
|
4005
4001
|
* @param transpose transpose the matrix
|
|
4006
4002
|
* @param value matrix to set
|
|
4007
4003
|
*/
|
|
4008
|
-
set_uniform_matrix_2fv(name: string
|
|
4004
|
+
set_uniform_matrix_2fv(name: string, count: number, transpose: boolean, value: number): void
|
|
4009
4005
|
/**
|
|
4010
4006
|
* Perform `glUniformMatrix2x3fv()` for `name` on `shader`
|
|
4011
4007
|
* @param name name of the uniform
|
|
@@ -4013,7 +4009,7 @@ interface GLShader {
|
|
|
4013
4009
|
* @param transpose transpose the matrix
|
|
4014
4010
|
* @param value values to set
|
|
4015
4011
|
*/
|
|
4016
|
-
set_uniform_matrix_2x3fv(name: string
|
|
4012
|
+
set_uniform_matrix_2x3fv(name: string, count: number, transpose: boolean, value: number): void
|
|
4017
4013
|
/**
|
|
4018
4014
|
* Perform `glUniformMatrix2x4fv()` for `name` on `shader`
|
|
4019
4015
|
* @param name name of the uniform
|
|
@@ -4021,7 +4017,7 @@ interface GLShader {
|
|
|
4021
4017
|
* @param transpose transpose the matrix
|
|
4022
4018
|
* @param value values to set
|
|
4023
4019
|
*/
|
|
4024
|
-
set_uniform_matrix_2x4fv(name: string
|
|
4020
|
+
set_uniform_matrix_2x4fv(name: string, count: number, transpose: boolean, value: number): void
|
|
4025
4021
|
/**
|
|
4026
4022
|
* Perform `glUniformMatrix3fv()` for `name` on `shader`
|
|
4027
4023
|
* @param name name of the uniform
|
|
@@ -4029,7 +4025,7 @@ interface GLShader {
|
|
|
4029
4025
|
* @param transpose transpose the matrix
|
|
4030
4026
|
* @param value values to set
|
|
4031
4027
|
*/
|
|
4032
|
-
set_uniform_matrix_3fv(name: string
|
|
4028
|
+
set_uniform_matrix_3fv(name: string, count: number, transpose: boolean, value: number): void
|
|
4033
4029
|
/**
|
|
4034
4030
|
* Perform `glUniformMatrix3x2fv()` for `name` on `shader`
|
|
4035
4031
|
* @param name name of the uniform
|
|
@@ -4037,7 +4033,7 @@ interface GLShader {
|
|
|
4037
4033
|
* @param transpose transpose the matrix
|
|
4038
4034
|
* @param value values to set
|
|
4039
4035
|
*/
|
|
4040
|
-
set_uniform_matrix_3x2fv(name: string
|
|
4036
|
+
set_uniform_matrix_3x2fv(name: string, count: number, transpose: boolean, value: number): void
|
|
4041
4037
|
/**
|
|
4042
4038
|
* Perform `glUniformMatrix3x4fv()` for `name` on `shader`
|
|
4043
4039
|
* @param name name of the uniform
|
|
@@ -4045,7 +4041,7 @@ interface GLShader {
|
|
|
4045
4041
|
* @param transpose transpose the matrix
|
|
4046
4042
|
* @param value values to set
|
|
4047
4043
|
*/
|
|
4048
|
-
set_uniform_matrix_3x4fv(name: string
|
|
4044
|
+
set_uniform_matrix_3x4fv(name: string, count: number, transpose: boolean, value: number): void
|
|
4049
4045
|
/**
|
|
4050
4046
|
* Perform `glUniformMatrix4fv()` for `name` on `shader`
|
|
4051
4047
|
* @param name name of the uniform
|
|
@@ -4053,7 +4049,7 @@ interface GLShader {
|
|
|
4053
4049
|
* @param transpose transpose the matrix
|
|
4054
4050
|
* @param value values to set
|
|
4055
4051
|
*/
|
|
4056
|
-
set_uniform_matrix_4fv(name: string
|
|
4052
|
+
set_uniform_matrix_4fv(name: string, count: number, transpose: boolean, value: number): void
|
|
4057
4053
|
/**
|
|
4058
4054
|
* Perform `glUniformMatrix4x2fv()` for `name` on `shader`
|
|
4059
4055
|
* @param name name of the uniform
|
|
@@ -4061,7 +4057,7 @@ interface GLShader {
|
|
|
4061
4057
|
* @param transpose transpose the matrix
|
|
4062
4058
|
* @param value values to set
|
|
4063
4059
|
*/
|
|
4064
|
-
set_uniform_matrix_4x2fv(name: string
|
|
4060
|
+
set_uniform_matrix_4x2fv(name: string, count: number, transpose: boolean, value: number): void
|
|
4065
4061
|
/**
|
|
4066
4062
|
* Perform `glUniformMatrix4x3fv()` for `name` on `shader`
|
|
4067
4063
|
* @param name name of the uniform
|
|
@@ -4069,7 +4065,7 @@ interface GLShader {
|
|
|
4069
4065
|
* @param transpose transpose the matrix
|
|
4070
4066
|
* @param value values to set
|
|
4071
4067
|
*/
|
|
4072
|
-
set_uniform_matrix_4x3fv(name: string
|
|
4068
|
+
set_uniform_matrix_4x3fv(name: string, count: number, transpose: boolean, value: number): void
|
|
4073
4069
|
/**
|
|
4074
4070
|
* Mark's `shader` as being used for the next GL draw command.
|
|
4075
4071
|
*
|
|
@@ -4172,7 +4168,7 @@ class GLShader extends Gst.Object {
|
|
|
4172
4168
|
* @param profile a #GstGLSLProfile
|
|
4173
4169
|
* @returns a shader string defining the precision of float types based on @context, @version and @profile
|
|
4174
4170
|
*/
|
|
4175
|
-
static string_get_highest_precision(context: GLContext, version: GLSLVersion, profile: GLSLProfile): string
|
|
4171
|
+
static string_get_highest_precision(context: GLContext, version: GLSLVersion, profile: GLSLProfile): string
|
|
4176
4172
|
}
|
|
4177
4173
|
|
|
4178
4174
|
module GLUpload {
|
|
@@ -4292,11 +4288,6 @@ module GLViewConvert {
|
|
|
4292
4288
|
|
|
4293
4289
|
// Own constructor properties of GstGL-1.0.GstGL.GLViewConvert
|
|
4294
4290
|
|
|
4295
|
-
downmix_mode?: GLStereoDownmix | null
|
|
4296
|
-
input_flags_override?: GstVideo.VideoMultiviewFlags | null
|
|
4297
|
-
input_mode_override?: GstVideo.VideoMultiviewMode | null
|
|
4298
|
-
output_flags_override?: GstVideo.VideoMultiviewFlags | null
|
|
4299
|
-
output_mode_override?: GstVideo.VideoMultiviewMode | null
|
|
4300
4291
|
downmixMode?: GLStereoDownmix | null
|
|
4301
4292
|
inputFlagsOverride?: GstVideo.VideoMultiviewFlags | null
|
|
4302
4293
|
inputModeOverride?: GstVideo.VideoMultiviewMode | null
|
|
@@ -4557,7 +4548,7 @@ interface GLWindow {
|
|
|
4557
4548
|
* Start the execution of the runloop.
|
|
4558
4549
|
*/
|
|
4559
4550
|
run(): void
|
|
4560
|
-
send_key_event(event_type: string
|
|
4551
|
+
send_key_event(event_type: string, key_str: string): void
|
|
4561
4552
|
/**
|
|
4562
4553
|
* Invoke `callback` with data on the window thread. `callback` is guaranteed to
|
|
4563
4554
|
* have executed when this function returns.
|
|
@@ -4570,7 +4561,7 @@ interface GLWindow {
|
|
|
4570
4561
|
* @param callback function to invoke
|
|
4571
4562
|
*/
|
|
4572
4563
|
send_message_async(callback: GLWindowCB): void
|
|
4573
|
-
send_mouse_event(event_type: string
|
|
4564
|
+
send_mouse_event(event_type: string, button: number, posx: number, posy: number): void
|
|
4574
4565
|
/**
|
|
4575
4566
|
* Notify a `window` about a scroll event. A scroll signal holding the event
|
|
4576
4567
|
* coordinates will be emitted.
|
|
@@ -5326,13 +5317,13 @@ interface GLContextClass {
|
|
|
5326
5317
|
get_gl_context: (context: GLContext) => never
|
|
5327
5318
|
get_gl_api: (context: GLContext) => GLAPI
|
|
5328
5319
|
get_gl_platform: (context: GLContext) => GLPlatform
|
|
5329
|
-
get_proc_address: (gl_api: GLAPI, name: string
|
|
5320
|
+
get_proc_address: (gl_api: GLAPI, name: string) => any
|
|
5330
5321
|
activate: (context: GLContext, activate: boolean) => boolean
|
|
5331
5322
|
choose_format: (context: GLContext) => boolean
|
|
5332
5323
|
create_context: (context: GLContext, gl_api: GLAPI, other_context: GLContext) => boolean
|
|
5333
5324
|
destroy_context: (context: GLContext) => void
|
|
5334
5325
|
swap_buffers: (context: GLContext) => void
|
|
5335
|
-
check_feature: (context: GLContext, feature: string
|
|
5326
|
+
check_feature: (context: GLContext, feature: string) => boolean
|
|
5336
5327
|
get_gl_platform_version: (context: GLContext) => [ /* major */ number, /* minor */ number ]
|
|
5337
5328
|
get_config: (context: GLContext) => Gst.Structure | null
|
|
5338
5329
|
request_config: (context: GLContext, gl_config: Gst.Structure | null) => boolean
|
package/package.json
CHANGED
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/gstgl-1.0",
|
|
3
|
-
"version": "1.0.0-3.2.
|
|
3
|
+
"version": "1.0.0-3.2.8",
|
|
4
4
|
"description": "GJS TypeScript type definitions for GstGL-1.0, generated from library version 1.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "gstgl-1.0.js",
|
|
7
7
|
"main": "gstgl-1.0.js",
|
|
8
8
|
"exports": {
|
|
9
|
-
"./ambient":
|
|
10
|
-
|
|
9
|
+
"./ambient": {
|
|
10
|
+
"types": "./gstgl-1.0-ambient.d.ts",
|
|
11
|
+
"default": "./gstgl-1.0-ambient.js"
|
|
12
|
+
},
|
|
13
|
+
"./import": {
|
|
14
|
+
"types": "./gstgl-1.0-import.d.ts",
|
|
15
|
+
"default": "./gstgl-1.0-import.js"
|
|
16
|
+
},
|
|
11
17
|
".": {
|
|
12
18
|
"import": {
|
|
13
19
|
"types": "./gstgl-1.0.d.ts",
|
|
@@ -25,13 +31,13 @@
|
|
|
25
31
|
"test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit gstgl-1.0.d.cts"
|
|
26
32
|
},
|
|
27
33
|
"dependencies": {
|
|
28
|
-
"@girs/gjs": "^3.2.
|
|
29
|
-
"@girs/glib-2.0": "^2.
|
|
30
|
-
"@girs/gmodule-2.0": "^2.0.0-3.2.
|
|
31
|
-
"@girs/gobject-2.0": "^2.
|
|
32
|
-
"@girs/gst-1.0": "^1.23.0-3.2.
|
|
33
|
-
"@girs/gstbase-1.0": "^1.0.0-3.2.
|
|
34
|
-
"@girs/gstvideo-1.0": "^1.0.0-3.2.
|
|
34
|
+
"@girs/gjs": "^3.2.8",
|
|
35
|
+
"@girs/glib-2.0": "^2.77.0-3.2.8",
|
|
36
|
+
"@girs/gmodule-2.0": "^2.0.0-3.2.8",
|
|
37
|
+
"@girs/gobject-2.0": "^2.77.0-3.2.8",
|
|
38
|
+
"@girs/gst-1.0": "^1.23.0-3.2.8",
|
|
39
|
+
"@girs/gstbase-1.0": "^1.0.0-3.2.8",
|
|
40
|
+
"@girs/gstvideo-1.0": "^1.0.0-3.2.8"
|
|
35
41
|
},
|
|
36
42
|
"devDependencies": {
|
|
37
43
|
"typescript": "*"
|
|
@@ -48,7 +54,7 @@
|
|
|
48
54
|
"license": "MIT",
|
|
49
55
|
"repository": {
|
|
50
56
|
"type": "git",
|
|
51
|
-
"url": "git+https://github.com/gjsify/
|
|
57
|
+
"url": "git+https://github.com/gjsify/ts-for-gir.git"
|
|
52
58
|
},
|
|
53
59
|
"bugs": {
|
|
54
60
|
"url": "https://github.com/gjsify/ts-for-gir/issues"
|