@girs/gstgl-1.0 1.0.0-3.2.5 → 1.0.0-3.2.7
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.d.cts +108 -75
- package/gstgl-1.0.d.ts +108 -75
- package/package.json +8 -8
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.7.
|
|
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
|
|
@@ -1441,6 +1441,7 @@ export module GLBaseSrc {
|
|
|
1441
1441
|
// Own constructor properties of GstGL-1.0.GstGL.GLBaseSrc
|
|
1442
1442
|
|
|
1443
1443
|
timestamp_offset?: number | null
|
|
1444
|
+
timestampOffset?: number | null
|
|
1444
1445
|
}
|
|
1445
1446
|
|
|
1446
1447
|
}
|
|
@@ -1450,6 +1451,7 @@ export interface GLBaseSrc {
|
|
|
1450
1451
|
// Own properties of GstGL-1.0.GstGL.GLBaseSrc
|
|
1451
1452
|
|
|
1452
1453
|
timestamp_offset: number
|
|
1454
|
+
timestampOffset: number
|
|
1453
1455
|
|
|
1454
1456
|
// Conflicting properties
|
|
1455
1457
|
|
|
@@ -1593,6 +1595,9 @@ export interface GLBaseSrc {
|
|
|
1593
1595
|
connect(sigName: "notify::do-timestamp", callback: (($obj: GLBaseSrc, pspec: GObject.ParamSpec) => void)): number
|
|
1594
1596
|
connect_after(sigName: "notify::do-timestamp", callback: (($obj: GLBaseSrc, pspec: GObject.ParamSpec) => void)): number
|
|
1595
1597
|
emit(sigName: "notify::do-timestamp", ...args: any[]): void
|
|
1598
|
+
connect(sigName: "notify::num-buffers", callback: (($obj: GLBaseSrc, pspec: GObject.ParamSpec) => void)): number
|
|
1599
|
+
connect_after(sigName: "notify::num-buffers", callback: (($obj: GLBaseSrc, pspec: GObject.ParamSpec) => void)): number
|
|
1600
|
+
emit(sigName: "notify::num-buffers", ...args: any[]): void
|
|
1596
1601
|
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
1597
1602
|
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
1598
1603
|
emit(sigName: string, ...args: any[]): void
|
|
@@ -2027,7 +2032,7 @@ export interface GLContext {
|
|
|
2027
2032
|
* @param feature a platform specific feature
|
|
2028
2033
|
* @returns Whether @feature is supported by @context
|
|
2029
2034
|
*/
|
|
2030
|
-
check_feature(feature: string
|
|
2035
|
+
check_feature(feature: string): boolean
|
|
2031
2036
|
/**
|
|
2032
2037
|
* Must be called with `context` current.
|
|
2033
2038
|
* @param fbo_target the GL value of the framebuffer target, GL_FRAMEBUFFER, GL_READ_FRAMEBUFFER, GL_DRAW_FRAMEBUFFER
|
|
@@ -2146,7 +2151,7 @@ export interface GLContext {
|
|
|
2146
2151
|
* @param name an opengl function name
|
|
2147
2152
|
* @returns a function pointer or %NULL
|
|
2148
2153
|
*/
|
|
2149
|
-
get_proc_address(name: string
|
|
2154
|
+
get_proc_address(name: string): any | null
|
|
2150
2155
|
get_thread(): GLib.Thread | null
|
|
2151
2156
|
get_window(): GLWindow | null
|
|
2152
2157
|
is_shared(): boolean
|
|
@@ -2255,7 +2260,7 @@ export interface GLContext {
|
|
|
2255
2260
|
* @param feature a platform specific feature
|
|
2256
2261
|
* @returns Whether @feature is supported by @context
|
|
2257
2262
|
*/
|
|
2258
|
-
vfunc_check_feature(feature: string
|
|
2263
|
+
vfunc_check_feature(feature: string): boolean
|
|
2259
2264
|
vfunc_choose_format(): boolean
|
|
2260
2265
|
vfunc_create_context(gl_api: GLAPI, other_context: GLContext): boolean
|
|
2261
2266
|
vfunc_destroy_context(): void
|
|
@@ -2403,7 +2408,7 @@ export class GLContext extends Gst.Object {
|
|
|
2403
2408
|
* @param name then function to get the address of
|
|
2404
2409
|
* @returns an address pointing to @name or %NULL
|
|
2405
2410
|
*/
|
|
2406
|
-
static default_get_proc_address(gl_api: GLAPI, name: string
|
|
2411
|
+
static default_get_proc_address(gl_api: GLAPI, name: string): any | null
|
|
2407
2412
|
/**
|
|
2408
2413
|
* See also gst_gl_context_activate().
|
|
2409
2414
|
* @returns the #GstGLContext active in the current thread or %NULL
|
|
@@ -2427,7 +2432,7 @@ export class GLContext extends Gst.Object {
|
|
|
2427
2432
|
* @param name the name of the function to retrieve
|
|
2428
2433
|
* @returns a function pointer for @name, or %NULL
|
|
2429
2434
|
*/
|
|
2430
|
-
static get_proc_address_with_platform(context_type: GLPlatform, gl_api: GLAPI, name: string
|
|
2435
|
+
static get_proc_address_with_platform(context_type: GLPlatform, gl_api: GLAPI, name: string): any | null
|
|
2431
2436
|
}
|
|
2432
2437
|
|
|
2433
2438
|
export module GLDisplay {
|
|
@@ -3774,7 +3779,7 @@ export class GLSLStage extends Gst.Object {
|
|
|
3774
3779
|
static new(context: GLContext, type: number): GLSLStage
|
|
3775
3780
|
static new_default_fragment(context: GLContext): GLSLStage
|
|
3776
3781
|
static new_default_vertex(context: GLContext): GLSLStage
|
|
3777
|
-
static new_with_string(context: GLContext, type: number, version: GLSLVersion, profile: GLSLProfile, str: string
|
|
3782
|
+
static new_with_string(context: GLContext, type: number, version: GLSLVersion, profile: GLSLProfile, str: string): GLSLStage
|
|
3778
3783
|
static new_with_strings(context: GLContext, type: number, version: GLSLVersion, profile: GLSLProfile, str: string[]): GLSLStage
|
|
3779
3784
|
_init(config?: GLSLStage.ConstructorProperties): void
|
|
3780
3785
|
}
|
|
@@ -3825,14 +3830,14 @@ export interface GLShader {
|
|
|
3825
3830
|
* @param index attribute index to set
|
|
3826
3831
|
* @param name name of the attribute
|
|
3827
3832
|
*/
|
|
3828
|
-
bind_attribute_location(index: number, name: string
|
|
3833
|
+
bind_attribute_location(index: number, name: string): void
|
|
3829
3834
|
/**
|
|
3830
3835
|
* Bind attribute `name` to the specified location `index` using
|
|
3831
3836
|
* `glBindFragDataLocation()`.
|
|
3832
3837
|
* @param index attribute index to set
|
|
3833
3838
|
* @param name name of the attribute
|
|
3834
3839
|
*/
|
|
3835
|
-
bind_frag_data_location(index: number, name: string
|
|
3840
|
+
bind_frag_data_location(index: number, name: string): void
|
|
3836
3841
|
/**
|
|
3837
3842
|
* Compiles `stage` and attaches it to `shader`.
|
|
3838
3843
|
*
|
|
@@ -3857,7 +3862,7 @@ export interface GLShader {
|
|
|
3857
3862
|
* @param stage a #GstGLSLStage to attach
|
|
3858
3863
|
*/
|
|
3859
3864
|
detach_unlocked(stage: GLSLStage): void
|
|
3860
|
-
get_attribute_location(name: string
|
|
3865
|
+
get_attribute_location(name: string): number
|
|
3861
3866
|
get_program_handle(): number
|
|
3862
3867
|
/**
|
|
3863
3868
|
* Note: must be called in the GL thread
|
|
@@ -3888,51 +3893,51 @@ export interface GLShader {
|
|
|
3888
3893
|
* @param name name of the uniform
|
|
3889
3894
|
* @param value value to set
|
|
3890
3895
|
*/
|
|
3891
|
-
set_uniform_1f(name: string
|
|
3896
|
+
set_uniform_1f(name: string, value: number): void
|
|
3892
3897
|
/**
|
|
3893
3898
|
* Perform `glUniform1fv()` for `name` on `shader`
|
|
3894
3899
|
* @param name name of the uniform
|
|
3895
3900
|
* @param value values to set
|
|
3896
3901
|
*/
|
|
3897
|
-
set_uniform_1fv(name: string
|
|
3902
|
+
set_uniform_1fv(name: string, value: number[]): void
|
|
3898
3903
|
/**
|
|
3899
3904
|
* Perform `glUniform1i()` for `name` on `shader`
|
|
3900
3905
|
* @param name name of the uniform
|
|
3901
3906
|
* @param value value to set
|
|
3902
3907
|
*/
|
|
3903
|
-
set_uniform_1i(name: string
|
|
3908
|
+
set_uniform_1i(name: string, value: number): void
|
|
3904
3909
|
/**
|
|
3905
3910
|
* Perform `glUniform1iv()` for `name` on `shader`
|
|
3906
3911
|
* @param name name of the uniform
|
|
3907
3912
|
* @param value values to set
|
|
3908
3913
|
*/
|
|
3909
|
-
set_uniform_1iv(name: string
|
|
3914
|
+
set_uniform_1iv(name: string, value: number[]): void
|
|
3910
3915
|
/**
|
|
3911
3916
|
* Perform `glUniform2f()` for `name` on `shader`
|
|
3912
3917
|
* @param name name of the uniform
|
|
3913
3918
|
* @param v0 first value to set
|
|
3914
3919
|
* @param v1 second value to set
|
|
3915
3920
|
*/
|
|
3916
|
-
set_uniform_2f(name: string
|
|
3921
|
+
set_uniform_2f(name: string, v0: number, v1: number): void
|
|
3917
3922
|
/**
|
|
3918
3923
|
* Perform `glUniform2fv()` for `name` on `shader`
|
|
3919
3924
|
* @param name name of the uniform
|
|
3920
3925
|
* @param value values to set
|
|
3921
3926
|
*/
|
|
3922
|
-
set_uniform_2fv(name: string
|
|
3927
|
+
set_uniform_2fv(name: string, value: number[]): void
|
|
3923
3928
|
/**
|
|
3924
3929
|
* Perform `glUniform2i()` for `name` on `shader`
|
|
3925
3930
|
* @param name name of the uniform
|
|
3926
3931
|
* @param v0 first value to set
|
|
3927
3932
|
* @param v1 second value to set
|
|
3928
3933
|
*/
|
|
3929
|
-
set_uniform_2i(name: string
|
|
3934
|
+
set_uniform_2i(name: string, v0: number, v1: number): void
|
|
3930
3935
|
/**
|
|
3931
3936
|
* Perform `glUniform2iv()` for `name` on `shader`
|
|
3932
3937
|
* @param name name of the uniform
|
|
3933
3938
|
* @param value values to set
|
|
3934
3939
|
*/
|
|
3935
|
-
set_uniform_2iv(name: string
|
|
3940
|
+
set_uniform_2iv(name: string, value: number[]): void
|
|
3936
3941
|
/**
|
|
3937
3942
|
* Perform `glUniform3f()` for `name` on `shader`
|
|
3938
3943
|
* @param name name of the uniform
|
|
@@ -3940,13 +3945,13 @@ export interface GLShader {
|
|
|
3940
3945
|
* @param v1 second value to set
|
|
3941
3946
|
* @param v2 third value to set
|
|
3942
3947
|
*/
|
|
3943
|
-
set_uniform_3f(name: string
|
|
3948
|
+
set_uniform_3f(name: string, v0: number, v1: number, v2: number): void
|
|
3944
3949
|
/**
|
|
3945
3950
|
* Perform `glUniform3fv()` for `name` on `shader`
|
|
3946
3951
|
* @param name name of the uniform
|
|
3947
3952
|
* @param value values to set
|
|
3948
3953
|
*/
|
|
3949
|
-
set_uniform_3fv(name: string
|
|
3954
|
+
set_uniform_3fv(name: string, value: number[]): void
|
|
3950
3955
|
/**
|
|
3951
3956
|
* Perform `glUniform3i()` for `name` on `shader`
|
|
3952
3957
|
* @param name name of the uniform
|
|
@@ -3954,13 +3959,13 @@ export interface GLShader {
|
|
|
3954
3959
|
* @param v1 second value to set
|
|
3955
3960
|
* @param v2 third value to set
|
|
3956
3961
|
*/
|
|
3957
|
-
set_uniform_3i(name: string
|
|
3962
|
+
set_uniform_3i(name: string, v0: number, v1: number, v2: number): void
|
|
3958
3963
|
/**
|
|
3959
3964
|
* Perform `glUniform3iv()` for `name` on `shader`
|
|
3960
3965
|
* @param name name of the uniform
|
|
3961
3966
|
* @param value values to set
|
|
3962
3967
|
*/
|
|
3963
|
-
set_uniform_3iv(name: string
|
|
3968
|
+
set_uniform_3iv(name: string, value: number[]): void
|
|
3964
3969
|
/**
|
|
3965
3970
|
* Perform `glUniform4f()` for `name` on `shader`
|
|
3966
3971
|
* @param name name of the uniform
|
|
@@ -3969,13 +3974,13 @@ export interface GLShader {
|
|
|
3969
3974
|
* @param v2 third value to set
|
|
3970
3975
|
* @param v3 fourth value to set
|
|
3971
3976
|
*/
|
|
3972
|
-
set_uniform_4f(name: string
|
|
3977
|
+
set_uniform_4f(name: string, v0: number, v1: number, v2: number, v3: number): void
|
|
3973
3978
|
/**
|
|
3974
3979
|
* Perform `glUniform4fv()` for `name` on `shader`
|
|
3975
3980
|
* @param name name of the uniform
|
|
3976
3981
|
* @param value values to set
|
|
3977
3982
|
*/
|
|
3978
|
-
set_uniform_4fv(name: string
|
|
3983
|
+
set_uniform_4fv(name: string, value: number[]): void
|
|
3979
3984
|
/**
|
|
3980
3985
|
* Perform `glUniform4i()` for `name` on `shader`
|
|
3981
3986
|
* @param name name of the uniform
|
|
@@ -3984,13 +3989,13 @@ export interface GLShader {
|
|
|
3984
3989
|
* @param v2 third value to set
|
|
3985
3990
|
* @param v3 fourth value to set
|
|
3986
3991
|
*/
|
|
3987
|
-
set_uniform_4i(name: string
|
|
3992
|
+
set_uniform_4i(name: string, v0: number, v1: number, v2: number, v3: number): void
|
|
3988
3993
|
/**
|
|
3989
3994
|
* Perform `glUniform4iv()` for `name` on `shader`
|
|
3990
3995
|
* @param name name of the uniform
|
|
3991
3996
|
* @param value values to set
|
|
3992
3997
|
*/
|
|
3993
|
-
set_uniform_4iv(name: string
|
|
3998
|
+
set_uniform_4iv(name: string, value: number[]): void
|
|
3994
3999
|
/**
|
|
3995
4000
|
* Perform `glUniformMatrix2fv()` for `name` on `shader`
|
|
3996
4001
|
* @param name name of the uniform
|
|
@@ -3998,7 +4003,7 @@ export interface GLShader {
|
|
|
3998
4003
|
* @param transpose transpose the matrix
|
|
3999
4004
|
* @param value matrix to set
|
|
4000
4005
|
*/
|
|
4001
|
-
set_uniform_matrix_2fv(name: string
|
|
4006
|
+
set_uniform_matrix_2fv(name: string, count: number, transpose: boolean, value: number): void
|
|
4002
4007
|
/**
|
|
4003
4008
|
* Perform `glUniformMatrix2x3fv()` for `name` on `shader`
|
|
4004
4009
|
* @param name name of the uniform
|
|
@@ -4006,7 +4011,7 @@ export interface GLShader {
|
|
|
4006
4011
|
* @param transpose transpose the matrix
|
|
4007
4012
|
* @param value values to set
|
|
4008
4013
|
*/
|
|
4009
|
-
set_uniform_matrix_2x3fv(name: string
|
|
4014
|
+
set_uniform_matrix_2x3fv(name: string, count: number, transpose: boolean, value: number): void
|
|
4010
4015
|
/**
|
|
4011
4016
|
* Perform `glUniformMatrix2x4fv()` for `name` on `shader`
|
|
4012
4017
|
* @param name name of the uniform
|
|
@@ -4014,7 +4019,7 @@ export interface GLShader {
|
|
|
4014
4019
|
* @param transpose transpose the matrix
|
|
4015
4020
|
* @param value values to set
|
|
4016
4021
|
*/
|
|
4017
|
-
set_uniform_matrix_2x4fv(name: string
|
|
4022
|
+
set_uniform_matrix_2x4fv(name: string, count: number, transpose: boolean, value: number): void
|
|
4018
4023
|
/**
|
|
4019
4024
|
* Perform `glUniformMatrix3fv()` for `name` on `shader`
|
|
4020
4025
|
* @param name name of the uniform
|
|
@@ -4022,7 +4027,7 @@ export interface GLShader {
|
|
|
4022
4027
|
* @param transpose transpose the matrix
|
|
4023
4028
|
* @param value values to set
|
|
4024
4029
|
*/
|
|
4025
|
-
set_uniform_matrix_3fv(name: string
|
|
4030
|
+
set_uniform_matrix_3fv(name: string, count: number, transpose: boolean, value: number): void
|
|
4026
4031
|
/**
|
|
4027
4032
|
* Perform `glUniformMatrix3x2fv()` for `name` on `shader`
|
|
4028
4033
|
* @param name name of the uniform
|
|
@@ -4030,7 +4035,7 @@ export interface GLShader {
|
|
|
4030
4035
|
* @param transpose transpose the matrix
|
|
4031
4036
|
* @param value values to set
|
|
4032
4037
|
*/
|
|
4033
|
-
set_uniform_matrix_3x2fv(name: string
|
|
4038
|
+
set_uniform_matrix_3x2fv(name: string, count: number, transpose: boolean, value: number): void
|
|
4034
4039
|
/**
|
|
4035
4040
|
* Perform `glUniformMatrix3x4fv()` for `name` on `shader`
|
|
4036
4041
|
* @param name name of the uniform
|
|
@@ -4038,7 +4043,7 @@ export interface GLShader {
|
|
|
4038
4043
|
* @param transpose transpose the matrix
|
|
4039
4044
|
* @param value values to set
|
|
4040
4045
|
*/
|
|
4041
|
-
set_uniform_matrix_3x4fv(name: string
|
|
4046
|
+
set_uniform_matrix_3x4fv(name: string, count: number, transpose: boolean, value: number): void
|
|
4042
4047
|
/**
|
|
4043
4048
|
* Perform `glUniformMatrix4fv()` for `name` on `shader`
|
|
4044
4049
|
* @param name name of the uniform
|
|
@@ -4046,7 +4051,7 @@ export interface GLShader {
|
|
|
4046
4051
|
* @param transpose transpose the matrix
|
|
4047
4052
|
* @param value values to set
|
|
4048
4053
|
*/
|
|
4049
|
-
set_uniform_matrix_4fv(name: string
|
|
4054
|
+
set_uniform_matrix_4fv(name: string, count: number, transpose: boolean, value: number): void
|
|
4050
4055
|
/**
|
|
4051
4056
|
* Perform `glUniformMatrix4x2fv()` for `name` on `shader`
|
|
4052
4057
|
* @param name name of the uniform
|
|
@@ -4054,7 +4059,7 @@ export interface GLShader {
|
|
|
4054
4059
|
* @param transpose transpose the matrix
|
|
4055
4060
|
* @param value values to set
|
|
4056
4061
|
*/
|
|
4057
|
-
set_uniform_matrix_4x2fv(name: string
|
|
4062
|
+
set_uniform_matrix_4x2fv(name: string, count: number, transpose: boolean, value: number): void
|
|
4058
4063
|
/**
|
|
4059
4064
|
* Perform `glUniformMatrix4x3fv()` for `name` on `shader`
|
|
4060
4065
|
* @param name name of the uniform
|
|
@@ -4062,7 +4067,7 @@ export interface GLShader {
|
|
|
4062
4067
|
* @param transpose transpose the matrix
|
|
4063
4068
|
* @param value values to set
|
|
4064
4069
|
*/
|
|
4065
|
-
set_uniform_matrix_4x3fv(name: string
|
|
4070
|
+
set_uniform_matrix_4x3fv(name: string, count: number, transpose: boolean, value: number): void
|
|
4066
4071
|
/**
|
|
4067
4072
|
* Mark's `shader` as being used for the next GL draw command.
|
|
4068
4073
|
*
|
|
@@ -4165,7 +4170,7 @@ export class GLShader extends Gst.Object {
|
|
|
4165
4170
|
* @param profile a #GstGLSLProfile
|
|
4166
4171
|
* @returns a shader string defining the precision of float types based on @context, @version and @profile
|
|
4167
4172
|
*/
|
|
4168
|
-
static string_get_highest_precision(context: GLContext, version: GLSLVersion, profile: GLSLProfile): string
|
|
4173
|
+
static string_get_highest_precision(context: GLContext, version: GLSLVersion, profile: GLSLProfile): string
|
|
4169
4174
|
}
|
|
4170
4175
|
|
|
4171
4176
|
export module GLUpload {
|
|
@@ -4290,12 +4295,25 @@ export module GLViewConvert {
|
|
|
4290
4295
|
input_mode_override?: GstVideo.VideoMultiviewMode | null
|
|
4291
4296
|
output_flags_override?: GstVideo.VideoMultiviewFlags | null
|
|
4292
4297
|
output_mode_override?: GstVideo.VideoMultiviewMode | null
|
|
4298
|
+
downmixMode?: GLStereoDownmix | null
|
|
4299
|
+
inputFlagsOverride?: GstVideo.VideoMultiviewFlags | null
|
|
4300
|
+
inputModeOverride?: GstVideo.VideoMultiviewMode | null
|
|
4301
|
+
outputFlagsOverride?: GstVideo.VideoMultiviewFlags | null
|
|
4302
|
+
outputModeOverride?: GstVideo.VideoMultiviewMode | null
|
|
4293
4303
|
}
|
|
4294
4304
|
|
|
4295
4305
|
}
|
|
4296
4306
|
|
|
4297
4307
|
export interface GLViewConvert {
|
|
4298
4308
|
|
|
4309
|
+
// Own properties of GstGL-1.0.GstGL.GLViewConvert
|
|
4310
|
+
|
|
4311
|
+
downmixMode: GLStereoDownmix
|
|
4312
|
+
inputFlagsOverride: GstVideo.VideoMultiviewFlags
|
|
4313
|
+
inputModeOverride: GstVideo.VideoMultiviewMode
|
|
4314
|
+
outputFlagsOverride: GstVideo.VideoMultiviewFlags
|
|
4315
|
+
outputModeOverride: GstVideo.VideoMultiviewMode
|
|
4316
|
+
|
|
4299
4317
|
// Own fields of GstGL-1.0.GstGL.GLViewConvert
|
|
4300
4318
|
|
|
4301
4319
|
object: any
|
|
@@ -4408,6 +4426,21 @@ export interface GLViewConvert {
|
|
|
4408
4426
|
|
|
4409
4427
|
// Class property signals of GstGL-1.0.GstGL.GLViewConvert
|
|
4410
4428
|
|
|
4429
|
+
connect(sigName: "notify::downmix-mode", callback: (($obj: GLViewConvert, pspec: GObject.ParamSpec) => void)): number
|
|
4430
|
+
connect_after(sigName: "notify::downmix-mode", callback: (($obj: GLViewConvert, pspec: GObject.ParamSpec) => void)): number
|
|
4431
|
+
emit(sigName: "notify::downmix-mode", ...args: any[]): void
|
|
4432
|
+
connect(sigName: "notify::input-flags-override", callback: (($obj: GLViewConvert, pspec: GObject.ParamSpec) => void)): number
|
|
4433
|
+
connect_after(sigName: "notify::input-flags-override", callback: (($obj: GLViewConvert, pspec: GObject.ParamSpec) => void)): number
|
|
4434
|
+
emit(sigName: "notify::input-flags-override", ...args: any[]): void
|
|
4435
|
+
connect(sigName: "notify::input-mode-override", callback: (($obj: GLViewConvert, pspec: GObject.ParamSpec) => void)): number
|
|
4436
|
+
connect_after(sigName: "notify::input-mode-override", callback: (($obj: GLViewConvert, pspec: GObject.ParamSpec) => void)): number
|
|
4437
|
+
emit(sigName: "notify::input-mode-override", ...args: any[]): void
|
|
4438
|
+
connect(sigName: "notify::output-flags-override", callback: (($obj: GLViewConvert, pspec: GObject.ParamSpec) => void)): number
|
|
4439
|
+
connect_after(sigName: "notify::output-flags-override", callback: (($obj: GLViewConvert, pspec: GObject.ParamSpec) => void)): number
|
|
4440
|
+
emit(sigName: "notify::output-flags-override", ...args: any[]): void
|
|
4441
|
+
connect(sigName: "notify::output-mode-override", callback: (($obj: GLViewConvert, pspec: GObject.ParamSpec) => void)): number
|
|
4442
|
+
connect_after(sigName: "notify::output-mode-override", callback: (($obj: GLViewConvert, pspec: GObject.ParamSpec) => void)): number
|
|
4443
|
+
emit(sigName: "notify::output-mode-override", ...args: any[]): void
|
|
4411
4444
|
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
4412
4445
|
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
4413
4446
|
emit(sigName: string, ...args: any[]): void
|
|
@@ -4522,7 +4555,7 @@ export interface GLWindow {
|
|
|
4522
4555
|
* Start the execution of the runloop.
|
|
4523
4556
|
*/
|
|
4524
4557
|
run(): void
|
|
4525
|
-
send_key_event(event_type: string
|
|
4558
|
+
send_key_event(event_type: string, key_str: string): void
|
|
4526
4559
|
/**
|
|
4527
4560
|
* Invoke `callback` with data on the window thread. `callback` is guaranteed to
|
|
4528
4561
|
* have executed when this function returns.
|
|
@@ -4535,7 +4568,7 @@ export interface GLWindow {
|
|
|
4535
4568
|
* @param callback function to invoke
|
|
4536
4569
|
*/
|
|
4537
4570
|
send_message_async(callback: GLWindowCB): void
|
|
4538
|
-
send_mouse_event(event_type: string
|
|
4571
|
+
send_mouse_event(event_type: string, button: number, posx: number, posy: number): void
|
|
4539
4572
|
/**
|
|
4540
4573
|
* Notify a `window` about a scroll event. A scroll signal holding the event
|
|
4541
4574
|
* coordinates will be emitted.
|
|
@@ -5291,13 +5324,13 @@ export interface GLContextClass {
|
|
|
5291
5324
|
get_gl_context: (context: GLContext) => never
|
|
5292
5325
|
get_gl_api: (context: GLContext) => GLAPI
|
|
5293
5326
|
get_gl_platform: (context: GLContext) => GLPlatform
|
|
5294
|
-
get_proc_address: (gl_api: GLAPI, name: string
|
|
5327
|
+
get_proc_address: (gl_api: GLAPI, name: string) => any
|
|
5295
5328
|
activate: (context: GLContext, activate: boolean) => boolean
|
|
5296
5329
|
choose_format: (context: GLContext) => boolean
|
|
5297
5330
|
create_context: (context: GLContext, gl_api: GLAPI, other_context: GLContext) => boolean
|
|
5298
5331
|
destroy_context: (context: GLContext) => void
|
|
5299
5332
|
swap_buffers: (context: GLContext) => void
|
|
5300
|
-
check_feature: (context: GLContext, feature: string
|
|
5333
|
+
check_feature: (context: GLContext, feature: string) => boolean
|
|
5301
5334
|
get_gl_platform_version: (context: GLContext) => [ /* major */ number, /* minor */ number ]
|
|
5302
5335
|
get_config: (context: GLContext) => Gst.Structure | null
|
|
5303
5336
|
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
|
|
@@ -1443,6 +1443,7 @@ module GLBaseSrc {
|
|
|
1443
1443
|
// Own constructor properties of GstGL-1.0.GstGL.GLBaseSrc
|
|
1444
1444
|
|
|
1445
1445
|
timestamp_offset?: number | null
|
|
1446
|
+
timestampOffset?: number | null
|
|
1446
1447
|
}
|
|
1447
1448
|
|
|
1448
1449
|
}
|
|
@@ -1452,6 +1453,7 @@ interface GLBaseSrc {
|
|
|
1452
1453
|
// Own properties of GstGL-1.0.GstGL.GLBaseSrc
|
|
1453
1454
|
|
|
1454
1455
|
timestamp_offset: number
|
|
1456
|
+
timestampOffset: number
|
|
1455
1457
|
|
|
1456
1458
|
// Conflicting properties
|
|
1457
1459
|
|
|
@@ -1595,6 +1597,9 @@ interface GLBaseSrc {
|
|
|
1595
1597
|
connect(sigName: "notify::do-timestamp", callback: (($obj: GLBaseSrc, pspec: GObject.ParamSpec) => void)): number
|
|
1596
1598
|
connect_after(sigName: "notify::do-timestamp", callback: (($obj: GLBaseSrc, pspec: GObject.ParamSpec) => void)): number
|
|
1597
1599
|
emit(sigName: "notify::do-timestamp", ...args: any[]): void
|
|
1600
|
+
connect(sigName: "notify::num-buffers", callback: (($obj: GLBaseSrc, pspec: GObject.ParamSpec) => void)): number
|
|
1601
|
+
connect_after(sigName: "notify::num-buffers", callback: (($obj: GLBaseSrc, pspec: GObject.ParamSpec) => void)): number
|
|
1602
|
+
emit(sigName: "notify::num-buffers", ...args: any[]): void
|
|
1598
1603
|
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
1599
1604
|
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
1600
1605
|
emit(sigName: string, ...args: any[]): void
|
|
@@ -2029,7 +2034,7 @@ interface GLContext {
|
|
|
2029
2034
|
* @param feature a platform specific feature
|
|
2030
2035
|
* @returns Whether @feature is supported by @context
|
|
2031
2036
|
*/
|
|
2032
|
-
check_feature(feature: string
|
|
2037
|
+
check_feature(feature: string): boolean
|
|
2033
2038
|
/**
|
|
2034
2039
|
* Must be called with `context` current.
|
|
2035
2040
|
* @param fbo_target the GL value of the framebuffer target, GL_FRAMEBUFFER, GL_READ_FRAMEBUFFER, GL_DRAW_FRAMEBUFFER
|
|
@@ -2148,7 +2153,7 @@ interface GLContext {
|
|
|
2148
2153
|
* @param name an opengl function name
|
|
2149
2154
|
* @returns a function pointer or %NULL
|
|
2150
2155
|
*/
|
|
2151
|
-
get_proc_address(name: string
|
|
2156
|
+
get_proc_address(name: string): any | null
|
|
2152
2157
|
get_thread(): GLib.Thread | null
|
|
2153
2158
|
get_window(): GLWindow | null
|
|
2154
2159
|
is_shared(): boolean
|
|
@@ -2257,7 +2262,7 @@ interface GLContext {
|
|
|
2257
2262
|
* @param feature a platform specific feature
|
|
2258
2263
|
* @returns Whether @feature is supported by @context
|
|
2259
2264
|
*/
|
|
2260
|
-
vfunc_check_feature(feature: string
|
|
2265
|
+
vfunc_check_feature(feature: string): boolean
|
|
2261
2266
|
vfunc_choose_format(): boolean
|
|
2262
2267
|
vfunc_create_context(gl_api: GLAPI, other_context: GLContext): boolean
|
|
2263
2268
|
vfunc_destroy_context(): void
|
|
@@ -2405,7 +2410,7 @@ class GLContext extends Gst.Object {
|
|
|
2405
2410
|
* @param name then function to get the address of
|
|
2406
2411
|
* @returns an address pointing to @name or %NULL
|
|
2407
2412
|
*/
|
|
2408
|
-
static default_get_proc_address(gl_api: GLAPI, name: string
|
|
2413
|
+
static default_get_proc_address(gl_api: GLAPI, name: string): any | null
|
|
2409
2414
|
/**
|
|
2410
2415
|
* See also gst_gl_context_activate().
|
|
2411
2416
|
* @returns the #GstGLContext active in the current thread or %NULL
|
|
@@ -2429,7 +2434,7 @@ class GLContext extends Gst.Object {
|
|
|
2429
2434
|
* @param name the name of the function to retrieve
|
|
2430
2435
|
* @returns a function pointer for @name, or %NULL
|
|
2431
2436
|
*/
|
|
2432
|
-
static get_proc_address_with_platform(context_type: GLPlatform, gl_api: GLAPI, name: string
|
|
2437
|
+
static get_proc_address_with_platform(context_type: GLPlatform, gl_api: GLAPI, name: string): any | null
|
|
2433
2438
|
}
|
|
2434
2439
|
|
|
2435
2440
|
module GLDisplay {
|
|
@@ -3776,7 +3781,7 @@ class GLSLStage extends Gst.Object {
|
|
|
3776
3781
|
static new(context: GLContext, type: number): GLSLStage
|
|
3777
3782
|
static new_default_fragment(context: GLContext): GLSLStage
|
|
3778
3783
|
static new_default_vertex(context: GLContext): GLSLStage
|
|
3779
|
-
static new_with_string(context: GLContext, type: number, version: GLSLVersion, profile: GLSLProfile, str: string
|
|
3784
|
+
static new_with_string(context: GLContext, type: number, version: GLSLVersion, profile: GLSLProfile, str: string): GLSLStage
|
|
3780
3785
|
static new_with_strings(context: GLContext, type: number, version: GLSLVersion, profile: GLSLProfile, str: string[]): GLSLStage
|
|
3781
3786
|
_init(config?: GLSLStage.ConstructorProperties): void
|
|
3782
3787
|
}
|
|
@@ -3827,14 +3832,14 @@ interface GLShader {
|
|
|
3827
3832
|
* @param index attribute index to set
|
|
3828
3833
|
* @param name name of the attribute
|
|
3829
3834
|
*/
|
|
3830
|
-
bind_attribute_location(index: number, name: string
|
|
3835
|
+
bind_attribute_location(index: number, name: string): void
|
|
3831
3836
|
/**
|
|
3832
3837
|
* Bind attribute `name` to the specified location `index` using
|
|
3833
3838
|
* `glBindFragDataLocation()`.
|
|
3834
3839
|
* @param index attribute index to set
|
|
3835
3840
|
* @param name name of the attribute
|
|
3836
3841
|
*/
|
|
3837
|
-
bind_frag_data_location(index: number, name: string
|
|
3842
|
+
bind_frag_data_location(index: number, name: string): void
|
|
3838
3843
|
/**
|
|
3839
3844
|
* Compiles `stage` and attaches it to `shader`.
|
|
3840
3845
|
*
|
|
@@ -3859,7 +3864,7 @@ interface GLShader {
|
|
|
3859
3864
|
* @param stage a #GstGLSLStage to attach
|
|
3860
3865
|
*/
|
|
3861
3866
|
detach_unlocked(stage: GLSLStage): void
|
|
3862
|
-
get_attribute_location(name: string
|
|
3867
|
+
get_attribute_location(name: string): number
|
|
3863
3868
|
get_program_handle(): number
|
|
3864
3869
|
/**
|
|
3865
3870
|
* Note: must be called in the GL thread
|
|
@@ -3890,51 +3895,51 @@ interface GLShader {
|
|
|
3890
3895
|
* @param name name of the uniform
|
|
3891
3896
|
* @param value value to set
|
|
3892
3897
|
*/
|
|
3893
|
-
set_uniform_1f(name: string
|
|
3898
|
+
set_uniform_1f(name: string, value: number): void
|
|
3894
3899
|
/**
|
|
3895
3900
|
* Perform `glUniform1fv()` for `name` on `shader`
|
|
3896
3901
|
* @param name name of the uniform
|
|
3897
3902
|
* @param value values to set
|
|
3898
3903
|
*/
|
|
3899
|
-
set_uniform_1fv(name: string
|
|
3904
|
+
set_uniform_1fv(name: string, value: number[]): void
|
|
3900
3905
|
/**
|
|
3901
3906
|
* Perform `glUniform1i()` for `name` on `shader`
|
|
3902
3907
|
* @param name name of the uniform
|
|
3903
3908
|
* @param value value to set
|
|
3904
3909
|
*/
|
|
3905
|
-
set_uniform_1i(name: string
|
|
3910
|
+
set_uniform_1i(name: string, value: number): void
|
|
3906
3911
|
/**
|
|
3907
3912
|
* Perform `glUniform1iv()` for `name` on `shader`
|
|
3908
3913
|
* @param name name of the uniform
|
|
3909
3914
|
* @param value values to set
|
|
3910
3915
|
*/
|
|
3911
|
-
set_uniform_1iv(name: string
|
|
3916
|
+
set_uniform_1iv(name: string, value: number[]): void
|
|
3912
3917
|
/**
|
|
3913
3918
|
* Perform `glUniform2f()` for `name` on `shader`
|
|
3914
3919
|
* @param name name of the uniform
|
|
3915
3920
|
* @param v0 first value to set
|
|
3916
3921
|
* @param v1 second value to set
|
|
3917
3922
|
*/
|
|
3918
|
-
set_uniform_2f(name: string
|
|
3923
|
+
set_uniform_2f(name: string, v0: number, v1: number): void
|
|
3919
3924
|
/**
|
|
3920
3925
|
* Perform `glUniform2fv()` for `name` on `shader`
|
|
3921
3926
|
* @param name name of the uniform
|
|
3922
3927
|
* @param value values to set
|
|
3923
3928
|
*/
|
|
3924
|
-
set_uniform_2fv(name: string
|
|
3929
|
+
set_uniform_2fv(name: string, value: number[]): void
|
|
3925
3930
|
/**
|
|
3926
3931
|
* Perform `glUniform2i()` for `name` on `shader`
|
|
3927
3932
|
* @param name name of the uniform
|
|
3928
3933
|
* @param v0 first value to set
|
|
3929
3934
|
* @param v1 second value to set
|
|
3930
3935
|
*/
|
|
3931
|
-
set_uniform_2i(name: string
|
|
3936
|
+
set_uniform_2i(name: string, v0: number, v1: number): void
|
|
3932
3937
|
/**
|
|
3933
3938
|
* Perform `glUniform2iv()` for `name` on `shader`
|
|
3934
3939
|
* @param name name of the uniform
|
|
3935
3940
|
* @param value values to set
|
|
3936
3941
|
*/
|
|
3937
|
-
set_uniform_2iv(name: string
|
|
3942
|
+
set_uniform_2iv(name: string, value: number[]): void
|
|
3938
3943
|
/**
|
|
3939
3944
|
* Perform `glUniform3f()` for `name` on `shader`
|
|
3940
3945
|
* @param name name of the uniform
|
|
@@ -3942,13 +3947,13 @@ interface GLShader {
|
|
|
3942
3947
|
* @param v1 second value to set
|
|
3943
3948
|
* @param v2 third value to set
|
|
3944
3949
|
*/
|
|
3945
|
-
set_uniform_3f(name: string
|
|
3950
|
+
set_uniform_3f(name: string, v0: number, v1: number, v2: number): void
|
|
3946
3951
|
/**
|
|
3947
3952
|
* Perform `glUniform3fv()` for `name` on `shader`
|
|
3948
3953
|
* @param name name of the uniform
|
|
3949
3954
|
* @param value values to set
|
|
3950
3955
|
*/
|
|
3951
|
-
set_uniform_3fv(name: string
|
|
3956
|
+
set_uniform_3fv(name: string, value: number[]): void
|
|
3952
3957
|
/**
|
|
3953
3958
|
* Perform `glUniform3i()` for `name` on `shader`
|
|
3954
3959
|
* @param name name of the uniform
|
|
@@ -3956,13 +3961,13 @@ interface GLShader {
|
|
|
3956
3961
|
* @param v1 second value to set
|
|
3957
3962
|
* @param v2 third value to set
|
|
3958
3963
|
*/
|
|
3959
|
-
set_uniform_3i(name: string
|
|
3964
|
+
set_uniform_3i(name: string, v0: number, v1: number, v2: number): void
|
|
3960
3965
|
/**
|
|
3961
3966
|
* Perform `glUniform3iv()` for `name` on `shader`
|
|
3962
3967
|
* @param name name of the uniform
|
|
3963
3968
|
* @param value values to set
|
|
3964
3969
|
*/
|
|
3965
|
-
set_uniform_3iv(name: string
|
|
3970
|
+
set_uniform_3iv(name: string, value: number[]): void
|
|
3966
3971
|
/**
|
|
3967
3972
|
* Perform `glUniform4f()` for `name` on `shader`
|
|
3968
3973
|
* @param name name of the uniform
|
|
@@ -3971,13 +3976,13 @@ interface GLShader {
|
|
|
3971
3976
|
* @param v2 third value to set
|
|
3972
3977
|
* @param v3 fourth value to set
|
|
3973
3978
|
*/
|
|
3974
|
-
set_uniform_4f(name: string
|
|
3979
|
+
set_uniform_4f(name: string, v0: number, v1: number, v2: number, v3: number): void
|
|
3975
3980
|
/**
|
|
3976
3981
|
* Perform `glUniform4fv()` for `name` on `shader`
|
|
3977
3982
|
* @param name name of the uniform
|
|
3978
3983
|
* @param value values to set
|
|
3979
3984
|
*/
|
|
3980
|
-
set_uniform_4fv(name: string
|
|
3985
|
+
set_uniform_4fv(name: string, value: number[]): void
|
|
3981
3986
|
/**
|
|
3982
3987
|
* Perform `glUniform4i()` for `name` on `shader`
|
|
3983
3988
|
* @param name name of the uniform
|
|
@@ -3986,13 +3991,13 @@ interface GLShader {
|
|
|
3986
3991
|
* @param v2 third value to set
|
|
3987
3992
|
* @param v3 fourth value to set
|
|
3988
3993
|
*/
|
|
3989
|
-
set_uniform_4i(name: string
|
|
3994
|
+
set_uniform_4i(name: string, v0: number, v1: number, v2: number, v3: number): void
|
|
3990
3995
|
/**
|
|
3991
3996
|
* Perform `glUniform4iv()` for `name` on `shader`
|
|
3992
3997
|
* @param name name of the uniform
|
|
3993
3998
|
* @param value values to set
|
|
3994
3999
|
*/
|
|
3995
|
-
set_uniform_4iv(name: string
|
|
4000
|
+
set_uniform_4iv(name: string, value: number[]): void
|
|
3996
4001
|
/**
|
|
3997
4002
|
* Perform `glUniformMatrix2fv()` for `name` on `shader`
|
|
3998
4003
|
* @param name name of the uniform
|
|
@@ -4000,7 +4005,7 @@ interface GLShader {
|
|
|
4000
4005
|
* @param transpose transpose the matrix
|
|
4001
4006
|
* @param value matrix to set
|
|
4002
4007
|
*/
|
|
4003
|
-
set_uniform_matrix_2fv(name: string
|
|
4008
|
+
set_uniform_matrix_2fv(name: string, count: number, transpose: boolean, value: number): void
|
|
4004
4009
|
/**
|
|
4005
4010
|
* Perform `glUniformMatrix2x3fv()` for `name` on `shader`
|
|
4006
4011
|
* @param name name of the uniform
|
|
@@ -4008,7 +4013,7 @@ interface GLShader {
|
|
|
4008
4013
|
* @param transpose transpose the matrix
|
|
4009
4014
|
* @param value values to set
|
|
4010
4015
|
*/
|
|
4011
|
-
set_uniform_matrix_2x3fv(name: string
|
|
4016
|
+
set_uniform_matrix_2x3fv(name: string, count: number, transpose: boolean, value: number): void
|
|
4012
4017
|
/**
|
|
4013
4018
|
* Perform `glUniformMatrix2x4fv()` for `name` on `shader`
|
|
4014
4019
|
* @param name name of the uniform
|
|
@@ -4016,7 +4021,7 @@ interface GLShader {
|
|
|
4016
4021
|
* @param transpose transpose the matrix
|
|
4017
4022
|
* @param value values to set
|
|
4018
4023
|
*/
|
|
4019
|
-
set_uniform_matrix_2x4fv(name: string
|
|
4024
|
+
set_uniform_matrix_2x4fv(name: string, count: number, transpose: boolean, value: number): void
|
|
4020
4025
|
/**
|
|
4021
4026
|
* Perform `glUniformMatrix3fv()` for `name` on `shader`
|
|
4022
4027
|
* @param name name of the uniform
|
|
@@ -4024,7 +4029,7 @@ interface GLShader {
|
|
|
4024
4029
|
* @param transpose transpose the matrix
|
|
4025
4030
|
* @param value values to set
|
|
4026
4031
|
*/
|
|
4027
|
-
set_uniform_matrix_3fv(name: string
|
|
4032
|
+
set_uniform_matrix_3fv(name: string, count: number, transpose: boolean, value: number): void
|
|
4028
4033
|
/**
|
|
4029
4034
|
* Perform `glUniformMatrix3x2fv()` for `name` on `shader`
|
|
4030
4035
|
* @param name name of the uniform
|
|
@@ -4032,7 +4037,7 @@ interface GLShader {
|
|
|
4032
4037
|
* @param transpose transpose the matrix
|
|
4033
4038
|
* @param value values to set
|
|
4034
4039
|
*/
|
|
4035
|
-
set_uniform_matrix_3x2fv(name: string
|
|
4040
|
+
set_uniform_matrix_3x2fv(name: string, count: number, transpose: boolean, value: number): void
|
|
4036
4041
|
/**
|
|
4037
4042
|
* Perform `glUniformMatrix3x4fv()` for `name` on `shader`
|
|
4038
4043
|
* @param name name of the uniform
|
|
@@ -4040,7 +4045,7 @@ interface GLShader {
|
|
|
4040
4045
|
* @param transpose transpose the matrix
|
|
4041
4046
|
* @param value values to set
|
|
4042
4047
|
*/
|
|
4043
|
-
set_uniform_matrix_3x4fv(name: string
|
|
4048
|
+
set_uniform_matrix_3x4fv(name: string, count: number, transpose: boolean, value: number): void
|
|
4044
4049
|
/**
|
|
4045
4050
|
* Perform `glUniformMatrix4fv()` for `name` on `shader`
|
|
4046
4051
|
* @param name name of the uniform
|
|
@@ -4048,7 +4053,7 @@ interface GLShader {
|
|
|
4048
4053
|
* @param transpose transpose the matrix
|
|
4049
4054
|
* @param value values to set
|
|
4050
4055
|
*/
|
|
4051
|
-
set_uniform_matrix_4fv(name: string
|
|
4056
|
+
set_uniform_matrix_4fv(name: string, count: number, transpose: boolean, value: number): void
|
|
4052
4057
|
/**
|
|
4053
4058
|
* Perform `glUniformMatrix4x2fv()` for `name` on `shader`
|
|
4054
4059
|
* @param name name of the uniform
|
|
@@ -4056,7 +4061,7 @@ interface GLShader {
|
|
|
4056
4061
|
* @param transpose transpose the matrix
|
|
4057
4062
|
* @param value values to set
|
|
4058
4063
|
*/
|
|
4059
|
-
set_uniform_matrix_4x2fv(name: string
|
|
4064
|
+
set_uniform_matrix_4x2fv(name: string, count: number, transpose: boolean, value: number): void
|
|
4060
4065
|
/**
|
|
4061
4066
|
* Perform `glUniformMatrix4x3fv()` for `name` on `shader`
|
|
4062
4067
|
* @param name name of the uniform
|
|
@@ -4064,7 +4069,7 @@ interface GLShader {
|
|
|
4064
4069
|
* @param transpose transpose the matrix
|
|
4065
4070
|
* @param value values to set
|
|
4066
4071
|
*/
|
|
4067
|
-
set_uniform_matrix_4x3fv(name: string
|
|
4072
|
+
set_uniform_matrix_4x3fv(name: string, count: number, transpose: boolean, value: number): void
|
|
4068
4073
|
/**
|
|
4069
4074
|
* Mark's `shader` as being used for the next GL draw command.
|
|
4070
4075
|
*
|
|
@@ -4167,7 +4172,7 @@ class GLShader extends Gst.Object {
|
|
|
4167
4172
|
* @param profile a #GstGLSLProfile
|
|
4168
4173
|
* @returns a shader string defining the precision of float types based on @context, @version and @profile
|
|
4169
4174
|
*/
|
|
4170
|
-
static string_get_highest_precision(context: GLContext, version: GLSLVersion, profile: GLSLProfile): string
|
|
4175
|
+
static string_get_highest_precision(context: GLContext, version: GLSLVersion, profile: GLSLProfile): string
|
|
4171
4176
|
}
|
|
4172
4177
|
|
|
4173
4178
|
module GLUpload {
|
|
@@ -4292,12 +4297,25 @@ module GLViewConvert {
|
|
|
4292
4297
|
input_mode_override?: GstVideo.VideoMultiviewMode | null
|
|
4293
4298
|
output_flags_override?: GstVideo.VideoMultiviewFlags | null
|
|
4294
4299
|
output_mode_override?: GstVideo.VideoMultiviewMode | null
|
|
4300
|
+
downmixMode?: GLStereoDownmix | null
|
|
4301
|
+
inputFlagsOverride?: GstVideo.VideoMultiviewFlags | null
|
|
4302
|
+
inputModeOverride?: GstVideo.VideoMultiviewMode | null
|
|
4303
|
+
outputFlagsOverride?: GstVideo.VideoMultiviewFlags | null
|
|
4304
|
+
outputModeOverride?: GstVideo.VideoMultiviewMode | null
|
|
4295
4305
|
}
|
|
4296
4306
|
|
|
4297
4307
|
}
|
|
4298
4308
|
|
|
4299
4309
|
interface GLViewConvert {
|
|
4300
4310
|
|
|
4311
|
+
// Own properties of GstGL-1.0.GstGL.GLViewConvert
|
|
4312
|
+
|
|
4313
|
+
downmixMode: GLStereoDownmix
|
|
4314
|
+
inputFlagsOverride: GstVideo.VideoMultiviewFlags
|
|
4315
|
+
inputModeOverride: GstVideo.VideoMultiviewMode
|
|
4316
|
+
outputFlagsOverride: GstVideo.VideoMultiviewFlags
|
|
4317
|
+
outputModeOverride: GstVideo.VideoMultiviewMode
|
|
4318
|
+
|
|
4301
4319
|
// Own fields of GstGL-1.0.GstGL.GLViewConvert
|
|
4302
4320
|
|
|
4303
4321
|
object: any
|
|
@@ -4410,6 +4428,21 @@ interface GLViewConvert {
|
|
|
4410
4428
|
|
|
4411
4429
|
// Class property signals of GstGL-1.0.GstGL.GLViewConvert
|
|
4412
4430
|
|
|
4431
|
+
connect(sigName: "notify::downmix-mode", callback: (($obj: GLViewConvert, pspec: GObject.ParamSpec) => void)): number
|
|
4432
|
+
connect_after(sigName: "notify::downmix-mode", callback: (($obj: GLViewConvert, pspec: GObject.ParamSpec) => void)): number
|
|
4433
|
+
emit(sigName: "notify::downmix-mode", ...args: any[]): void
|
|
4434
|
+
connect(sigName: "notify::input-flags-override", callback: (($obj: GLViewConvert, pspec: GObject.ParamSpec) => void)): number
|
|
4435
|
+
connect_after(sigName: "notify::input-flags-override", callback: (($obj: GLViewConvert, pspec: GObject.ParamSpec) => void)): number
|
|
4436
|
+
emit(sigName: "notify::input-flags-override", ...args: any[]): void
|
|
4437
|
+
connect(sigName: "notify::input-mode-override", callback: (($obj: GLViewConvert, pspec: GObject.ParamSpec) => void)): number
|
|
4438
|
+
connect_after(sigName: "notify::input-mode-override", callback: (($obj: GLViewConvert, pspec: GObject.ParamSpec) => void)): number
|
|
4439
|
+
emit(sigName: "notify::input-mode-override", ...args: any[]): void
|
|
4440
|
+
connect(sigName: "notify::output-flags-override", callback: (($obj: GLViewConvert, pspec: GObject.ParamSpec) => void)): number
|
|
4441
|
+
connect_after(sigName: "notify::output-flags-override", callback: (($obj: GLViewConvert, pspec: GObject.ParamSpec) => void)): number
|
|
4442
|
+
emit(sigName: "notify::output-flags-override", ...args: any[]): void
|
|
4443
|
+
connect(sigName: "notify::output-mode-override", callback: (($obj: GLViewConvert, pspec: GObject.ParamSpec) => void)): number
|
|
4444
|
+
connect_after(sigName: "notify::output-mode-override", callback: (($obj: GLViewConvert, pspec: GObject.ParamSpec) => void)): number
|
|
4445
|
+
emit(sigName: "notify::output-mode-override", ...args: any[]): void
|
|
4413
4446
|
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
4414
4447
|
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
4415
4448
|
emit(sigName: string, ...args: any[]): void
|
|
@@ -4524,7 +4557,7 @@ interface GLWindow {
|
|
|
4524
4557
|
* Start the execution of the runloop.
|
|
4525
4558
|
*/
|
|
4526
4559
|
run(): void
|
|
4527
|
-
send_key_event(event_type: string
|
|
4560
|
+
send_key_event(event_type: string, key_str: string): void
|
|
4528
4561
|
/**
|
|
4529
4562
|
* Invoke `callback` with data on the window thread. `callback` is guaranteed to
|
|
4530
4563
|
* have executed when this function returns.
|
|
@@ -4537,7 +4570,7 @@ interface GLWindow {
|
|
|
4537
4570
|
* @param callback function to invoke
|
|
4538
4571
|
*/
|
|
4539
4572
|
send_message_async(callback: GLWindowCB): void
|
|
4540
|
-
send_mouse_event(event_type: string
|
|
4573
|
+
send_mouse_event(event_type: string, button: number, posx: number, posy: number): void
|
|
4541
4574
|
/**
|
|
4542
4575
|
* Notify a `window` about a scroll event. A scroll signal holding the event
|
|
4543
4576
|
* coordinates will be emitted.
|
|
@@ -5293,13 +5326,13 @@ interface GLContextClass {
|
|
|
5293
5326
|
get_gl_context: (context: GLContext) => never
|
|
5294
5327
|
get_gl_api: (context: GLContext) => GLAPI
|
|
5295
5328
|
get_gl_platform: (context: GLContext) => GLPlatform
|
|
5296
|
-
get_proc_address: (gl_api: GLAPI, name: string
|
|
5329
|
+
get_proc_address: (gl_api: GLAPI, name: string) => any
|
|
5297
5330
|
activate: (context: GLContext, activate: boolean) => boolean
|
|
5298
5331
|
choose_format: (context: GLContext) => boolean
|
|
5299
5332
|
create_context: (context: GLContext, gl_api: GLAPI, other_context: GLContext) => boolean
|
|
5300
5333
|
destroy_context: (context: GLContext) => void
|
|
5301
5334
|
swap_buffers: (context: GLContext) => void
|
|
5302
|
-
check_feature: (context: GLContext, feature: string
|
|
5335
|
+
check_feature: (context: GLContext, feature: string) => boolean
|
|
5303
5336
|
get_gl_platform_version: (context: GLContext) => [ /* major */ number, /* minor */ number ]
|
|
5304
5337
|
get_config: (context: GLContext) => Gst.Structure | null
|
|
5305
5338
|
request_config: (context: GLContext, gl_config: Gst.Structure | null) => boolean
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/gstgl-1.0",
|
|
3
|
-
"version": "1.0.0-3.2.
|
|
3
|
+
"version": "1.0.0-3.2.7",
|
|
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",
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
"test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit gstgl-1.0.d.cts"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@girs/gjs": "^3.2.
|
|
29
|
-
"@girs/glib-2.0": "^2.78.0-3.2.
|
|
30
|
-
"@girs/gmodule-2.0": "^2.0.0-3.2.
|
|
31
|
-
"@girs/gobject-2.0": "^2.78.0-3.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.
|
|
28
|
+
"@girs/gjs": "^3.2.7",
|
|
29
|
+
"@girs/glib-2.0": "^2.78.0-3.2.7",
|
|
30
|
+
"@girs/gmodule-2.0": "^2.0.0-3.2.7",
|
|
31
|
+
"@girs/gobject-2.0": "^2.78.0-3.2.7",
|
|
32
|
+
"@girs/gst-1.0": "^1.23.0-3.2.7",
|
|
33
|
+
"@girs/gstbase-1.0": "^1.0.0-3.2.7",
|
|
34
|
+
"@girs/gstvideo-1.0": "^1.0.0-3.2.7"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"typescript": "*"
|