-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.c
3352 lines (2681 loc) · 177 KB
/
settings.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
* copyright (c) 2018-2022 Thomas Paillet <[email protected]>
* This file is part of RCP-Virtuels.
* RCP-Virtuels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* RCP-Virtuels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with RCP-Virtuels. If not, see <https://www.gnu.org/licenses/>.
*/
#include "version.h"
#include "rcp.h"
#include "settings.h"
#include "protocol.h"
#include "misc.h"
#include "error.h"
#include "update_notification.h"
#include "operating_system.h"
#include "gain.h"
#include "shutter.h"
#include "cameras_set.h"
#include "scenes.h"
#include "sw_p_08.h"
#include "tally.h"
#include "physical_rcp.h"
#include "main_window.h"
#include <string.h>
#include <stdio.h>
#include <unistd.h>
#ifdef _WIN32
extern GdkPixbuf *pixbuf_grille_1_light, *pixbuf_grille_2_light, *pixbuf_grille_3_light, *pixbuf_grille_4_light;
extern GdkPixbuf *pixbuf_grille_1_dark, *pixbuf_grille_2_dark, *pixbuf_grille_3_dark, *pixbuf_grille_4_dark;
extern GdkPixbuf *pixbuf_logo_light;
extern GdkPixbuf *pixbuf_logo_dark;
#endif
char *config_file_name = "RCP-Virtuels-" RCP_VIRTUELS_VERSION ".dat";
FILE *config_file = NULL;
gboolean backup_needed = FALSE;
parameter_t white_balance_mode_parameters_array[6] = { { "0", "ATW" }, { "1", "AWB A" }, { "2", "AWB B" }, { "4", "3200K" }, { "5", "5600K" }, { "9", "VAR" } };
char *white_balance_mode_answers_array[6] = { "0", "1", "2", "4", "5", "9" };
char white_balance_mode_tooltip[] = "ATW: La balance des blancs est compensée automatiquement en continu, même si la\n source de lumière ou la température de couleur changent.\nAWB A: Lorsque [AWB A] ou [AWB B] est sélectionné et que la balance des blancs est\n effectuée, les résultats du réglage sont stockés dans la mémoire sélectionnée.\n Lorsque [AWB A] ou [AWB B] est sélectionné par la suite, la balance des blancs\n sauvegardée dans la mémoire sélectionnée peut être rappelée.\n3200K: C’est le mode de balance des blancs idéal quand la source de lumière est un\n éclairage à halogène à 3200 K.\n5600K: C’est le mode de balance des blancs idéal quand la source de lumière est un\n éclairage fluorescent ou la lumière du soleil à 5600 K.\nVAR: Vous pouvez définir une température de couleur comprise entre 2000 K et\n 15000 K. C'est le seul mode utilisable avec ce programme.";
//char white_balance_mode_tooltip[] = "ATW: La balance des blancs est compensée automatiquement en continu,\n même si la source de lumière ou la température de couleur changent.\nAWB A/B: Lorsque [AWB A] ou [AWB B] est sélectionné et que la balance\n des blancs est effectuée, les résultats du réglage sont stockés dans la\n mémoire sélectionnée (A ou B).\n Lorsque [AWB A] ou [AWB B] est sélectionné par la suite, la balance des\n blancs sauvegardée dans la mémoire sélectionnée est rappelée.\n3200K: C’est le mode de balance des blancs idéal quand la source de lumière\n est un éclairage à halogène à 3200 K.\n5600K: C’est le mode de balance des blancs idéal quand la source de lumière\n est un éclairage fluorescent ou la lumière du soleil à 5600 K.\nVAR: Vous pouvez définir une température de couleur comprise entre 2000 K et\n 15000 K. C'est le seul mode utilisable avec ce programme.";
parameter_t preset_scope_parameters_array[3] = { { "0", "Mode A" }, { "1", "Mode B" }, { "2", "Mode C" } };
char *preset_scope_answers_array[3] = { "0", "1", "2" };
char preset_scope_tooltip[] = "Etendue des modifications lorsqu'une mémoire Panasonic est rappelée:\nMode A: Pan, Tilt, Zoom (y compris zoom numérique), Focus, Iris, Gain, valeur de réglage de la balance des blancs.\nMode B: Pan, Tilt, Zoom (y compris zoom numérique), Focus, Iris.\nMode C: Pan, Tilt, Zoom (y compris zoom numérique), Focus.";
parameter_t white_clip_parameters_array[2] = { { "0", "Off" }, { "1", "On" } };
char *white_clip_answers_array[2] = { "0", "1" };
parameter_t white_clip_level_parameters_array[20] = { { "13", "109%" }, { "12", "108%" }, { "11", "107%" }, { "10", "106%" }, { "0F", "105%" }, { "0E", "104%" }, \
{ "0D", "103%" }, { "0C", "102%" }, { "0B", "101%" }, { "0A", "100%" }, { "09", "99%" }, { "08", "98%" }, { "07", "97%" }, { "06", "96%" }, \
{ "05", "95%" }, { "04", "94%" }, { "03", "93%" }, { "02", "92%" }, { "01", "91%" }, { "00", "90%" } };
char *white_clip_level_answers_array[20] = { "13", "12", "11", "10", "0F", "0E", "0D", "0C", "0B", "0A", "09", "08", "07", "06", "05", "04", "03", "02", "01", "00" };
parameter_t agc_max_gain_parameters_array[3] = { { "03", "18 dB" }, { "02", "12 dB" }, { "01", "6 dB" } };
char *agc_max_gain_answers_array[3] = { "03", "02", "01" };
char agc_max_gain_tooltip[] = "Quantité maximum d’augmentation du gain lorsque\nle paramètre [Gain] des caméras est réglé sur [Auto].";
parameter_t frame_mix_parameters_array[5] = { { "00", "Off" }, { "06", "6 dB" }, { "0C", "12 dB" }, { "12", "18 dB" }, { "18", "24 dB" } };
char *frame_mix_answers_array[5] = { "00", "06", "0C", "12", "18" };
char frame_mix_tooltip[] = "Sélectionner la quantité d’adjonction d’images (augmentation du gain grâce à la mémoire de capteur).\nQuand l’adjonction d’images est réalisée, la vidéo apparaît comme s’il manquait quelques images.\nSon réglage prend effet si le réglage sélectionné à [Shutter Mode] est [Off].\nCeci ne peut pas être configuré lorsque le format est 2160/29.97p, 2160/23.98p, 2160/24p, 2160/25p, 1080/29.97p, 1080/23.98p, 1080/24p, 1080/29.97PsF, 1080/23.98PsF, 1080/25p ou 1080/25PsF.\n[Frame Mix] ne peut pas être réglé sur [18dB] ou [24dB] lorsque [Iris Mode], [Gain] ou [Focus Mode] est réglé sur [Auto].\n(Avec [Frame Mix] sur [18dB] ou [24dB], régler [Iris Mode] et [Focus Mode] sur [Manual] et régler [Gain] sur un autre réglage que [Auto].)";
parameter_t dnr_parameters_array[3] = { { "00", "Off" }, { "01", "Low" }, { "02", "High" } };
char *dnr_answers_array[3] = { "00", "01", "02" };
char dnr_tooltip[] = "La fonction \"réduction du bruit numérique (Digital Noise Reduction)\"\npermet de pouvoir sortir des images lumineuses, claires et sans bruit,\nmême la nuit et dans des conditions de faible éclairage.\nNéanmoins, un décalage d'image peut se produire.";
parameter_t osd_off_with_tally_parameters_array[2] = { { "0", "Off" }, { "1", "On" } };
char *osd_off_with_tally_answers_array[2] = { "0", "1" };
char osd_off_with_tally_tooltip[] = "Cette option permet de désactiver l'affichage du menu de la caméra (OSD)\nlorsque des signaux tally sont reçus via des commandes ou des contacts.\nQuand le signal tally est libéré, l'affichage du menu de la caméra revient.";
parameter_t osd_status_parameters_array[2] = { { "0", "Off" }, { "1", "On" } };
char *osd_status_answers_array[2] = { "0", "1" };
char osd_status_tooltip[] = "Cette option permet d'activer/désactiver l'affichage d'état\npendant la balance automatique des blancs (AWB) et des noirs (ABB),\nou l'affichage de l'erreur si une erreur se produit.";
parameter_t tally_brightness_parameters_array[3] = { { "2", "High" }, { "1", "Mid" }, { "0", "Low" } };
char *tally_brightness_answers_array[3] = { "2", "1", "0" };
setting_t settings_array[NB_SETTINGS] = { \
{ "White Balance Mode :", "OAW:", "QAW", 6, white_balance_mode_parameters_array, white_balance_mode_answers_array, NULL, white_balance_mode_tooltip, 5, FALSE }, \
{ "Preset Scope :", "OSE:71:", "QSE:71", 3, preset_scope_parameters_array, preset_scope_answers_array, NULL, preset_scope_tooltip, 2, TRUE }, \
{ "White Clip :", "OSA:2E:", "QSA:2E", 2, white_clip_parameters_array, white_clip_answers_array, NULL, NULL, 1, TRUE }, \
{ "White Clip Level :", "OSA:2A:", "QSA:2A", 20, white_clip_level_parameters_array, white_clip_level_answers_array, NULL, NULL, 9, TRUE }, \
{ "AGC Max Gain :", "OSD:69:", "QSD:69", 3, agc_max_gain_parameters_array, agc_max_gain_answers_array, NULL, agc_max_gain_tooltip, 0, TRUE }, \
{ "Frame Mix :", "OSA:65:", "QSA:65", 5, frame_mix_parameters_array, frame_mix_answers_array, NULL, frame_mix_tooltip, 0, FALSE }, \
{ "Digital Noise Reduction (DNR) :", "OSD:3A:", "QSD:3A", 3, dnr_parameters_array, dnr_answers_array, NULL, dnr_tooltip, 0, FALSE }, \
{ "OSD Off With TALLY :", "OSE:75:", "QSE:75", 2, osd_off_with_tally_parameters_array, osd_off_with_tally_answers_array, NULL, osd_off_with_tally_tooltip, 1, TRUE }, \
{ "OSD Status :", "OSA:88:", "QSA:88", 2, osd_status_parameters_array, osd_status_answers_array, NULL, osd_status_tooltip, 1, TRUE }, \
{ "Tally Brightness :", "OSA:D3:", "QSA:D3", 3, tally_brightness_parameters_array, tally_brightness_answers_array, NULL, NULL, 2, TRUE } \
};
int settings_parameters_indexes_array[NB_SETTINGS];
int status_lamp = 1;
int tally_input = 1;
gboolean send_ip_tally = FALSE;
int picture_level = 0;
char picture_level_tooltip[] = "Détermine la luminosité de l’image à atteindre avec la compensation automatique de l’exposition si [Iris Mode] est réglé sur [Auto] ou [Shutter Mode] est réglé sur [ELC] ou [Gain] est réglé sur [Auto].\nEn gros, c'est la luminosité quand on est en \"diaph auto\".";
//AW_HE130
parameter_t frequency_parameters_array_AW_HE130[2] = { { "0", "59,94Hz" }, { "1", "50Hz" } };
char *frequency_answers_array_AW_HE130[2] = { "0", "1" };
parameter_t format_parameters_array_ntsc_AW_HE130[8] = { { "01", "720/59.94p" }, { "04", "1080/59.94i" }, { "07", "1080/29.97PsF" }, { "0A", "1080/23.98PsF" }, \
{ "10", "1080/59.94p" }, { "12", "480/59.94p(i)" }, { "14", "1080/29.97p" }, { "16", "1080/23.98p" } };
char *format_answers_array_ntsc_AW_HE130[8] = { "01", "04", "07", "0A", "10", "12", "14", "16" };
parameter_t format_parameters_array_pal_AW_HE130[6] = { { "02", "720/50p" }, { "05", "1080/50i" }, { "08", "1080/25PsF" }, { "11", "1080/50p" }, { "13", "576/50p(i)" }, \
{ "15", "1080/25p" } };
char *format_answers_array_pal_AW_HE130[6] = { "02", "05", "08", "11", "13", "15" };
//char format_tooltip[] = "Dans le cas des formats 576/50p(i) et 480/59.94p(i),\nle signal progressif (p) est envoyé vers le connecteur HDMI et\nle signal entrelacé (i) est envoyé vers les connecteurs SDI et \"vidéo composite\".";
char format_tooltip[] = "Dans le cas des formats 576/50p(i) et 480/59.94p(i), le signal progressif (p) est envoyé vers le connecteur HDMI et le signal entrelacé (i) est envoyé vers les connecteurs SDI et \"vidéo composite\".";
parameter_t down_conversion_mode_parameters_array[3] = { { "0", "SideCut" }, { "1", "Squeeze" }, { "2", "LetterBOX" } };
char *down_conversion_mode_answers_array[3] = { "0", "1", "2" };
parameter_t color_bar_setup_level_parameters_array[2] = { { "0", "0.0 IRE" }, { "1", "7.5 IRE" } };
char *color_bar_setup_level_answers_array[2] = { "0", "1" };
char color_bar_setup_level_tooltip[] = "Cette option est activée uniquement lorsque [Frequency] est réglé sur [59,94Hz]. Elle permet de sélectionner le niveau de la mire de couleur sur la sortie \"vidéo composite\".";
#define COLOR_BAR_SETUP_LEVEL_AW_HE130_COMBO_BOX settings_array_AW_HE130[COLOR_BAR_SETUP_LEVEL_INDEX_AW_HE130].combo_box
setting_t settings_array_AW_HE130[NB_SETTINGS_AW_HE130] = { \
{ "Frequency :", "OSE:77:", "QSE:77", 2, frequency_parameters_array_AW_HE130, frequency_answers_array_AW_HE130, NULL, NULL, 1, TRUE }, \
{ "Format :", "OSA:87:", "QSA:87", 6, format_parameters_array_pal_AW_HE130, format_answers_array_pal_AW_HE130, NULL, format_tooltip, 1, TRUE }, \
{ "Down-conversion Mode :", "OSE:20:", "QSE:20", 3, down_conversion_mode_parameters_array, down_conversion_mode_answers_array, NULL, NULL, 1, TRUE }, \
{ "Color Bar Setup Level :", "DCS:", "QCS", 2, color_bar_setup_level_parameters_array, color_bar_setup_level_answers_array, NULL, color_bar_setup_level_tooltip, 0, TRUE } \
};
int settings_parameters_indexes_array_AW_HE130[NB_SETTINGS_AW_HE130];
int osd_mix_AW_HE130 = 0x1A; //SDI Off, HDMI On, Video On, IP On
//AW_UE150
parameter_t frequency_parameters_array_AW_UE150[4] = { { "0", "59,94Hz" }, { "1", "50Hz" }, { "2", "24Hz" }, { "3", "23.98Hz" } };
char *frequency_answers_array_AW_UE150[4] = { "0", "1", "2", "3" };
parameter_t format_parameters_array_ntsc_AW_UE150[8] = { { "01", "720/59.94p" }, { "04", "1080/59.94i" }, { "07", "1080/29.97PsF" }, { "10", "1080/59.94p" }, \
{ "14", "1080/29.97p" }, { "16", "1080/23.98p (over 59.94i/p)" }, { "17", "2160/29.97p" }, { "19", "2160/59.94p" } };
char *format_answers_array_ntsc_AW_UE150[8] = { "01", "04", "07", "10", "14", "16", "17", "19" };
parameter_t format_parameters_array_pal_AW_UE150[7] = { { "02", "720/50p" }, { "05", "1080/50i" }, { "08", "1080/25PsF" }, { "11", "1080/50p" }, { "15", "1080/25p" }, \
{ "18", "2160/25p" }, { "1A", "2160/50p" } };
char *format_answers_array_pal_AW_UE150[7] = { "02", "05", "08", "11", "15", "18", "1A" };
parameter_t format_parameters_array_24p_AW_UE150[2] = { { "21", "2160/24p" }, { "22", "1080/24p" } };
char *format_answers_array_24p_AW_UE150[2] = { "21", "22" };
parameter_t format_parameters_array_23_98p_AW_UE150[3] = { { "1B", "2160/23.98p" }, { "23", "1080/23.98p" }, { "0A", "1080/23.98PsF" } };
char *format_answers_array_23_98p_AW_UE150[3] = { "1B", "23", "0A" };
parameter_t pedestal_offset_parameters_array[2] = { { "0", "Off" }, { "1", "On" } };
char *pedestal_offset_answers_array[2] = { "0", "1" };
parameter_t auto_iris_speed_parameters_array[3] = { { "0", "Slow" }, { "1", "Normal" }, { "2", "Fast" } };
char *auto_iris_speed_answers_array[3] = { "0", "1", "2" };
parameter_t auto_iris_window_parameters_array[3] = { { "0", "Normal1" }, { "1", "Normal2" }, { "2", "Center" } };
char *auto_iris_window_answers_array[3] = { "0", "1", "2" };
char auto_iris_window_tooltip[] = "Sélectionne la fenêtre de détection du diaphragme auto :\nNormal1 : Fenêtre vers le centre de l'écran.\nNormal2 : Fenêtre vers le bas de l'écran.\nCenter : Fenêtre en pointillé au centre de l'écran.";
parameter_t super_gain_parameters_array[2] = { { "0", "Off" }, { "1", "On" } };
char *super_gain_answers_array[2] = { "0", "1" };
char super_gain_tooltip[] = "Permet d'augmenter le gain jusqu'à 42dB (au lieu de 36dB).";
parameter_t shooting_mode_parameters_array[2] = { { "0", "Normal" }, { "1", "High Sensitivity" } };
char *shooting_mode_answers_array[2] = { "0", "1" };
char shooting_mode_tooltip[] = "Sélectionne le mode de prise de vues en fonction de l'environnement ambiant :\nNormal : Prises de vues dans un endroit où le niveau de luminosité est normal.\nHigh Sensitivity : Prises de vues dans un environnement sombre.";
parameter_t color_setting_parameters_array[2] = { { "0", "Normal" }, { "1", "V-Log" } };
char *color_setting_answers_array[2] = { "0", "1" };
char color_setting_tooltip[] = "Définissez la couleur (gamma et gamut) pour le système dans son ensemble :\nNormal : Ce paramètre permet des réglages détaillés de la qualité de l'image sur la caméra.\nV-Log : Définissez une courbe gamma qui fournit des tons et une large plage de latitude (plage d'exposition).";
//12G SDI/OPTICAL
parameter_t sdi_12g_4k_59_94p_format_parameters_array[2] = { { "10", "1080/59.94p" }, { "19", "2160/59.94p" } };
char *sdi_12g_4k_59_94p_format_answers_array[2] = { "10", "19" };
parameter_t sdi_12g_4k_29_97p_format_parameters_array[3] = { { "07", "1080/29.97PsF" }, { "14", "1080/29.97p" }, { "17", "2160/29.97p" } };
char *sdi_12g_4k_29_97p_format_answers_array[3] = { "07", "14", "17" };
parameter_t sdi_12g_1080_59_94p_format_parameters_array[1] = { { "10", "1080/59.94p" } };
char *sdi_12g_1080_59_94p_format_answers_array[1] = { "10" };
parameter_t sdi_12g_1080_59_94i_format_parameters_array[1] = { { "04", "1080/59.94i" } };
char *sdi_12g_1080_59_94i_format_answers_array[1] = { "04" };
parameter_t sdi_12g_1080_29_97p_format_parameters_array[1] = { { "14", "1080/29.97p" } };
char *sdi_12g_1080_29_97p_format_answers_array[1] = { "14" };
parameter_t sdi_12g_1080_29_97psf_format_parameters_array[1] = { { "07", "1080/29.97PsF" } };
char *sdi_12g_1080_29_97psf_format_answers_array[1] = { "07" };
parameter_t sdi_12g_1080_23_98p_over_59_94i_format_parameters_array[1] = { { "16", "1080/23.98p(over 59.94i/p)" } };
char *sdi_12g_1080_23_98p_over_59_94i_format_answers_array[1] = { "16" };
parameter_t sdi_12g_720_59_94p_format_parameters_array[1] = { { "01", "720/59.94p" } };
char *sdi_12g_720_59_94p_format_answers_array[1] = { "01" };
parameter_t sdi_12g_4k_50p_format_parameters_array[2] = { { "11", "1080/50p" }, { "1A", "2160/50p" } };
char *sdi_12g_4k_50p_format_answers_array[2] = { "11", "1A" };
parameter_t sdi_12g_4k_25p_format_parameters_array[3] = { { "08", "1080/25PsF" }, { "15", "1080/25p" }, { "18", "2160/25p" } };
char *sdi_12g_4k_25p_format_answers_array[3] = { "08", "15", "18" };
parameter_t sdi_12g_1080_50p_format_parameters_array[1] = { { "11", "1080/50p" } };
char *sdi_12g_1080_50p_format_answers_array[1] = { "11" };
parameter_t sdi_12g_1080_50i_format_parameters_array[1] = { { "05", "1080/50i" } };
char *sdi_12g_1080_50i_format_answers_array[1] = { "05" };
parameter_t sdi_12g_1080_25p_format_parameters_array[1] = { { "15", "1080/25p" } };
char *sdi_12g_1080_25p_format_answers_array[1] = { "15" };
parameter_t sdi_12g_1080_25psf_format_parameters_array[1] = { { "08", "1080/25PsF" } };
char *sdi_12g_1080_25psf_format_answers_array[1] = { "08" };
parameter_t sdi_12g_720_50p_format_parameters_array[1] = { { "02", "720/50p" } };
char *sdi_12g_720_50p_format_answers_array[1] = { "02" };
parameter_t sdi_12g_4k_24p_format_parameters_array[2] = { { "21", "2160/24p" }, { "22", "1080/24p" } };
char *sdi_12g_4k_24p_format_answers_array[2] = { "21", "22" };
parameter_t sdi_12g_1080_24p_format_parameters_array[1] = { { "22", "1080/24p" } };
char *sdi_12g_1080_24p_format_answers_array[1] = { "22" };
parameter_t sdi_12g_4k_23_98p_format_parameters_array[3] = { { "1B", "2160/23.98p" }, { "23", "1080/23.98p" }, { "0A", "1080/23.98PsF" } };
char *sdi_12g_4k_23_98p_format_answers_array[3] = { "1B", "23", "0A" };
parameter_t sdi_12g_1080_23_98p_format_parameters_array[1] = { { "23", "1080/23.98p" } };
char *sdi_12g_1080_23_98p_format_answers_array[1] = { "23" };
parameter_t sdi_12g_1080_23_98psf_format_parameters_array[1] = { { "0A", "1080/23.98PsF" } };
char *sdi_12g_1080_23_98psf_format_answers_array[1] = { "0A" };
parameter_t hdr_output_select_parameters_array[3] = { { "0", "SDR" }, { "1", "HDR (2020)" }, { "2", "HDR (709)" } };
char *hdr_output_select_answers_array[3] = { "0", "1", "2" };
char hdr_output_select_tooltip[] = "Select the signal to be output when [Gamma Mode] is [HLG] :\nSDR : SDR output.\nHDR(2020) : HDR output (BT.2020 equivalent color gamut).\nHDR(709) : HDR output (BT.709 equivalent color gamut).";
parameter_t v_log_output_select_parameters_array[2] = { { "0", "V-Log" }, { "1", "V-709" } };
char *v_log_output_select_answers_array[2] = { "0", "1" };
parameter_t sdi_3g_out_parameters_array[2] = { { "0", "Level A" }, { "1", "Level B" } };
char *sdi_3g_out_answers_array[2] = { "0", "1" };
//3G SDI
parameter_t sdi_3g_4k_59_94p_format_parameters_array[2] = { { "04", "1080/59.94i" }, { "10", "1080/59.94p" } };
char *sdi_3g_4k_59_94p_format_answers_array[2] = { "04", "10" };
parameter_t sdi_3g_4k_29_97p_format_parameters_array[2] = { { "07", "1080/29.97PsF" }, { "14", "1080/29.97p" } };
char *sdi_3g_4k_29_97p_format_answers_array[2] = { "07", "14" };
parameter_t sdi_3g_1080_59_94p_format_parameters_array[2] = { { "04", "1080/59.94i" }, { "10", "1080/59.94p" } };
char *sdi_3g_1080_59_94p_format_answers_array[2] = { "04", "10" };
parameter_t sdi_3g_1080_59_94i_format_parameters_array[1] = { { "04", "1080/59.94i" } };
char *sdi_3g_1080_59_94i_format_answers_array[1] = { "04" };
parameter_t sdi_3g_1080_29_97p_format_parameters_array[1] = { { "14", "1080/29.97p" } };
char *sdi_3g_1080_29_97p_format_answers_array[1] = { "14" };
parameter_t sdi_3g_1080_29_97psf_format_parameters_array[1] = { { "07", "1080/29.97PsF" } };
char *sdi_3g_1080_29_97psf_format_answers_array[1] = { "07" };
parameter_t sdi_3g_1080_23_98p_over_59_94i_format_parameters_array[1] = { { "16", "1080/23.98p (over 59.94i/p)" } };
char *sdi_3g_1080_23_98p_over_59_94i_format_answers_array[1] = { "16" };
parameter_t sdi_3g_720_59_94p_format_parameters_array[1] = { { "01", "720/59.94p" } };
char *sdi_3g_720_59_94p_format_answers_array[1] = { "01" };
parameter_t sdi_3g_4k_50p_format_parameters_array[2] = { { "05", "1080/50i" }, { "11", "1080/50p" } };
char *sdi_3g_4k_50p_format_answers_array[2] = { "05", "11" };
parameter_t sdi_3g_4k_25p_format_parameters_array[2] = { { "08", "1080/25PsF" }, { "15", "1080/25p" } };
char *sdi_3g_4k_25p_format_answers_array[2] = { "08", "15" };
parameter_t sdi_3g_1080_50p_format_parameters_array[2] = { { "05", "1080/50i" }, { "11", "1080/50p" } };
char *sdi_3g_1080_50p_format_answers_array[2] = { "05", "11" };
parameter_t sdi_3g_1080_50i_format_parameters_array[1] = { { "05", "1080/50i" } };
char *sdi_3g_1080_50i_format_answers_array[1] = { "05" };
parameter_t sdi_3g_1080_25p_format_parameters_array[1] = { { "15", "1080/25p" } };
char *sdi_3g_1080_25p_format_answers_array[1] = { "15" };
parameter_t sdi_3g_1080_25psf_format_parameters_array[1] = { { "08", "1080/25PsF" } };
char *sdi_3g_1080_25psf_format_answers_array[1] = { "08" };
parameter_t sdi_3g_720_50p_format_parameters_array[1] = { { "02", "720/50p" } };
char *sdi_3g_720_50p_format_answers_array[1] = { "02" };
parameter_t sdi_3g_24p_format_parameters_array[1] = { { "22", "1080/24p" } };
char *sdi_3g_24p_format_answers_array[1] = { "22" };
parameter_t sdi_3g_4k_23_98p_format_parameters_array[2] = { { "23", "1080/23.98p" }, { "0A", "1080/23.98PsF" } };
char *sdi_3g_4k_23_98p_format_answers_array[2] = { "23", "0A" };
parameter_t sdi_3g_1080_23_98p_format_parameters_array[1] = { { "23", "1080/23.98p" } };
char *sdi_3g_1080_23_98p_format_answers_array[1] = { "23" };
parameter_t sdi_3g_1080_23_98psf_format_parameters_array[1] = { { "0A", "1080/23.98PsF" } };
char *sdi_3g_1080_23_98psf_format_answers_array[1] = { "0A" };
//MONI
parameter_t moni_4k_59_94p_format_parameters_array[1] = { { "04", "1080/59.94i" }/*, { "10", "1080/59.94p" }*/ };
char *moni_4k_59_94p_format_answers_array[1] = { "04"/*, "10"*/ };
parameter_t moni_4k_29_97p_format_parameters_array[2] = { { "07", "1080/29.97PsF" }, { "14", "1080/29.97p" } };
char *moni_4k_29_97p_format_answers_array[2] = { "07", "14" };
parameter_t moni_1080_59_94p_format_parameters_array[1] = { { "04", "1080/59.94i" }/*, { "10", "1080/59.94p" }*/ };
char *moni_1080_59_94p_format_answers_array[1] = { "04"/*, "10"*/ };
parameter_t moni_1080_59_94i_format_parameters_array[1] = { { "04", "1080/59.94i" } };
char *moni_1080_59_94i_format_answers_array[1] = { "04" };
parameter_t moni_1080_29_97p_format_parameters_array[1] = { { "14", "1080/29.97p" } };
char *moni_1080_29_97p_format_answers_array[1] = { "14" };
parameter_t moni_1080_29_97psf_format_parameters_array[1] = { { "07", "1080/29.97PsF" } };
char *moni_1080_29_97psf_format_answers_array[1] = { "07" };
parameter_t moni_1080_23_98p_over_59_94i_format_parameters_array[1] = { { "16", "1080/23.98p (over 59.94i/p)" } };
char *moni_1080_23_98p_over_59_94i_format_answers_array[1] = { "16" };
parameter_t moni_720_59_94p_format_parameters_array[1] = { { "01", "720/59.94p" } };
char *moni_720_59_94p_format_answers_array[1] = { "01" };
parameter_t moni_4k_50p_format_parameters_array[1] = { { "05", "1080/50i" }/*, { "11", "1080/50p" }*/ };
char *moni_4k_50p_format_answers_array[1] = { "05"/*, "11"*/ };
parameter_t moni_4k_25p_format_parameters_array[2] = { { "08", "1080/25PsF" }, { "15", "1080/25p" } };
char *moni_4k_25p_format_answers_array[2] = { "08", "15" };
parameter_t moni_1080_50p_format_parameters_array[1] = { { "05", "1080/50i" }/*, { "11", "1080/50p" }*/ };
char *moni_1080_50p_format_answers_array[1] = { "05"/*, "11"*/ };
parameter_t moni_1080_50i_format_parameters_array[1] = { { "05", "1080/50i" } };
char *moni_1080_50i_format_answers_array[1] = { "05" };
parameter_t moni_1080_25p_format_parameters_array[1] = { { "15", "1080/25p" } };
char *moni_1080_25p_format_answers_array[1] = { "15" };
parameter_t moni_1080_25psf_format_parameters_array[1] = { { "08", "1080/25PsF" } };
char *moni_1080_25psf_format_answers_array[1] = { "08" };
parameter_t moni_720_50p_format_parameters_array[1] = { { "02", "720/50p" } };
char *moni_720_50p_format_answers_array[1] = { "02" };
parameter_t moni_24p_format_parameters_array[1] = { { "22", "1080/24p" } };
char *moni_24p_format_answers_array[1] = { "22" };
parameter_t moni_4k_23_98p_format_parameters_array[2] = { { "23", "1080/23.98p" }, { "0A", "1080/23.98PsF" } };
char *moni_4k_23_98p_format_answers_array[2] = { "23", "0A" };
parameter_t moni_1080_23_98p_format_parameters_array[1] = { { "23", "1080/23.98p" } };
char *moni_1080_23_98p_format_answers_array[1] = { "23" };
parameter_t moni_1080_23_98psf_format_parameters_array[1] = { { "0A", "1080/23.98PsF" } };
char *moni_1080_23_98psf_format_answers_array[1] = { "0A" };
//HDMI
parameter_t hdmi_4k_59_94p_format_parameters_array[2] = { { "10", "1080/59.94p" }, { "19", "2160/59.94p" } };
char *hdmi_4k_59_94p_format_answers_array[2] = { "10", "19" };
parameter_t hdmi_4k_29_97p_format_parameters_array[2] = { { "14", "1080/29.97p" }, { "17", "2160/29.97p" } };
char *hdmi_4k_29_97p_format_answers_array[2] = { "14", "17" };
parameter_t hdmi_1080_59_94p_format_parameters_array[1] = { { "10", "1080/59.94p" } };
char *hdmi_1080_59_94p_format_answers_array[1] = { "10" };
parameter_t hdmi_1080_59_94i_format_parameters_array[1] = { { "04", "1080/59.94i" } };
char *hdmi_1080_59_94i_format_answers_array[1] = { "04" };
parameter_t hdmi_1080_29_97p_format_parameters_array[1] = { { "14", "1080/29.97p" } };
char *hdmi_1080_29_97p_format_answers_array[1] = { "14" };
parameter_t hdmi_1080_29_97psf_format_parameters_array[1] = { { "14", "1080/29.97p" } };
char *hdmi_1080_29_97psf_format_answers_array[1] = { "14" };
parameter_t hdmi_1080_23_98p_over_59_94i_format_parameters_array[1] = { { "16", "1080/23.98p(over 59.94i/p)" } };
char *hdmi_1080_23_98p_over_59_94i_format_answers_array[1] = { "16" };
parameter_t hdmi_720_59_94p_format_parameters_array[1] = { { "01", "720/59.94p" } };
char *hdmi_720_59_94p_format_answers_array[1] = { "01" };
parameter_t hdmi_4k_50p_format_parameters_array[2] = { { "11", "1080/50p" }, { "1A", "2160/50p" } };
char *hdmi_4k_50p_format_answers_array[2] = { "11", "1A" };
parameter_t hdmi_4k_25p_format_parameters_array[2] = { { "15", "1080/25p" }, { "18", "2160/25p" } };
char *hdmi_4k_25p_format_answers_array[2] = { "15", "18" };
parameter_t hdmi_1080_50p_format_parameters_array[1] = { { "11", "1080/50p" } };
char *hdmi_1080_50p_format_answers_array[1] = { "11" };
parameter_t hdmi_1080_50i_format_parameters_array[1] = { { "05", "1080/50i" } };
char *hdmi_1080_50i_format_answers_array[1] = { "05" };
parameter_t hdmi_1080_25p_format_parameters_array[1] = { { "15", "1080/25p" } };
char *hdmi_1080_25p_format_answers_array[1] = { "15" };
parameter_t hdmi_1080_25psf_format_parameters_array[1] = { { "15", "1080/25p" } };
char *hdmi_1080_25psf_format_answers_array[1] = { "15" };
parameter_t hdmi_720_50p_format_parameters_array[1] = { { "02", "720/50p" } };
char *hdmi_720_50p_format_answers_array[1] = { "02" };
parameter_t hdmi_4k_24p_format_parameters_array[2] = { { "21", "2160/24p" }, { "22", "1080/24p" } };
char *hdmi_4k_24p_format_answers_array[2] = { "21", "22" };
parameter_t hdmi_1080_24p_format_parameters_array[1] = { { "22", "1080/24p" } };
char *hdmi_1080_24p_format_answers_array[1] = { "22" };
parameter_t hdmi_4k_23_98p_format_parameters_array[2] = { { "1B", "2160/23.98p" }, { "23", "1080/23.98p" } };
char *hdmi_4k_23_98p_format_answers_array[2] = { "1B", "23" };
parameter_t hdmi_1080_23_98p_format_parameters_array[1] = { { "23", "1080/23.98p" } };
char *hdmi_1080_23_98p_format_answers_array[1] = { "23" };
parameter_t hdmi_1080_23_98psf_format_parameters_array[1] = { { "23", "1080/23.98p" } };
char *hdmi_1080_23_98psf_format_answers_array[1] = { "23" };
parameter_t hdmi_color_component_parameters_array[2] = { { "2", "4:2:2/10bit" }, { "4", "4:2:0/8bit" } };
char *hdmi_color_component_answers_array[2] = { "2", "4" };
setting_t settings_array_AW_UE150[NB_SETTINGS_AW_UE150] = { \
{ "Frequency :", "OSE:77:", "QSE:77", 4, frequency_parameters_array_AW_UE150, frequency_answers_array_AW_UE150, NULL, NULL, 1, TRUE }, \
{ "Format :", "OSA:87:", "QSA:87", 7, format_parameters_array_pal_AW_UE150, format_answers_array_pal_AW_UE150, NULL, NULL, 1, TRUE }, \
{ "Pedestal Offset :", "OSJ:11:", "QSJ:11", 2, pedestal_offset_parameters_array, pedestal_offset_answers_array, NULL, NULL, 1, TRUE }, \
{ "Auto Iris Speed :", "OSJ:01:", "QSJ:01", 3, auto_iris_speed_parameters_array, auto_iris_speed_answers_array, NULL, NULL, 1, TRUE }, \
{ "Auto Iris Window :", "OSJ:02:", "QSJ:02", 3, auto_iris_window_parameters_array, auto_iris_window_answers_array, NULL, auto_iris_window_tooltip, 0, TRUE }, \
{ "Super Gain :", "OSI:28:", "QSI:28", 2, super_gain_parameters_array, super_gain_answers_array, NULL, super_gain_tooltip, 0, TRUE }, \
{ "Shooting Mode :", "OSI:30:", "QSI:30", 2, shooting_mode_parameters_array, shooting_mode_answers_array, NULL, shooting_mode_tooltip, 0, TRUE }, \
{ "Color Setting :", "OSJ:56:", "QSJ:56", 2, color_setting_parameters_array, color_setting_answers_array, NULL, color_setting_tooltip, 0, FALSE }, \
/*12G SDI/OPTICAL*/ \
{ "Format :", "OSJ:1E:", "QSJ:1E", 1, sdi_12g_1080_50i_format_parameters_array, sdi_12g_1080_50i_format_answers_array, NULL, NULL, 0, TRUE }, \
{ "HDR Output Select :", "OSJ:1F:", "QSJ:1F", 3, hdr_output_select_parameters_array, hdr_output_select_answers_array, NULL, hdr_output_select_tooltip, 2, FALSE }, \
{ "V-Log Output Select :", "OSJ:57:", "QSJ:57", 2, v_log_output_select_parameters_array, v_log_output_select_answers_array, NULL, NULL, 1, FALSE }, \
{ "3G SDI Out :", "OSJ:20:", "QSJ:20", 2, sdi_3g_out_parameters_array, sdi_3g_out_answers_array, NULL, NULL, 0, FALSE }, \
/*3G SDI*/ \
{ "Format :", "OSJ:21:", "QSJ:21", 1, sdi_3g_1080_50i_format_parameters_array, sdi_3g_1080_50i_format_answers_array, NULL, NULL, 0, TRUE }, \
{ "HDR Output Select :", "OSJ:22:", "QSJ:22", 3, hdr_output_select_parameters_array, hdr_output_select_answers_array, NULL, hdr_output_select_tooltip, 2, FALSE }, \
{ "V-Log Output Select :", "OSJ:58:", "QSJ:58", 2, v_log_output_select_parameters_array, v_log_output_select_answers_array, NULL, NULL, 1, FALSE }, \
{ "3G SDI Out", "OSI:29:", "QSI:29", 2, sdi_3g_out_parameters_array, sdi_3g_out_answers_array, NULL, NULL, 0, FALSE }, \
/*MONI*/ \
{ "Format :", "OSJ:23:", "QSJ:23", 1, moni_1080_50i_format_parameters_array, moni_1080_50i_format_answers_array, NULL, NULL, 0, TRUE }, \
{ "HDR Output Select :", "OSJ:24:", "QSJ:24", 3, hdr_output_select_parameters_array, hdr_output_select_answers_array, NULL, hdr_output_select_tooltip, 2, FALSE }, \
{ "V-Log Output Select :", "OSJ:59:", "QSJ:59", 2, v_log_output_select_parameters_array, v_log_output_select_answers_array, NULL, NULL, 1, FALSE }, \
/*HDMI*/ \
{ "Format :", "OSJ:25:", "QSJ:25", 1, hdmi_1080_50i_format_parameters_array, hdmi_1080_50i_format_answers_array, NULL, NULL, 0, TRUE }, \
{ "HDR Output Select :", "OSJ:26:", "QSJ:26", 3, hdr_output_select_parameters_array, hdr_output_select_answers_array, NULL, hdr_output_select_tooltip, 2, FALSE }, \
{ "V-Log Output Select :", "OSJ:5A:", "QSJ:5A", 2, v_log_output_select_parameters_array, v_log_output_select_answers_array, NULL, NULL, 1, FALSE }, \
{ "Video Sampling :", "OSE:68:", "QSE:68", 2, hdmi_color_component_parameters_array, hdmi_color_component_answers_array, NULL, NULL, 0, FALSE }, \
};
int settings_parameters_indexes_array_AW_UE150[NB_SETTINGS_AW_UE150];
int osd_mix_AW_UE150 = 0x52; //3G SDI Off, HDMI On, IP On, 12G SDI/OPTICAL Off, MONI On
gboolean theme = FALSE;
gboolean show_master_rcp = TRUE;
fps_t output_fps_AW_HE130 = fps_50i;
fps_t output_fps_AW_UE150 = fps_50i;
GList *rcp_glist = NULL;
GList *rcp_start_glist = NULL;
GList *ghost_rcp_glist = NULL;
//settings page
GtkWidget *settings_page;
GtkWidget *settings_list_box;
GtkWidget *settings_configuration_button;
GtkWidget *settings_new_button;
GtkWidget *settings_delete_button;
GtkWidget *picture_level_value_label;
GtkWidget *tcp_port_entry;
GtkWidget *rs_combo_box_text;
GtkWidget *ip_waiting_label;
GtkWidget *rs_ok_label;
#ifdef MAIN_SETTINGS_READ_ONLY
GtkWidget *status_lamp_combo_box_text;
GtkWidget *tally_input_combo_box_text;
GtkWidget *picture_level_scale;
GtkWidget *osd_mix_sdi_toggle_button_AW_HE130, *osd_mix_hdmi_toggle_button_AW_HE130, *osd_mix_video_toggle_button_AW_HE130, *osd_mix_ip_toggle_button_AW_HE130;
GtkWidget *osd_mix_3g_sdi_toggle_button_AW_UE150, *osd_mix_hdmi_toggle_button_AW_UE150, *osd_mix_ip_toggle_button_AW_UE150, *osd_mix_12g_sdi_optical_toggle_button_AW_UE150, *osd_mix_moni_toggle_button_AW_UE150;
gboolean camera_settings_checked = FALSE;
gboolean camera_settings_AW_HE130_checked = FALSE;
gboolean camera_settings_AW_UE150_checked = FALSE;
gboolean update_settings_array_combo_box_text (gpointer index)
{
int i = GPOINTER_TO_INT(index);
gtk_combo_box_text_remove_all (GTK_COMBO_BOX_TEXT (settings_array[i].combo_box));
if ((settings_parameters_indexes_array[i] >= 0) || (settings_parameters_indexes_array[i] < settings_array[i].nb_parameters)) {
gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (settings_array[i].combo_box), settings_array[i].parameters[settings_parameters_indexes_array[i]].label);
gtk_combo_box_set_active (GTK_COMBO_BOX (settings_array[i].combo_box), 0);
}
return G_SOURCE_REMOVE;
}
gboolean update_settings_array_AW_HE130_combo_box_text (gpointer index)
{
int i = GPOINTER_TO_INT(index);
gtk_combo_box_text_remove_all (GTK_COMBO_BOX_TEXT (settings_array_AW_HE130[i].combo_box));
if ((settings_parameters_indexes_array_AW_HE130[i] >= 0) || (settings_parameters_indexes_array_AW_HE130[i] < settings_array_AW_HE130[i].nb_parameters)) {
gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (settings_array_AW_HE130[i].combo_box), settings_array_AW_HE130[i].parameters[settings_parameters_indexes_array_AW_HE130[i]].label);
gtk_combo_box_set_active (GTK_COMBO_BOX (settings_array_AW_HE130[i].combo_box), 0);
}
return G_SOURCE_REMOVE;
}
gboolean update_settings_array_AW_UE150_combo_box_text (gpointer index)
{
int i = GPOINTER_TO_INT(index);
gtk_combo_box_text_remove_all (GTK_COMBO_BOX_TEXT (settings_array_AW_UE150[i].combo_box));
if ((settings_parameters_indexes_array_AW_UE150[i] >= 0) || (settings_parameters_indexes_array_AW_UE150[i] < settings_array_AW_UE150[i].nb_parameters)) {
gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (settings_array_AW_UE150[i].combo_box), settings_array_AW_UE150[i].parameters[settings_parameters_indexes_array_AW_UE150[i]].label);
gtk_combo_box_set_active (GTK_COMBO_BOX (settings_array_AW_UE150[i].combo_box), 0);
}
return G_SOURCE_REMOVE;
}
gboolean update_status_lamp_combo_box_text (void)
{
gtk_combo_box_text_remove_all (GTK_COMBO_BOX_TEXT (status_lamp_combo_box_text));
if (status_lamp == 1) gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (status_lamp_combo_box_text), "Enable");
else gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (status_lamp_combo_box_text), "Disable");
gtk_combo_box_set_active (GTK_COMBO_BOX (status_lamp_combo_box_text), 0);
return G_SOURCE_REMOVE;
}
gboolean update_tally_input_combo_box_text (void)
{
gtk_combo_box_text_remove_all (GTK_COMBO_BOX_TEXT (tally_input_combo_box_text));
if (tally_input == 1) gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (tally_input_combo_box_text), "Enable");
else gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (tally_input_combo_box_text), "Disable");
gtk_combo_box_set_active (GTK_COMBO_BOX (tally_input_combo_box_text), 0);
return G_SOURCE_REMOVE;
}
gboolean update_picture_level_scale (void)
{
char label[8];
gtk_range_set_value (GTK_RANGE (picture_level_scale), picture_level);
if (picture_level == 0) gtk_label_set_text (GTK_LABEL (picture_level_value_label), "0");
else {
sprintf (label, "%+d", picture_level);
gtk_label_set_text (GTK_LABEL (picture_level_value_label), label);
}
return G_SOURCE_REMOVE;
}
gboolean update_osd_mix_AW_HE130 (void)
{
if (osd_mix_AW_HE130 & 0x01) {
gtk_button_set_label (GTK_BUTTON (osd_mix_sdi_toggle_button_AW_HE130), "On");
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (osd_mix_sdi_toggle_button_AW_HE130), TRUE);
} else {
gtk_button_set_label (GTK_BUTTON (osd_mix_sdi_toggle_button_AW_HE130), "Off");
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (osd_mix_sdi_toggle_button_AW_HE130), FALSE);
}
if (osd_mix_AW_HE130 & 0x02) {
gtk_button_set_label (GTK_BUTTON (osd_mix_hdmi_toggle_button_AW_HE130), "On");
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (osd_mix_hdmi_toggle_button_AW_HE130), TRUE);
} else {
gtk_button_set_label (GTK_BUTTON (osd_mix_hdmi_toggle_button_AW_HE130), "Off");
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (osd_mix_hdmi_toggle_button_AW_HE130), FALSE);
}
if (osd_mix_AW_HE130 & 0x08) {
gtk_button_set_label (GTK_BUTTON (osd_mix_video_toggle_button_AW_HE130), "On");
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (osd_mix_video_toggle_button_AW_HE130), TRUE);
} else {
gtk_button_set_label (GTK_BUTTON (osd_mix_video_toggle_button_AW_HE130), "Off");
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (osd_mix_video_toggle_button_AW_HE130), FALSE);
}
if (osd_mix_AW_HE130 & 0x10) {
gtk_button_set_label (GTK_BUTTON (osd_mix_ip_toggle_button_AW_HE130), "On");
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (osd_mix_ip_toggle_button_AW_HE130), TRUE);
} else {
gtk_button_set_label (GTK_BUTTON (osd_mix_ip_toggle_button_AW_HE130), "Off");
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (osd_mix_ip_toggle_button_AW_HE130), FALSE);
}
return G_SOURCE_REMOVE;
}
gboolean update_osd_mix_AW_UE150 (void)
{
if (osd_mix_AW_UE150 & 0x01) {
gtk_button_set_label (GTK_BUTTON (osd_mix_3g_sdi_toggle_button_AW_UE150), "On");
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (osd_mix_3g_sdi_toggle_button_AW_UE150), TRUE);
} else {
gtk_button_set_label (GTK_BUTTON (osd_mix_3g_sdi_toggle_button_AW_UE150), "Off");
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (osd_mix_3g_sdi_toggle_button_AW_UE150), FALSE);
}
if (osd_mix_AW_UE150 & 0x02) {
gtk_button_set_label (GTK_BUTTON (osd_mix_hdmi_toggle_button_AW_UE150), "On");
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (osd_mix_hdmi_toggle_button_AW_UE150), TRUE);
} else {
gtk_button_set_label (GTK_BUTTON (osd_mix_hdmi_toggle_button_AW_UE150), "Off");
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (osd_mix_hdmi_toggle_button_AW_UE150), FALSE);
}
if (osd_mix_AW_UE150 & 0x10) {
gtk_button_set_label (GTK_BUTTON (osd_mix_ip_toggle_button_AW_UE150), "On");
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (osd_mix_ip_toggle_button_AW_UE150), TRUE);
} else {
gtk_button_set_label (GTK_BUTTON (osd_mix_ip_toggle_button_AW_UE150), "Off");
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (osd_mix_ip_toggle_button_AW_UE150), FALSE);
}
if (osd_mix_AW_UE150 & 0x20) {
gtk_button_set_label (GTK_BUTTON (osd_mix_12g_sdi_optical_toggle_button_AW_UE150), "On");
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (osd_mix_12g_sdi_optical_toggle_button_AW_UE150), TRUE);
} else {
gtk_button_set_label (GTK_BUTTON (osd_mix_12g_sdi_optical_toggle_button_AW_UE150), "Off");
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (osd_mix_12g_sdi_optical_toggle_button_AW_UE150), FALSE);
}
if (osd_mix_AW_UE150 & 0x40) {
gtk_button_set_label (GTK_BUTTON (osd_mix_moni_toggle_button_AW_UE150), "On");
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (osd_mix_moni_toggle_button_AW_UE150), TRUE);
} else {
gtk_button_set_label (GTK_BUTTON (osd_mix_moni_toggle_button_AW_UE150), "Off");
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (osd_mix_moni_toggle_button_AW_UE150), FALSE);
}
return G_SOURCE_REMOVE;
}
#endif
void update_outputs_parameters_AW_UE150 (void)
{
switch (settings_parameters_indexes_array_AW_UE150[FREQUENCY_INDEX_AW_UE150]) {
case 0: //59,94Hz
settings_array_AW_UE150[FORMAT_INDEX_AW_UE150].nb_parameters = 8;
settings_array_AW_UE150[FORMAT_INDEX_AW_UE150].parameters = format_parameters_array_ntsc_AW_UE150;
settings_array_AW_UE150[FORMAT_INDEX_AW_UE150].answers = format_answers_array_ntsc_AW_UE150;
switch (settings_parameters_indexes_array_AW_UE150[FORMAT_INDEX_AW_UE150]) {
case 0: //720/59.94p
output_fps_AW_UE150 = fps_59_94p;
settings_array_AW_UE150[SDI_12G_OPTICAL_FORMAT_INDEX_AW_UE150].nb_parameters = 1;
settings_array_AW_UE150[SDI_12G_OPTICAL_FORMAT_INDEX_AW_UE150].parameters = sdi_12g_720_59_94p_format_parameters_array;
settings_array_AW_UE150[SDI_12G_OPTICAL_FORMAT_INDEX_AW_UE150].answers = sdi_12g_720_59_94p_format_answers_array;
settings_array_AW_UE150[SDI_3G_FORMAT_INDEX_AW_UE150].nb_parameters = 1;
settings_array_AW_UE150[SDI_3G_FORMAT_INDEX_AW_UE150].parameters = sdi_3g_720_59_94p_format_parameters_array;
settings_array_AW_UE150[SDI_3G_FORMAT_INDEX_AW_UE150].answers = sdi_3g_720_59_94p_format_answers_array;
settings_array_AW_UE150[MONI_FORMAT_INDEX_AW_UE150].nb_parameters = 1;
settings_array_AW_UE150[MONI_FORMAT_INDEX_AW_UE150].parameters = moni_720_59_94p_format_parameters_array;
settings_array_AW_UE150[MONI_FORMAT_INDEX_AW_UE150].answers = moni_720_59_94p_format_answers_array;
settings_array_AW_UE150[HDMI_FORMAT_INDEX_AW_UE150].nb_parameters = 1;
settings_array_AW_UE150[HDMI_FORMAT_INDEX_AW_UE150].parameters = hdmi_720_59_94p_format_parameters_array;
settings_array_AW_UE150[HDMI_FORMAT_INDEX_AW_UE150].answers = hdmi_720_59_94p_format_answers_array;
break;
case 1: //1080/59.94i
output_fps_AW_UE150 = fps_59_94i;
settings_array_AW_UE150[SDI_12G_OPTICAL_FORMAT_INDEX_AW_UE150].nb_parameters = 1;
settings_array_AW_UE150[SDI_12G_OPTICAL_FORMAT_INDEX_AW_UE150].parameters = sdi_12g_1080_59_94i_format_parameters_array;
settings_array_AW_UE150[SDI_12G_OPTICAL_FORMAT_INDEX_AW_UE150].answers = sdi_12g_1080_59_94i_format_answers_array;
settings_array_AW_UE150[SDI_3G_FORMAT_INDEX_AW_UE150].nb_parameters = 1;
settings_array_AW_UE150[SDI_3G_FORMAT_INDEX_AW_UE150].parameters = sdi_3g_1080_59_94i_format_parameters_array;
settings_array_AW_UE150[SDI_3G_FORMAT_INDEX_AW_UE150].answers = sdi_3g_1080_59_94i_format_answers_array;
settings_array_AW_UE150[MONI_FORMAT_INDEX_AW_UE150].nb_parameters = 1;
settings_array_AW_UE150[MONI_FORMAT_INDEX_AW_UE150].parameters = moni_1080_59_94i_format_parameters_array;
settings_array_AW_UE150[MONI_FORMAT_INDEX_AW_UE150].answers = moni_1080_59_94i_format_answers_array;
settings_array_AW_UE150[HDMI_FORMAT_INDEX_AW_UE150].nb_parameters = 1;
settings_array_AW_UE150[HDMI_FORMAT_INDEX_AW_UE150].parameters = hdmi_1080_59_94i_format_parameters_array;
settings_array_AW_UE150[HDMI_FORMAT_INDEX_AW_UE150].answers = hdmi_1080_59_94i_format_answers_array;
break;
case 2: //1080/29.97PsF
output_fps_AW_UE150 = fps_29_97p;
settings_array_AW_UE150[SDI_12G_OPTICAL_FORMAT_INDEX_AW_UE150].nb_parameters = 1;
settings_array_AW_UE150[SDI_12G_OPTICAL_FORMAT_INDEX_AW_UE150].parameters = sdi_12g_1080_29_97psf_format_parameters_array;
settings_array_AW_UE150[SDI_12G_OPTICAL_FORMAT_INDEX_AW_UE150].answers = sdi_12g_1080_29_97psf_format_answers_array;
settings_array_AW_UE150[SDI_3G_FORMAT_INDEX_AW_UE150].nb_parameters = 1;
settings_array_AW_UE150[SDI_3G_FORMAT_INDEX_AW_UE150].parameters = sdi_3g_1080_29_97psf_format_parameters_array;
settings_array_AW_UE150[SDI_3G_FORMAT_INDEX_AW_UE150].answers = sdi_3g_1080_29_97psf_format_answers_array;
settings_array_AW_UE150[MONI_FORMAT_INDEX_AW_UE150].nb_parameters = 1;
settings_array_AW_UE150[MONI_FORMAT_INDEX_AW_UE150].parameters = moni_1080_29_97psf_format_parameters_array;
settings_array_AW_UE150[MONI_FORMAT_INDEX_AW_UE150].answers = moni_1080_29_97psf_format_answers_array;
settings_array_AW_UE150[HDMI_FORMAT_INDEX_AW_UE150].nb_parameters = 1;
settings_array_AW_UE150[HDMI_FORMAT_INDEX_AW_UE150].parameters = hdmi_1080_29_97p_format_parameters_array;
settings_array_AW_UE150[HDMI_FORMAT_INDEX_AW_UE150].answers = hdmi_1080_29_97p_format_answers_array;
break;
case 3: //1080/59.94p
output_fps_AW_UE150 = fps_59_94p;
settings_array_AW_UE150[SDI_12G_OPTICAL_FORMAT_INDEX_AW_UE150].nb_parameters = 1;
settings_array_AW_UE150[SDI_12G_OPTICAL_FORMAT_INDEX_AW_UE150].parameters = sdi_12g_1080_59_94p_format_parameters_array;
settings_array_AW_UE150[SDI_12G_OPTICAL_FORMAT_INDEX_AW_UE150].answers = sdi_12g_1080_59_94p_format_answers_array;
settings_array_AW_UE150[SDI_3G_FORMAT_INDEX_AW_UE150].nb_parameters = 2;
settings_array_AW_UE150[SDI_3G_FORMAT_INDEX_AW_UE150].parameters = sdi_3g_1080_59_94p_format_parameters_array;
settings_array_AW_UE150[SDI_3G_FORMAT_INDEX_AW_UE150].answers = sdi_3g_1080_59_94p_format_answers_array;
settings_array_AW_UE150[MONI_FORMAT_INDEX_AW_UE150].nb_parameters = 1;
settings_array_AW_UE150[MONI_FORMAT_INDEX_AW_UE150].parameters = moni_1080_59_94p_format_parameters_array;
settings_array_AW_UE150[MONI_FORMAT_INDEX_AW_UE150].answers = moni_1080_59_94p_format_answers_array;
settings_array_AW_UE150[HDMI_FORMAT_INDEX_AW_UE150].nb_parameters = 1;
settings_array_AW_UE150[HDMI_FORMAT_INDEX_AW_UE150].parameters = hdmi_1080_59_94p_format_parameters_array;
settings_array_AW_UE150[HDMI_FORMAT_INDEX_AW_UE150].answers = hdmi_1080_59_94p_format_answers_array;
break;
case 4: //1080/29.97p
output_fps_AW_UE150 = fps_29_97p;
settings_array_AW_UE150[SDI_12G_OPTICAL_FORMAT_INDEX_AW_UE150].nb_parameters = 1;
settings_array_AW_UE150[SDI_12G_OPTICAL_FORMAT_INDEX_AW_UE150].parameters = sdi_12g_1080_29_97p_format_parameters_array;
settings_array_AW_UE150[SDI_12G_OPTICAL_FORMAT_INDEX_AW_UE150].answers = sdi_12g_1080_29_97p_format_answers_array;
settings_array_AW_UE150[SDI_3G_FORMAT_INDEX_AW_UE150].nb_parameters = 1;
settings_array_AW_UE150[SDI_3G_FORMAT_INDEX_AW_UE150].parameters = sdi_3g_1080_29_97p_format_parameters_array;
settings_array_AW_UE150[SDI_3G_FORMAT_INDEX_AW_UE150].answers = sdi_3g_1080_29_97p_format_answers_array;
settings_array_AW_UE150[MONI_FORMAT_INDEX_AW_UE150].nb_parameters = 1;
settings_array_AW_UE150[MONI_FORMAT_INDEX_AW_UE150].parameters = moni_1080_29_97p_format_parameters_array;
settings_array_AW_UE150[MONI_FORMAT_INDEX_AW_UE150].answers = moni_1080_29_97p_format_answers_array;
settings_array_AW_UE150[HDMI_FORMAT_INDEX_AW_UE150].nb_parameters = 1;
settings_array_AW_UE150[HDMI_FORMAT_INDEX_AW_UE150].parameters = hdmi_1080_29_97p_format_parameters_array;
settings_array_AW_UE150[HDMI_FORMAT_INDEX_AW_UE150].answers = hdmi_1080_29_97p_format_answers_array;
break;
case 5: //1080/23.98p (over 59.94i/p)
output_fps_AW_UE150 = fps_23_98p;
settings_array_AW_UE150[SDI_12G_OPTICAL_FORMAT_INDEX_AW_UE150].nb_parameters = 1;
settings_array_AW_UE150[SDI_12G_OPTICAL_FORMAT_INDEX_AW_UE150].parameters = sdi_12g_1080_23_98p_over_59_94i_format_parameters_array;
settings_array_AW_UE150[SDI_12G_OPTICAL_FORMAT_INDEX_AW_UE150].answers = sdi_12g_1080_23_98p_over_59_94i_format_answers_array;
settings_array_AW_UE150[SDI_3G_FORMAT_INDEX_AW_UE150].nb_parameters = 1;
settings_array_AW_UE150[SDI_3G_FORMAT_INDEX_AW_UE150].parameters = sdi_3g_1080_23_98p_over_59_94i_format_parameters_array;
settings_array_AW_UE150[SDI_3G_FORMAT_INDEX_AW_UE150].answers = sdi_3g_1080_23_98p_over_59_94i_format_answers_array;
settings_array_AW_UE150[MONI_FORMAT_INDEX_AW_UE150].nb_parameters = 1;
settings_array_AW_UE150[MONI_FORMAT_INDEX_AW_UE150].parameters = moni_1080_23_98p_over_59_94i_format_parameters_array;
settings_array_AW_UE150[MONI_FORMAT_INDEX_AW_UE150].answers = moni_1080_23_98p_over_59_94i_format_answers_array;
settings_array_AW_UE150[HDMI_FORMAT_INDEX_AW_UE150].nb_parameters = 1;
settings_array_AW_UE150[HDMI_FORMAT_INDEX_AW_UE150].parameters = hdmi_1080_23_98p_over_59_94i_format_parameters_array;
settings_array_AW_UE150[HDMI_FORMAT_INDEX_AW_UE150].answers = hdmi_1080_23_98p_over_59_94i_format_answers_array;
break;
case 6: //2160/29.97p
output_fps_AW_UE150 = fps_29_97p;
settings_array_AW_UE150[SDI_12G_OPTICAL_FORMAT_INDEX_AW_UE150].nb_parameters = 3;
settings_array_AW_UE150[SDI_12G_OPTICAL_FORMAT_INDEX_AW_UE150].parameters = sdi_12g_4k_29_97p_format_parameters_array;
settings_array_AW_UE150[SDI_12G_OPTICAL_FORMAT_INDEX_AW_UE150].answers = sdi_12g_4k_29_97p_format_answers_array;
settings_array_AW_UE150[SDI_3G_FORMAT_INDEX_AW_UE150].nb_parameters = 2;
settings_array_AW_UE150[SDI_3G_FORMAT_INDEX_AW_UE150].parameters = sdi_3g_4k_29_97p_format_parameters_array;
settings_array_AW_UE150[SDI_3G_FORMAT_INDEX_AW_UE150].answers = sdi_3g_4k_29_97p_format_answers_array;
settings_array_AW_UE150[MONI_FORMAT_INDEX_AW_UE150].nb_parameters = 2;
settings_array_AW_UE150[MONI_FORMAT_INDEX_AW_UE150].parameters = moni_4k_29_97p_format_parameters_array;
settings_array_AW_UE150[MONI_FORMAT_INDEX_AW_UE150].answers = moni_4k_29_97p_format_answers_array;
settings_array_AW_UE150[HDMI_FORMAT_INDEX_AW_UE150].nb_parameters = 2;
settings_array_AW_UE150[HDMI_FORMAT_INDEX_AW_UE150].parameters = hdmi_4k_29_97p_format_parameters_array;
settings_array_AW_UE150[HDMI_FORMAT_INDEX_AW_UE150].answers = hdmi_4k_29_97p_format_answers_array;
break;
case 7: //2160/59.94p
output_fps_AW_UE150 = fps_59_94p;
settings_array_AW_UE150[SDI_12G_OPTICAL_FORMAT_INDEX_AW_UE150].nb_parameters = 2;
settings_array_AW_UE150[SDI_12G_OPTICAL_FORMAT_INDEX_AW_UE150].parameters = sdi_12g_4k_59_94p_format_parameters_array;
settings_array_AW_UE150[SDI_12G_OPTICAL_FORMAT_INDEX_AW_UE150].answers = sdi_12g_4k_59_94p_format_answers_array;
settings_array_AW_UE150[SDI_3G_FORMAT_INDEX_AW_UE150].nb_parameters = 2;
settings_array_AW_UE150[SDI_3G_FORMAT_INDEX_AW_UE150].parameters = sdi_3g_4k_59_94p_format_parameters_array;
settings_array_AW_UE150[SDI_3G_FORMAT_INDEX_AW_UE150].answers = sdi_3g_4k_59_94p_format_answers_array;
settings_array_AW_UE150[MONI_FORMAT_INDEX_AW_UE150].nb_parameters = 1;
settings_array_AW_UE150[MONI_FORMAT_INDEX_AW_UE150].parameters = moni_4k_59_94p_format_parameters_array;
settings_array_AW_UE150[MONI_FORMAT_INDEX_AW_UE150].answers = moni_4k_59_94p_format_answers_array;
settings_array_AW_UE150[HDMI_FORMAT_INDEX_AW_UE150].nb_parameters = 2;
settings_array_AW_UE150[HDMI_FORMAT_INDEX_AW_UE150].parameters = hdmi_4k_59_94p_format_parameters_array;
settings_array_AW_UE150[HDMI_FORMAT_INDEX_AW_UE150].answers = hdmi_4k_59_94p_format_answers_array;
}
break;
case 1: //50Hz
switch (settings_parameters_indexes_array_AW_UE150[FORMAT_INDEX_AW_UE150]) {
case 0: //720/50p
output_fps_AW_UE150 = fps_50p;
settings_array_AW_UE150[SDI_12G_OPTICAL_FORMAT_INDEX_AW_UE150].nb_parameters = 1;
settings_array_AW_UE150[SDI_12G_OPTICAL_FORMAT_INDEX_AW_UE150].parameters = sdi_12g_720_50p_format_parameters_array;
settings_array_AW_UE150[SDI_12G_OPTICAL_FORMAT_INDEX_AW_UE150].answers = sdi_12g_720_50p_format_answers_array;
settings_array_AW_UE150[SDI_3G_FORMAT_INDEX_AW_UE150].nb_parameters = 1;
settings_array_AW_UE150[SDI_3G_FORMAT_INDEX_AW_UE150].parameters = sdi_3g_720_50p_format_parameters_array;
settings_array_AW_UE150[SDI_3G_FORMAT_INDEX_AW_UE150].answers = sdi_3g_720_50p_format_answers_array;
settings_array_AW_UE150[MONI_FORMAT_INDEX_AW_UE150].nb_parameters = 1;
settings_array_AW_UE150[MONI_FORMAT_INDEX_AW_UE150].parameters = moni_720_50p_format_parameters_array;
settings_array_AW_UE150[MONI_FORMAT_INDEX_AW_UE150].answers = moni_720_50p_format_answers_array;
settings_array_AW_UE150[HDMI_FORMAT_INDEX_AW_UE150].nb_parameters = 1;
settings_array_AW_UE150[HDMI_FORMAT_INDEX_AW_UE150].parameters = hdmi_720_50p_format_parameters_array;
settings_array_AW_UE150[HDMI_FORMAT_INDEX_AW_UE150].answers = hdmi_720_50p_format_answers_array;
break;
case 1: //1080/50i
output_fps_AW_UE150 = fps_50i;
settings_array_AW_UE150[SDI_12G_OPTICAL_FORMAT_INDEX_AW_UE150].nb_parameters = 1;
settings_array_AW_UE150[SDI_12G_OPTICAL_FORMAT_INDEX_AW_UE150].parameters = sdi_12g_1080_50i_format_parameters_array;
settings_array_AW_UE150[SDI_12G_OPTICAL_FORMAT_INDEX_AW_UE150].answers = sdi_12g_1080_50i_format_answers_array;
settings_array_AW_UE150[SDI_3G_FORMAT_INDEX_AW_UE150].nb_parameters = 1;
settings_array_AW_UE150[SDI_3G_FORMAT_INDEX_AW_UE150].parameters = sdi_3g_1080_50i_format_parameters_array;
settings_array_AW_UE150[SDI_3G_FORMAT_INDEX_AW_UE150].answers = sdi_3g_1080_50i_format_answers_array;
settings_array_AW_UE150[MONI_FORMAT_INDEX_AW_UE150].nb_parameters = 1;
settings_array_AW_UE150[MONI_FORMAT_INDEX_AW_UE150].parameters = moni_1080_50i_format_parameters_array;
settings_array_AW_UE150[MONI_FORMAT_INDEX_AW_UE150].answers = moni_1080_50i_format_answers_array;
settings_array_AW_UE150[HDMI_FORMAT_INDEX_AW_UE150].nb_parameters = 1;
settings_array_AW_UE150[HDMI_FORMAT_INDEX_AW_UE150].parameters = hdmi_1080_50i_format_parameters_array;
settings_array_AW_UE150[HDMI_FORMAT_INDEX_AW_UE150].answers = hdmi_1080_50i_format_answers_array;
break;
case 2: //1080/25PsF
output_fps_AW_UE150 = fps_25p;
settings_array_AW_UE150[SDI_12G_OPTICAL_FORMAT_INDEX_AW_UE150].nb_parameters = 1;
settings_array_AW_UE150[SDI_12G_OPTICAL_FORMAT_INDEX_AW_UE150].parameters = sdi_12g_1080_25psf_format_parameters_array;
settings_array_AW_UE150[SDI_12G_OPTICAL_FORMAT_INDEX_AW_UE150].answers = sdi_12g_1080_25psf_format_answers_array;
settings_array_AW_UE150[SDI_3G_FORMAT_INDEX_AW_UE150].nb_parameters = 1;
settings_array_AW_UE150[SDI_3G_FORMAT_INDEX_AW_UE150].parameters = sdi_3g_1080_25psf_format_parameters_array;
settings_array_AW_UE150[SDI_3G_FORMAT_INDEX_AW_UE150].answers = sdi_3g_1080_25psf_format_answers_array;
settings_array_AW_UE150[MONI_FORMAT_INDEX_AW_UE150].nb_parameters = 1;
settings_array_AW_UE150[MONI_FORMAT_INDEX_AW_UE150].parameters = moni_1080_25psf_format_parameters_array;
settings_array_AW_UE150[MONI_FORMAT_INDEX_AW_UE150].answers = moni_1080_25psf_format_answers_array;
settings_array_AW_UE150[HDMI_FORMAT_INDEX_AW_UE150].nb_parameters = 1;
settings_array_AW_UE150[HDMI_FORMAT_INDEX_AW_UE150].parameters = hdmi_1080_25p_format_parameters_array;
settings_array_AW_UE150[HDMI_FORMAT_INDEX_AW_UE150].answers = hdmi_1080_25p_format_answers_array;
break;
case 3: //1080/50p
output_fps_AW_UE150 = fps_50p;
settings_array_AW_UE150[SDI_12G_OPTICAL_FORMAT_INDEX_AW_UE150].nb_parameters = 1;
settings_array_AW_UE150[SDI_12G_OPTICAL_FORMAT_INDEX_AW_UE150].parameters = sdi_12g_1080_50p_format_parameters_array;
settings_array_AW_UE150[SDI_12G_OPTICAL_FORMAT_INDEX_AW_UE150].answers = sdi_12g_1080_50p_format_answers_array;
settings_array_AW_UE150[SDI_3G_FORMAT_INDEX_AW_UE150].nb_parameters = 2;
settings_array_AW_UE150[SDI_3G_FORMAT_INDEX_AW_UE150].parameters = sdi_3g_1080_50p_format_parameters_array;
settings_array_AW_UE150[SDI_3G_FORMAT_INDEX_AW_UE150].answers = sdi_3g_1080_50p_format_answers_array;
settings_array_AW_UE150[MONI_FORMAT_INDEX_AW_UE150].nb_parameters = 1;
settings_array_AW_UE150[MONI_FORMAT_INDEX_AW_UE150].parameters = moni_1080_50p_format_parameters_array;
settings_array_AW_UE150[MONI_FORMAT_INDEX_AW_UE150].answers = moni_1080_50p_format_answers_array;
settings_array_AW_UE150[HDMI_FORMAT_INDEX_AW_UE150].nb_parameters = 1;
settings_array_AW_UE150[HDMI_FORMAT_INDEX_AW_UE150].parameters = hdmi_1080_50p_format_parameters_array;
settings_array_AW_UE150[HDMI_FORMAT_INDEX_AW_UE150].answers = hdmi_1080_50p_format_answers_array;
break;
case 4: //1080/25p
output_fps_AW_UE150 = fps_25p;
settings_array_AW_UE150[SDI_12G_OPTICAL_FORMAT_INDEX_AW_UE150].nb_parameters = 1;
settings_array_AW_UE150[SDI_12G_OPTICAL_FORMAT_INDEX_AW_UE150].parameters = sdi_12g_1080_25p_format_parameters_array;
settings_array_AW_UE150[SDI_12G_OPTICAL_FORMAT_INDEX_AW_UE150].answers = sdi_12g_1080_25p_format_answers_array;
settings_array_AW_UE150[SDI_3G_FORMAT_INDEX_AW_UE150].nb_parameters = 1;
settings_array_AW_UE150[SDI_3G_FORMAT_INDEX_AW_UE150].parameters = sdi_3g_1080_25p_format_parameters_array;
settings_array_AW_UE150[SDI_3G_FORMAT_INDEX_AW_UE150].answers = sdi_3g_1080_25p_format_answers_array;
settings_array_AW_UE150[MONI_FORMAT_INDEX_AW_UE150].nb_parameters = 1;
settings_array_AW_UE150[MONI_FORMAT_INDEX_AW_UE150].parameters = moni_1080_25p_format_parameters_array;
settings_array_AW_UE150[MONI_FORMAT_INDEX_AW_UE150].answers = moni_1080_25p_format_answers_array;
settings_array_AW_UE150[HDMI_FORMAT_INDEX_AW_UE150].nb_parameters = 1;
settings_array_AW_UE150[HDMI_FORMAT_INDEX_AW_UE150].parameters = hdmi_1080_25p_format_parameters_array;
settings_array_AW_UE150[HDMI_FORMAT_INDEX_AW_UE150].answers = hdmi_1080_25p_format_answers_array;
break;
case 5: //2160/25p
output_fps_AW_UE150 = fps_25p;
settings_array_AW_UE150[SDI_12G_OPTICAL_FORMAT_INDEX_AW_UE150].nb_parameters = 3;
settings_array_AW_UE150[SDI_12G_OPTICAL_FORMAT_INDEX_AW_UE150].parameters = sdi_12g_4k_25p_format_parameters_array;
settings_array_AW_UE150[SDI_12G_OPTICAL_FORMAT_INDEX_AW_UE150].answers = sdi_12g_4k_25p_format_answers_array;
settings_array_AW_UE150[SDI_3G_FORMAT_INDEX_AW_UE150].nb_parameters = 2;
settings_array_AW_UE150[SDI_3G_FORMAT_INDEX_AW_UE150].parameters = sdi_3g_4k_25p_format_parameters_array;
settings_array_AW_UE150[SDI_3G_FORMAT_INDEX_AW_UE150].answers = sdi_3g_4k_25p_format_answers_array;
settings_array_AW_UE150[MONI_FORMAT_INDEX_AW_UE150].nb_parameters = 2;
settings_array_AW_UE150[MONI_FORMAT_INDEX_AW_UE150].parameters = moni_4k_25p_format_parameters_array;
settings_array_AW_UE150[MONI_FORMAT_INDEX_AW_UE150].answers = moni_4k_25p_format_answers_array;
settings_array_AW_UE150[HDMI_FORMAT_INDEX_AW_UE150].nb_parameters = 2;
settings_array_AW_UE150[HDMI_FORMAT_INDEX_AW_UE150].parameters = hdmi_4k_25p_format_parameters_array;
settings_array_AW_UE150[HDMI_FORMAT_INDEX_AW_UE150].answers = hdmi_4k_25p_format_answers_array;
break;
case 6: //2160/50p
output_fps_AW_UE150 = fps_50p;
settings_array_AW_UE150[SDI_12G_OPTICAL_FORMAT_INDEX_AW_UE150].nb_parameters = 2;
settings_array_AW_UE150[SDI_12G_OPTICAL_FORMAT_INDEX_AW_UE150].parameters = sdi_12g_4k_50p_format_parameters_array;
settings_array_AW_UE150[SDI_12G_OPTICAL_FORMAT_INDEX_AW_UE150].answers = sdi_12g_4k_50p_format_answers_array;
settings_array_AW_UE150[SDI_3G_FORMAT_INDEX_AW_UE150].nb_parameters = 2;
settings_array_AW_UE150[SDI_3G_FORMAT_INDEX_AW_UE150].parameters = sdi_3g_4k_50p_format_parameters_array;
settings_array_AW_UE150[SDI_3G_FORMAT_INDEX_AW_UE150].answers = sdi_3g_4k_50p_format_answers_array;
settings_array_AW_UE150[MONI_FORMAT_INDEX_AW_UE150].nb_parameters = 1;
settings_array_AW_UE150[MONI_FORMAT_INDEX_AW_UE150].parameters = moni_4k_50p_format_parameters_array;
settings_array_AW_UE150[MONI_FORMAT_INDEX_AW_UE150].answers = moni_4k_50p_format_answers_array;
settings_array_AW_UE150[HDMI_FORMAT_INDEX_AW_UE150].nb_parameters = 2;
settings_array_AW_UE150[HDMI_FORMAT_INDEX_AW_UE150].parameters = hdmi_4k_50p_format_parameters_array;
settings_array_AW_UE150[HDMI_FORMAT_INDEX_AW_UE150].answers = hdmi_4k_50p_format_answers_array;
}
break;
case 2: //24Hz
settings_array_AW_UE150[FORMAT_INDEX_AW_UE150].nb_parameters = 2;
settings_array_AW_UE150[FORMAT_INDEX_AW_UE150].parameters = format_parameters_array_24p_AW_UE150;
settings_array_AW_UE150[FORMAT_INDEX_AW_UE150].answers = format_answers_array_24p_AW_UE150;
output_fps_AW_UE150 = fps_24p;
switch (settings_parameters_indexes_array_AW_UE150[FORMAT_INDEX_AW_UE150]) {
case 0: //2160/24p
settings_array_AW_UE150[SDI_12G_OPTICAL_FORMAT_INDEX_AW_UE150].nb_parameters = 2;
settings_array_AW_UE150[SDI_12G_OPTICAL_FORMAT_INDEX_AW_UE150].parameters = sdi_12g_4k_24p_format_parameters_array;
settings_array_AW_UE150[SDI_12G_OPTICAL_FORMAT_INDEX_AW_UE150].answers = sdi_12g_4k_24p_format_answers_array;
settings_array_AW_UE150[SDI_3G_FORMAT_INDEX_AW_UE150].nb_parameters = 1;
settings_array_AW_UE150[SDI_3G_FORMAT_INDEX_AW_UE150].parameters = sdi_3g_24p_format_parameters_array;
settings_array_AW_UE150[SDI_3G_FORMAT_INDEX_AW_UE150].answers = sdi_3g_24p_format_answers_array;
settings_array_AW_UE150[MONI_FORMAT_INDEX_AW_UE150].nb_parameters = 1;
settings_array_AW_UE150[MONI_FORMAT_INDEX_AW_UE150].parameters = moni_24p_format_parameters_array;
settings_array_AW_UE150[MONI_FORMAT_INDEX_AW_UE150].answers = moni_24p_format_answers_array;
settings_array_AW_UE150[HDMI_FORMAT_INDEX_AW_UE150].nb_parameters = 2;
settings_array_AW_UE150[HDMI_FORMAT_INDEX_AW_UE150].parameters = hdmi_4k_24p_format_parameters_array;
settings_array_AW_UE150[HDMI_FORMAT_INDEX_AW_UE150].answers = hdmi_4k_24p_format_answers_array;
break;
case 1: //1080/24p
settings_array_AW_UE150[SDI_12G_OPTICAL_FORMAT_INDEX_AW_UE150].nb_parameters = 1;
settings_array_AW_UE150[SDI_12G_OPTICAL_FORMAT_INDEX_AW_UE150].parameters = sdi_12g_1080_24p_format_parameters_array;
settings_array_AW_UE150[SDI_12G_OPTICAL_FORMAT_INDEX_AW_UE150].answers = sdi_12g_1080_24p_format_answers_array;
settings_array_AW_UE150[SDI_3G_FORMAT_INDEX_AW_UE150].nb_parameters = 1;
settings_array_AW_UE150[SDI_3G_FORMAT_INDEX_AW_UE150].parameters = sdi_3g_24p_format_parameters_array;
settings_array_AW_UE150[SDI_3G_FORMAT_INDEX_AW_UE150].answers = sdi_3g_24p_format_answers_array;
settings_array_AW_UE150[MONI_FORMAT_INDEX_AW_UE150].nb_parameters = 1;
settings_array_AW_UE150[MONI_FORMAT_INDEX_AW_UE150].parameters = moni_24p_format_parameters_array;
settings_array_AW_UE150[MONI_FORMAT_INDEX_AW_UE150].answers = moni_24p_format_answers_array;
settings_array_AW_UE150[HDMI_FORMAT_INDEX_AW_UE150].nb_parameters = 1;
settings_array_AW_UE150[HDMI_FORMAT_INDEX_AW_UE150].parameters = hdmi_1080_24p_format_parameters_array;
settings_array_AW_UE150[HDMI_FORMAT_INDEX_AW_UE150].answers = hdmi_1080_24p_format_answers_array;
}
break;
case 3: //23.98Hz
settings_array_AW_UE150[FORMAT_INDEX_AW_UE150].nb_parameters = 3;
settings_array_AW_UE150[FORMAT_INDEX_AW_UE150].parameters = format_parameters_array_23_98p_AW_UE150;
settings_array_AW_UE150[FORMAT_INDEX_AW_UE150].answers = format_answers_array_23_98p_AW_UE150;
output_fps_AW_UE150 = fps_23_98p;
switch (settings_parameters_indexes_array_AW_UE150[FORMAT_INDEX_AW_UE150]) {
case 0: //2160/23.98p
settings_array_AW_UE150[SDI_12G_OPTICAL_FORMAT_INDEX_AW_UE150].nb_parameters = 3;
settings_array_AW_UE150[SDI_12G_OPTICAL_FORMAT_INDEX_AW_UE150].parameters = sdi_12g_4k_23_98p_format_parameters_array;
settings_array_AW_UE150[SDI_12G_OPTICAL_FORMAT_INDEX_AW_UE150].answers = sdi_12g_4k_23_98p_format_answers_array;
settings_array_AW_UE150[SDI_3G_FORMAT_INDEX_AW_UE150].nb_parameters = 2;
settings_array_AW_UE150[SDI_3G_FORMAT_INDEX_AW_UE150].parameters = sdi_3g_4k_23_98p_format_parameters_array;
settings_array_AW_UE150[SDI_3G_FORMAT_INDEX_AW_UE150].answers = sdi_3g_4k_23_98p_format_answers_array;
settings_array_AW_UE150[MONI_FORMAT_INDEX_AW_UE150].nb_parameters = 2;
settings_array_AW_UE150[MONI_FORMAT_INDEX_AW_UE150].parameters = moni_4k_23_98p_format_parameters_array;