@viji-dev/core 0.2.20 → 0.3.1

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.
@@ -224,6 +224,131 @@ export const shaderUniforms = {
224
224
  "category": "Video",
225
225
  "description": "Video frame rate in frames per second"
226
226
  },
227
+ "u_streamCount": {
228
+ "type": "int",
229
+ "category": "Video",
230
+ "description": "Number of available compositor input streams (0-8)"
231
+ },
232
+ "u_stream0": {
233
+ "type": "sampler2D",
234
+ "category": "Video",
235
+ "description": "Stream 0 texture"
236
+ },
237
+ "u_stream1": {
238
+ "type": "sampler2D",
239
+ "category": "Video",
240
+ "description": "Stream 1 texture"
241
+ },
242
+ "u_stream2": {
243
+ "type": "sampler2D",
244
+ "category": "Video",
245
+ "description": "Stream 2 texture"
246
+ },
247
+ "u_stream3": {
248
+ "type": "sampler2D",
249
+ "category": "Video",
250
+ "description": "Stream 3 texture"
251
+ },
252
+ "u_stream4": {
253
+ "type": "sampler2D",
254
+ "category": "Video",
255
+ "description": "Stream 4 texture"
256
+ },
257
+ "u_stream5": {
258
+ "type": "sampler2D",
259
+ "category": "Video",
260
+ "description": "Stream 5 texture"
261
+ },
262
+ "u_stream6": {
263
+ "type": "sampler2D",
264
+ "category": "Video",
265
+ "description": "Stream 6 texture"
266
+ },
267
+ "u_stream7": {
268
+ "type": "sampler2D",
269
+ "category": "Video",
270
+ "description": "Stream 7 texture"
271
+ },
272
+ "u_stream0Resolution": {
273
+ "type": "vec2",
274
+ "category": "Video",
275
+ "description": "Stream 0 resolution"
276
+ },
277
+ "u_stream1Resolution": {
278
+ "type": "vec2",
279
+ "category": "Video",
280
+ "description": "Stream 1 resolution"
281
+ },
282
+ "u_stream2Resolution": {
283
+ "type": "vec2",
284
+ "category": "Video",
285
+ "description": "Stream 2 resolution"
286
+ },
287
+ "u_stream3Resolution": {
288
+ "type": "vec2",
289
+ "category": "Video",
290
+ "description": "Stream 3 resolution"
291
+ },
292
+ "u_stream4Resolution": {
293
+ "type": "vec2",
294
+ "category": "Video",
295
+ "description": "Stream 4 resolution"
296
+ },
297
+ "u_stream5Resolution": {
298
+ "type": "vec2",
299
+ "category": "Video",
300
+ "description": "Stream 5 resolution"
301
+ },
302
+ "u_stream6Resolution": {
303
+ "type": "vec2",
304
+ "category": "Video",
305
+ "description": "Stream 6 resolution"
306
+ },
307
+ "u_stream7Resolution": {
308
+ "type": "vec2",
309
+ "category": "Video",
310
+ "description": "Stream 7 resolution"
311
+ },
312
+ "u_stream0Connected": {
313
+ "type": "bool",
314
+ "category": "Video",
315
+ "description": "Stream 0 connection status"
316
+ },
317
+ "u_stream1Connected": {
318
+ "type": "bool",
319
+ "category": "Video",
320
+ "description": "Stream 1 connection status"
321
+ },
322
+ "u_stream2Connected": {
323
+ "type": "bool",
324
+ "category": "Video",
325
+ "description": "Stream 2 connection status"
326
+ },
327
+ "u_stream3Connected": {
328
+ "type": "bool",
329
+ "category": "Video",
330
+ "description": "Stream 3 connection status"
331
+ },
332
+ "u_stream4Connected": {
333
+ "type": "bool",
334
+ "category": "Video",
335
+ "description": "Stream 4 connection status"
336
+ },
337
+ "u_stream5Connected": {
338
+ "type": "bool",
339
+ "category": "Video",
340
+ "description": "Stream 5 connection status"
341
+ },
342
+ "u_stream6Connected": {
343
+ "type": "bool",
344
+ "category": "Video",
345
+ "description": "Stream 6 connection status"
346
+ },
347
+ "u_stream7Connected": {
348
+ "type": "bool",
349
+ "category": "Video",
350
+ "description": "Stream 7 connection status"
351
+ },
227
352
  "u_faceCount": {
228
353
  "type": "int",
229
354
  "category": "CV",
@@ -339,6 +464,246 @@ export const shaderUniforms = {
339
464
  "category": "CV",
340
465
  "description": "Segmentation mask resolution in pixels"
341
466
  },
467
+ "u_deviceAcceleration": {
468
+ "type": "vec3",
469
+ "category": "Device Sensors",
470
+ "description": "Acceleration without gravity (m/s²) - x, y, z"
471
+ },
472
+ "u_deviceAccelerationGravity": {
473
+ "type": "vec3",
474
+ "category": "Device Sensors",
475
+ "description": "Acceleration with gravity (m/s²) - x, y, z"
476
+ },
477
+ "u_deviceRotationRate": {
478
+ "type": "vec3",
479
+ "category": "Device Sensors",
480
+ "description": "Rotation rate (deg/s) - alpha, beta, gamma"
481
+ },
482
+ "u_deviceOrientation": {
483
+ "type": "vec3",
484
+ "category": "Device Sensors",
485
+ "description": "Device orientation (degrees) - alpha, beta, gamma"
486
+ },
487
+ "u_deviceOrientationAbsolute": {
488
+ "type": "bool",
489
+ "category": "Device Sensors",
490
+ "description": "True if orientation uses magnetometer (compass)"
491
+ },
492
+ "u_deviceLocation": {
493
+ "type": "vec2",
494
+ "category": "Device Sensors",
495
+ "description": "Geolocation (degrees) - latitude, longitude"
496
+ },
497
+ "u_deviceLocationExt": {
498
+ "type": "vec4",
499
+ "category": "Device Sensors",
500
+ "description": "Extended geolocation - altitude(m), accuracy(m), heading(deg), speed(m/s)"
501
+ },
502
+ "u_externalDeviceCount": {
503
+ "type": "int",
504
+ "category": "Device Sensors",
505
+ "description": "Number of connected external devices (0-8)"
506
+ },
507
+ "u_device0Acceleration": {
508
+ "type": "vec3",
509
+ "category": "Device Sensors",
510
+ "description": "Device 0 acceleration without gravity (m/s²)"
511
+ },
512
+ "u_device0AccelerationGravity": {
513
+ "type": "vec3",
514
+ "category": "Device Sensors",
515
+ "description": "Device 0 acceleration with gravity (m/s²)"
516
+ },
517
+ "u_device0RotationRate": {
518
+ "type": "vec3",
519
+ "category": "Device Sensors",
520
+ "description": "Device 0 rotation rate (deg/s)"
521
+ },
522
+ "u_device0Orientation": {
523
+ "type": "vec3",
524
+ "category": "Device Sensors",
525
+ "description": "Device 0 orientation (degrees) - alpha, beta, gamma"
526
+ },
527
+ "u_device0Location": {
528
+ "type": "vec2",
529
+ "category": "Device Sensors",
530
+ "description": "Device 0 location - latitude, longitude"
531
+ },
532
+ "u_device1Acceleration": {
533
+ "type": "vec3",
534
+ "category": "Device Sensors",
535
+ "description": "Device 1 acceleration without gravity (m/s²)"
536
+ },
537
+ "u_device1AccelerationGravity": {
538
+ "type": "vec3",
539
+ "category": "Device Sensors",
540
+ "description": "Device 1 acceleration with gravity (m/s²)"
541
+ },
542
+ "u_device1RotationRate": {
543
+ "type": "vec3",
544
+ "category": "Device Sensors",
545
+ "description": "Device 1 rotation rate (deg/s)"
546
+ },
547
+ "u_device1Orientation": {
548
+ "type": "vec3",
549
+ "category": "Device Sensors",
550
+ "description": "Device 1 orientation (degrees) - alpha, beta, gamma"
551
+ },
552
+ "u_device1Location": {
553
+ "type": "vec2",
554
+ "category": "Device Sensors",
555
+ "description": "Device 1 location - latitude, longitude"
556
+ },
557
+ "u_device2Acceleration": {
558
+ "type": "vec3",
559
+ "category": "Device Sensors",
560
+ "description": "Device 2 acceleration without gravity (m/s²)"
561
+ },
562
+ "u_device2AccelerationGravity": {
563
+ "type": "vec3",
564
+ "category": "Device Sensors",
565
+ "description": "Device 2 acceleration with gravity (m/s²)"
566
+ },
567
+ "u_device2RotationRate": {
568
+ "type": "vec3",
569
+ "category": "Device Sensors",
570
+ "description": "Device 2 rotation rate (deg/s)"
571
+ },
572
+ "u_device2Orientation": {
573
+ "type": "vec3",
574
+ "category": "Device Sensors",
575
+ "description": "Device 2 orientation (degrees) - alpha, beta, gamma"
576
+ },
577
+ "u_device2Location": {
578
+ "type": "vec2",
579
+ "category": "Device Sensors",
580
+ "description": "Device 2 location - latitude, longitude"
581
+ },
582
+ "u_device3Acceleration": {
583
+ "type": "vec3",
584
+ "category": "Device Sensors",
585
+ "description": "Device 3 acceleration without gravity (m/s²)"
586
+ },
587
+ "u_device3AccelerationGravity": {
588
+ "type": "vec3",
589
+ "category": "Device Sensors",
590
+ "description": "Device 3 acceleration with gravity (m/s²)"
591
+ },
592
+ "u_device3RotationRate": {
593
+ "type": "vec3",
594
+ "category": "Device Sensors",
595
+ "description": "Device 3 rotation rate (deg/s)"
596
+ },
597
+ "u_device3Orientation": {
598
+ "type": "vec3",
599
+ "category": "Device Sensors",
600
+ "description": "Device 3 orientation (degrees) - alpha, beta, gamma"
601
+ },
602
+ "u_device3Location": {
603
+ "type": "vec2",
604
+ "category": "Device Sensors",
605
+ "description": "Device 3 location - latitude, longitude"
606
+ },
607
+ "u_device4Acceleration": {
608
+ "type": "vec3",
609
+ "category": "Device Sensors",
610
+ "description": "Device 4 acceleration without gravity (m/s²)"
611
+ },
612
+ "u_device4AccelerationGravity": {
613
+ "type": "vec3",
614
+ "category": "Device Sensors",
615
+ "description": "Device 4 acceleration with gravity (m/s²)"
616
+ },
617
+ "u_device4RotationRate": {
618
+ "type": "vec3",
619
+ "category": "Device Sensors",
620
+ "description": "Device 4 rotation rate (deg/s)"
621
+ },
622
+ "u_device4Orientation": {
623
+ "type": "vec3",
624
+ "category": "Device Sensors",
625
+ "description": "Device 4 orientation (degrees) - alpha, beta, gamma"
626
+ },
627
+ "u_device4Location": {
628
+ "type": "vec2",
629
+ "category": "Device Sensors",
630
+ "description": "Device 4 location - latitude, longitude"
631
+ },
632
+ "u_device5Acceleration": {
633
+ "type": "vec3",
634
+ "category": "Device Sensors",
635
+ "description": "Device 5 acceleration without gravity (m/s²)"
636
+ },
637
+ "u_device5AccelerationGravity": {
638
+ "type": "vec3",
639
+ "category": "Device Sensors",
640
+ "description": "Device 5 acceleration with gravity (m/s²)"
641
+ },
642
+ "u_device5RotationRate": {
643
+ "type": "vec3",
644
+ "category": "Device Sensors",
645
+ "description": "Device 5 rotation rate (deg/s)"
646
+ },
647
+ "u_device5Orientation": {
648
+ "type": "vec3",
649
+ "category": "Device Sensors",
650
+ "description": "Device 5 orientation (degrees) - alpha, beta, gamma"
651
+ },
652
+ "u_device5Location": {
653
+ "type": "vec2",
654
+ "category": "Device Sensors",
655
+ "description": "Device 5 location - latitude, longitude"
656
+ },
657
+ "u_device6Acceleration": {
658
+ "type": "vec3",
659
+ "category": "Device Sensors",
660
+ "description": "Device 6 acceleration without gravity (m/s²)"
661
+ },
662
+ "u_device6AccelerationGravity": {
663
+ "type": "vec3",
664
+ "category": "Device Sensors",
665
+ "description": "Device 6 acceleration with gravity (m/s²)"
666
+ },
667
+ "u_device6RotationRate": {
668
+ "type": "vec3",
669
+ "category": "Device Sensors",
670
+ "description": "Device 6 rotation rate (deg/s)"
671
+ },
672
+ "u_device6Orientation": {
673
+ "type": "vec3",
674
+ "category": "Device Sensors",
675
+ "description": "Device 6 orientation (degrees) - alpha, beta, gamma"
676
+ },
677
+ "u_device6Location": {
678
+ "type": "vec2",
679
+ "category": "Device Sensors",
680
+ "description": "Device 6 location - latitude, longitude"
681
+ },
682
+ "u_device7Acceleration": {
683
+ "type": "vec3",
684
+ "category": "Device Sensors",
685
+ "description": "Device 7 acceleration without gravity (m/s²)"
686
+ },
687
+ "u_device7AccelerationGravity": {
688
+ "type": "vec3",
689
+ "category": "Device Sensors",
690
+ "description": "Device 7 acceleration with gravity (m/s²)"
691
+ },
692
+ "u_device7RotationRate": {
693
+ "type": "vec3",
694
+ "category": "Device Sensors",
695
+ "description": "Device 7 rotation rate (deg/s)"
696
+ },
697
+ "u_device7Orientation": {
698
+ "type": "vec3",
699
+ "category": "Device Sensors",
700
+ "description": "Device 7 orientation (degrees) - alpha, beta, gamma"
701
+ },
702
+ "u_device7Location": {
703
+ "type": "vec2",
704
+ "category": "Device Sensors",
705
+ "description": "Device 7 location - latitude, longitude"
706
+ },
342
707
  "backbuffer": {
343
708
  "type": "sampler2D",
344
709
  "category": "Backbuffer",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viji-dev/core",
3
- "version": "0.2.20",
3
+ "version": "0.3.1",
4
4
  "description": "Universal execution engine for Viji Creative scenes",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -77,6 +77,9 @@
77
77
  "node": ">=18.0.0"
78
78
  },
79
79
  "dependencies": {
80
- "@mediapipe/tasks-vision": "^0.10.20"
80
+ "@mediapipe/tasks-vision": "^0.10.20",
81
+ "essentia.js": "^0.1.3",
82
+ "fft.js": "^4.0.4",
83
+ "ml-kmeans": "^6.0.0"
81
84
  }
82
85
  }