-
Notifications
You must be signed in to change notification settings - Fork 2
/
chromatix_imx135_snapshot.h
9134 lines (8805 loc) · 342 KB
/
chromatix_imx135_snapshot.h
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
/*========================================================================
C H R O M A T I X
DESCRIPTION
Auto-Generated by Chromatix tool defining camera tunable parameters.
Copyright (c) 2014 QUALCOMM Technologies Incorporated. All Rights Reserved.
Qualcomm Technologies Incorporated Proprietary and Confidential.
Export of this technology or software is regulated by the U.S. Government.
Diversion contrary to U.S. law prohibited.
==========================================================================*/
/* Chromatix common DMSS header file version number */
0x0301,
0, // Not compressed
1, // Revision
/* VFE Blocks */
{
/* Black-Level Subtraction */
{
/*********************************************************************/
// Feature name :
// Use gain or lux_index to control black level subtraction.
// Range: 0 or 1.
// 0 means to use lux_index to control.
// 1 means to use gain to control.
/*********************************************************************/
0, /* Control Method - 1 = Gain, 0 = Lux Index */
/*********************************************************************/
// Feature name :
// Trigger point for black level subtraction.
// gain start :
// When gain >= gain_start, lowlight black level is interpolated with normal black level.
// Range: min_gain to max_gain. Gain means digital and analog combined gain.
// Effect: Increasing this value will use lowlight black level under lower light condition.
//
// gain end:
// When gain >= gain_end, 100% lowlight black level is used.
// Range: min_gain to max_gain. Gain means digital and analog combined gain.
// Constraint: gain_end > gain_start.
// Effect: Increasing this value will use 100% lowlight black level under lower light condition.
//
// lux_index_start:
// When lux_index >= lux_index_start, lowlight black level is interpolated with normal black level.
// Range: For linear AFR case: 0 to max_index from exposure table.
// For non-linear AFR case : 0 to max_index*numberof_FPS_supported.
// Effect: Increasing this value will use lowlight black level under lower light condition.
//
// lux_index_end:
// When lux_index >= lux_index_end, 100% lowlight black level is used.
// Range: For linear AFR case: 0 to max_index from exposure table.
// For non-linear AFR case : 0 to max_index*numberof_FPS_supported.
// Constraint: lux_index_end > lux_index_start.
// Effect: Increasing this value will use 100% lowlight black level under lower light condition.
//
/*********************************************************************/
/* Low-Light Trigger Points */
{
7.200000f, /* Gain Start */
8.000000f, /* Gain End */
351, /* Lux Index Start */
391, /* Lux Index End */
},
/*********************************************************************/
// Feature name :
// Amount of black level increase under lowlight.
// Range: 0 to "black level offset"(next entry in chromatix header)
// Constraint: Smaller than or equal to "black level offset".
// Effect: Larger value will increase signal level but has less contrast.
/*********************************************************************/
0, /* Max Black Increase */
/*********************************************************************/
// Feature name :
// 4 channel Black level offsets under normal and bright light.
// This set parameters is used in QSC6270(6240), QSC6295, QSD8x50.
// Range: 0 to 1023 for MSM7x25, MSM7x27 and QSD8x50; 0 to 256 for QSC6270(6240), QSC6295.
// Effect: Usually we should use sensor recommended value. Smaller value will
// reduce contrast and has "foggy" effect.
/*********************************************************************/
/* Four Channel Normal Light Black-Level */
{256, 256, 256, 256},
},
/* Channel Balance Gains */
{1.000000f, 1.000000f, 1.000000f, 1.000000f},
/******************************************************************************/
// Feature name : ABF2.
// Applicale chipset: QSD8x60, MSM7x30 and later.
// Applicable operation mode: For VF and snapshot.
//
// Desription of variables in chromatix_adaptive_bayer_filter_data_type2
// structure.
//
// Variable names: threshold_red[3], threshold_green[3],threshold_blue[3].
// The three threshold values for each of
// the red, green, and blue channels define boundaries for smoothing,
// no-processing, and sharpening regions of ABF filter.
// Default values (for 12-bit data):
// low-light : threshold_red[0]=24*16; threshold_red[1]=24*16; threshold_red[2]=25*16;
// med-light : threshold_red[0]=21*16; threshold_red[1]=21*16; threshold_red[2]=22*16;
// high-light: threshold_red[0]=18*16; threshold_red[1]=18*16; threshold_red[2]=19*16;
// Default values of threshold_green[0-2] and threshold_blue[0-2] are same as
// threshold_red[0-2] for different exposure levels
// Data range: 0 to 255*16 (for 12-bit data).
// Constraints: threshold_red[0] <= threshold_red[1] < threshold_red[2].
// Effect: Larger value for threshold_red[0] will result in increased smoothing area;
// larger value for threshold_red[1] will result in reduced sharpening area.
//
// Variable names: scale_factor_red[2], scale_factor_green[2],scale_factor_blue[2].
// Control extent of smoothing and sharpening in
// smoothing and sharpening regions of the new ABF filter.
// Default values:
// low-light : scale_factor_red[0]=0.80; scale_factor_red[1]=0.04;
// med-light : scale_factor_red[0]=0.68; scale_factor_red[1]=0.04;
// high-light : scale_factor_red[0]=0.50; scale_factor_red[1]=0.04;
// Default values of scale_factor_green[0-1] and scale_factor blue[0-1] are
// same as scale_factor_red[0-1] for different exposure levels
// Data range: 0 to 1.
// Constraints: 0 < scale_factor_red[0-1] <= 1; similar contrasints applicable
// to green- and blue-channel scaling factors.
// Effect: Larger value for scale_factor_red\green\blue[0] increases smoothing in
// smoothing region of ABF filter; larger value for scale_factor_red\green\blue[1]
// increases sharpening in sharpening region of ABF filter.
//
// variable name: a[2]
// Spatial component of ABF filter; controls
// influence of neighboring pixels on output pixel value
// default values:
// low-light : a[0] = a[1] = 1;
// med-light : a[0] = a[1] = 1;
// high-light : a[0] = a[1] = 1;
// Data range: 0 to 1.
// Constraints: 0 <= a[0-1] <= 1;
// Effect: When a[0] = a[1] = 0, ABF is essentially turned off; When a[0] = a[1] = 1,
// we see maximum smoothing/sharpening effects of applying the ABF filter.
//
// Variable name: table_pos[16].
// Lookup table values determine
// amount of smoothing at different levels of local gradient magnitude.
// Default values:
// table_pos[16] = {1.0000, 0.9764, 0.9214, 0.8346, 0.7244, 0.6063, 0.4882,
// 0.3780, 0.2756, 0.1969, 0.1339, 0.0866, 0.0551, 0.0315, 0.0236, 0.0079};
// Data range: 0 to 1.
// Constraints: 0 <= table_pos[0-15] <= 1;
// Effect: Larger values for table_pos[0-15] entries represent increased amount of
// smoothing. We do not recommend changing these values.
//
// Variable name: table_neg[8].
// Lookup table values determine
// amount of sharpening at different values of local gradient magnitude.
// Default values:
// table_neg[8] = {-1.000, -1.000, -1.000, -1.000, -1.000, -1.000, -1.000, -1.000}.
// Data range: -1.000 to 0.000
// Constraints: -1.0 <= table_neg[0-7] <= 0.0;
// Effect: Larger values for table_neg[0-7] represent increased amount of
// sharpening. We do not recommend changing these values.
/******************************************************************************/
/* Adaptive Bayer Filter 2 */
{
1, /* Control Method - 1 = Gain, 0 = Lux Index */
58, /* Enable Lux Index */
/******************************************************************************/
// Feature name : ABF2 Low Light Trigger Points
/******************************************************************************/
/* ABF2 Low Light Trigger Points */
{
7.600000f, /* Gain Start */
8.000000f, /* Gain End */
351, /* Lux Index Start */
391, /* Lux Index End */
},
/******************************************************************************/
// Feature name : ABF2 Bright Light Trigger Points
/******************************************************************************/
/* ABF2 Bright Light Trigger Points */
{
2.000000f, /* Gain Start */
1.000000f, /* Gain End */
195, /* Lux Index Start */
175, /* Lux Index End */
},
/******************************************************************************/
// Feature name : ABF2 Low Light parameters
/******************************************************************************/
/* ABF2 Low Light */
{
/* Red channel parameters */
{336, 352, 2736}, /* 12-bit pixels */
{0.614485f, 0.000000f},
/* Green channel parameters */
{288, 304, 2256}, /* 12-bit pixels */
{0.497424f, 0.000000f},
{1.000000f, 1.000000f},
/* Blue channel parameters */
{400, 416, 2256}, /* 12-bit pixels */
{0.669009f, 0.000000f},
/* Positive table */
{
1.000000f, 1.000000f, 0.985548f, 0.865594f,
0.736615f, 0.534724f, 0.377638f, 0.272777f,
0.167295f, 0.112228f, 0.061022f, 0.035961f,
0.024108f, 0.013819f, 0.009986f, 0.002855f
},
/* Negative table */
{
-0.096747f, -0.583850f, -0.541486f, -0.721507f,
-0.321562f, -0.537753f, -0.517660f, -0.491197f
},
},
/* ABF2 Normal Light */
{
/* Red channel parameters */
{160, 176, 2256}, /* 12-bit pixels */
{0.214458f, 0.000000f},
/* Green channel parameters */
{144, 160, 2256}, /* 12-bit pixels */
{0.139794f, 0.000000f},
{1.000000f, 1.000000f},
/* Blue channel parameters */
{176, 192, 2256}, /* 12-bit pixels */
{0.264728f, 0.000000f},
/* Positive table */
{
1.000000f, 1.000000f, 1.000000f, 1.000000f,
1.000000f, 0.946064f, 0.835131f, 0.693640f,
0.638642f, 0.503470f, 0.412155f, 0.309323f,
0.245695f, 0.193741f, 0.096116f, 0.051881f
},
/* Negative table */
{
-0.309211f, -0.930821f, -0.967661f, -0.491967f,
-0.615538f, -0.169531f, -0.354331f, -0.086573f
},
},
/* ABF2 Bright Light */
{
/* Red channel parameters */
{128, 144, 2416}, /* 12-bit pixels */
{0.104115f, 0.000000f},
/* Green channel parameters */
{112, 128, 2416}, /* 12-bit pixels */
{0.065117f, 0.000000f},
{1.000000f, 1.000000f},
/* Blue channel parameters */
{144, 160, 2256}, /* 12-bit pixels */
{0.126302f, 0.000000f},
/* Positive table */
{
1.000000f, 1.000000f, 1.000000f, 1.000000f,
1.000000f, 1.000000f, 0.932362f, 0.826970f,
0.756596f, 0.610715f, 0.507890f, 0.405071f,
0.303330f, 0.235734f, 0.146304f, 0.074483f
},
/* Negative table */
{
-0.332648f, -1.000000f, -0.893075f, -0.471341f,
-0.649155f, -0.129070f, -0.210115f, -0.068885f
},
},
},
/* Bad Pixel Correction */
{
/*********************************************************************/
// Feature name : bad pixel correction parameters
// Fmin and Fmax are used for bad pixel correction (BPC).
// Range: 1 to 255.
// Constraint: Fmax > Fmin.
// Effect: Smaller Fmin and higher Fmax will have least amount of correction.
// Setting Fmax=Fmin will have the max amount of correction.
/*********************************************************************/
/*********************************************************************/
// Feature name :
// The following BPC parameters are used for QSD8x50, QSC6270(6240), QSC6295,MSM7x25, MSM7x27.
//
/*********************************************************************/
/*********************************************************************/
// Feature name :
// Use gain or lux_index to control BPC.
// Range: 0 or 1.
// 0 means to use lux_index to control.
// 1 means to use gain to control.
/*********************************************************************/
0, /* Control Method - 1 = Gain, 0 = Lux Index */
/*********************************************************************/
// Feature name :
// Trigger point for lowlight BPC.
// gain start :
// When gain >= gain_start, lowlight BPC is interpolated with normal BPC.
// Range: min_gain to max_gain. Gain means digital and analog combined gain.
// Effect: Increasing this value will use lowlight BPC under lower light condition.
//
// gain end:
// When gain >= gain_end, 100% lowlight BPC is used.
// Range: min_gain to max_gain. Gain means digital and analog combined gain.
// Constraint: gain_end > gain_start.
// Effect: Increasing this value will use 100% lowlight BPC under lower light condition.
//
// lux_index_start:
// When lux_index >= lux_index_start, lowlight BPC is interpolated with normal BPC.
// Range: For linear AFR case: 0 to max_index from exposure table.
// For non-linear AFR case : 0 to max_index*numberof_FPS_supported.
// Effect: Increasing this value will use lowlight BPC under lower light condition.
//
// lux_index_end:
// When lux_index >= lux_index_end, 100% lowlight BPC is used.
// Range: for linear AFR case: 0 to max_index from exposure table.
// For non-linear AFR case : 0 to max_index*numberof_FPS_supported.
// Constraint: lux_index_end > lux_index_start.
// Effect: Increasing this value will use 100% lowlight BPC under lower light condition.
//
/*********************************************************************/
/* Low-Light Trigger Points */
{
7.600000f, /* Gain Start */
8.000000f, /* Gain End */
351, /* Lux Index Start */
391, /* Lux Index End */
},
32, /* Fmin */
96, /* Fmax */
32, /* Lowlight Fmin */
64, /* Lowlight Fmax */
/******************************************************************************/
// Feature name : bad pixel correction.
// Applicable chipset: MSM7x30, QSD8x60 and later.
// Applicable operation mode: Viewfinder and snapshot.
//
// Variable name: bpc_offset_r_hi.
// Red channel pixel difference higher offset value.
// Default value: 0.
// Data range: 0 to 1023.
// Constraints: bpc_offset_r_hi >= bpc_offset_r_lo.
// Effect: Higher value results in less DPC to be corrected.
//
// Variable name: bpc_offset_r_lo.
// Red channel pixel difference lower offset value.
// Default value: 0.
// Data range: 0 to 1023.
// Constraints: bpc_offset_r_hi >= bpc_offset_r_lo.
// Effect: Higher value results in less DPC to be corrected.
//
// Variable name: bpc_offset_gr_hi.
// Green (next to red) channel pixel difference higher offset value
// Default Value: 0.
// Data Range: 0 to 1023.
// Constraints: bpc_offset_gr_hi >= bpc_offset_gr_lo.
// Effect: Higher value results in less DPC to be corrected.
//
// Variable name: bpc_offset_gr_lo.
// Green (next to red) channel pixel difference lower offset value
// Default Value: 0.
// Data Range: 0 to 1023.
// Constraints: bpc_offset_gr_hi >= bpc_offset_gr_lo.
// Effect: Higher value results in less DPC to be corrected.
//
// Variable name: bpc_offset_gb_hi.
// Green (next to blue) channel pixel difference higher offset value.
// Default value: 0.
// Data range: 0 to 1023.
// Constraints: bpc_offset_gb_hi >= bpc_offset_gb_lo.
// Effect: Higher value results in less DPC to be corrected.
//
// Variable name: bpc_offset_gb_lo.
// Green (next to blue) channel pixel difference lower offset value.
// Default value: 0.
// Data range: 0 to 1023.
// Constraints: bpc_offset_gb_hi >= bpc_offset_gb_lo.
// Effect: Higher value results in less DPC to be corrected.
//
// Variable name: bpc_offset_b_hi.
// Blue channel pixel difference higher offset value.
// Default value: 0.
// Data range: 0 to 1023.
// Constraints: bpc_offset_b_hi >= bpc_offset_b_lo.
// Effect: Higher value results in less DPC to be corrected.
//
// variable name: bpc_offset_b_lo.
// Description: Blue channel pixel difference lower offset value.
// Default value: 0.
// Data range: 0 to 1023.
// Constraints: bpc_offset_b_hi >= bpc_offset_b_lo.
// Effect: Higher value results in less DPC to be corrected.
/******************************************************************************/
/* Offsets */
{
/* Normal Light */
{
20, /* R Hi */
2, /* R Lo */
20, /* Gr Hi */
2, /* Gr Lo */
20, /* Gb Hi */
2, /* Gb Lo */
20, /* B Hi */
2, /* B Lo */
},
/* Low Light */
{
20, /* R Hi */
2, /* R Lo */
20, /* Gr Hi */
2, /* Gr Lo */
20, /* Gb Hi */
2, /* Gb Lo */
20, /* B Hi */
2, /* B Lo */
},
},
/******************************************************************************/
// Feature name : bad cluster correction (BCC)
/******************************************************************************/
0, /* Control Method - 1 = Gain, 0 = Lux Index */
/******************************************************************************/
// Feature name : BCC lowlight trigger points
/******************************************************************************/
/* Low-Light Trigger Points */
{
7.600000f, /* Gain Start */
8.000000f, /* Gain End */
351, /* Lux Index Start */
391, /* Lux Index End */
},
32, /* Fmin */
96, /* Fmax */
32, /* Lowlight Fmin */
96, /* Lowlight Fmax */
/******************************************************************************/
// Feature name : BCC offset parameters
// Applicable chipset: 8960 and later.
// Applicable operation mode: Viewfinder and snapshot.
//
// Variable name: bcc_offset_r_hi.
// Red channel pixel difference higher offset value.
// Default value: 0.
// Data range: 0 to 1023.
// Constraints: bcc_offset_r_hi >= bcc_offset_r_lo.
// Effect: Higher value results in less BCC to be corrected
//
// Variable name: bcc_offset_r_lo.
// Red channel pixel difference lower offset value.
// Default value: 0.
// Data range: 0 to 1023.
// Constraints: bcc_offset_r_hi >= bcc_offset_r_lo.
// Effect: Higher value results in less DCC to be corrected.
//
// Variable name: bcc_offset_gr_hi.
// Green(next to red) channel pixel difference higher offset value.
// Default value: 0.
// Data range: 0 to 1023.
// Constraints: bcc_offset_gr_hi >= bcc_offset_gr_lo.
// Effect: Higher value results in less DCC to be corrected.
//
// Variable name: bcc_offset_gr_lo.
// Green(next to red) channel pixel difference lower offset value.
// Default value: 0.
// Data range: 0 to 1023.
// Constraints: bcc_offset_gr_hi >= bcc_offset_gr_lo.
// Effect: Higher value results in less DCC to be corrected.
//
// Variable name: bcc_offset_gb_hi.
// Green (next to blue) channel pixel difference higher offset value.
// Default value: 0.
// Data range: 0 to 1023.
// Constraints: bcc_offset_gb_hi >= bcc_offset_gb_lo.
// Effect: Higher value results in less DCC to be corrected.
//
// Variable name: bcc_offset_gb_lo.
// Green (next to blue) channel pixel difference lower offset value.
// Default value: 0.
// Data range: 0 to 1023.
// Constraints: bcc_offset_gb_hi >= bcc_offset_gb_lo.
// Effect: Higher value results in less DCC to be corrected.
//
// Variable name: bcc_offset_b_hi.
// Blue channel pixel difference higher offset value.
// Default value: 0.
// Data range: 0 to 1023.
// Constraints: bcc_offset_b_hi >= bcc_offset_b_lo.
// Effect: Higher value results in less DCC to be corrected.
//
// Variable name: bcc_offset_b_lo.
// Blue channel pixel difference lower offset value.
// Default value: 0.
// Data range: 0 to 1023.
// Constraints: bcc_offset_b_hi >= bcc_offset_b_lo.
// Effect: Higher value results in less DCC to be corrected.
/******************************************************************************/
/* Offsets */
{
/* Normal Light */
{
20, /* R Hi */
2, /* R Lo */
20, /* Gr Hi */
2, /* Gr Lo */
20, /* Gb Hi */
2, /* Gb Lo */
20, /* B Hi */
2, /* B Lo */
},
/* Low Light */
{
20, /* R Hi */
2, /* R Lo */
20, /* Gr Hi */
2, /* Gr Lo */
20, /* Gb Hi */
2, /* Gb Lo */
20, /* B Hi */
2, /* B Lo */
},
},
},
/* Demosaic3 */
{
0, /* Control Method - 1 = Gain, 0 = Lux Index */
/******************************************************************************/
// Feature name : Demosaic3 lowlight trigger points
/******************************************************************************/
/* Low-Light Trigger Points */
{
7.600000f, /* Gain Start */
8.000000f, /* Gain End */
351, /* Lux Index Start */
391, /* Lux Index End */
},
/******************************************************************************/
// Feature name: Demosaic3.
// Applicale chipset(s): 8960, 8x55A and later chipsets.
// Applicable operation mode:
// Viewfinder, snapshot processing, and video modes.
// 3A mode: N/A.
//
// Variable name: wk[18] // HW: 10uQ10
// Discrete adaboost parameters required for local window classification.
// Default value: {0.1338, 0.0889, 0.0889, 0.9990, 0.9004, 0.0908, 0.1904,
// 0.0967, 0.0625, 0.3115, 0.1924, 0.0859, 0.0820, 0.1064, 0.1475, 0.0957,
// 0.0645, 0.0742}.
// Range for each element in 18-D array: [0,1.0].
// The classification parameters are optimized in an offline
// training process. Once the parameters are optimized, they remain fixed.
//
// Variable name: bk[18] // HW: 1uQ0
// Discrete adaboost parameters required for local window classification.
// Default: {1, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1, 1, 0, 1, 1}.
// Range for each element in 18-D array: {0,1}.
// The classification parameters are optimized in an offline
// training process. Once the parameters are optimized, they remain fixed.
//
// Variable name: lk[18] // HW: 4uQ0
// Discrete adaboost parameters required for local window classification.
// Default value: {0, 0, 1, 2, 2, 3, 9, 9, 9, 4, 4, 5, 6, 7, 8, 8, 10, 10}.
// Range for each element in 18-D array is {0, 1, ..., 12}.
// The classification parameters are optimized in an offline
// training process. Once the parameters are optimized, they remain fixed.
//
// Variable name: Tk[18] // HW: 10sQ0
// Discrete adaboost parameters required for local window classification.
// Default: {2, 1, 0, 0, -1, 2, 0, -1, 1, 0, -1, 2, 0, 2, 2, 1, 0, 100}.
// Range for each element in 18-D array {-512, ..., 511}
// The classification parameters are optimized in an offline training process.
// Once the parameters are optimized, they remain fixed.
/******************************************************************************/
/* Demosaic LUT */
{
/* wk */
{
0.100000f, 0.100000f, 0.100000f, 0.100000f, 0.100000f, 0.100000f, 0.100000f, 0.100000f, 0.100000f,
0.100000f, 0.100000f, 0.100000f, 0.100000f, 0.100000f, 0.100000f, 0.100000f, 0.100000f, 0.100000f
},
/* bk */
{
1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1
},
/* lk */
{
0, 1, 2, 3, 4, 5, 6, 7, 8,
0, 1, 2, 3, 4, 5, 6, 7, 8
},
/* Tk */
{
3, 3, 3, 3, 3, 3, 3, 3, 3,
-2, -2, -2, -2, -2, -2, -2, -2, -2
},
},
/******************************************************************************/
// Applicale chipset(s): 8960, 8x55A and later chipsets.
// Applicable operation mode:
// Viewfinder, snapshot processing, and video modes.
// 3A mode: N/A.
//
// Variable names: demosic3_aG[2] //HW: 6uQ6
// Green-channel interpolation parameter (2 light conditions).
// Default value: 0.4 (for each light condition).
// Range: [0.3,0.5].
// This parameter is used to control the tradeoff between noise
// suppression and aliasing. A higher value of this variable provides more
// noise suppression but, on the negative side, leads to higher aliasing.
// For best performance, this parameter should be optimized separately for
// low, medium, and high lux-index levels. The default value shown above works
// reasonably well for all lux-index levels, and for both snapshot and
// viewfinder modes.
//
// Variable names: demosic3_bL[2] //HW: 8uQ8
// Green-channel interpolation parameter (2 light conditions).
// Default value: 0.0 (for each light condition).
// Range: [0,0.46].
// In general, a low value of this parameter provides better noise
// suppression while a high value of bL provides better detail preservation.
// For best performance, the parameters should be optimized separately for low,
// medium, and high lux-index levels. The default value shown above works
// reasonably well for all lux-index levels and for both preview and snapshot
// modes.
/******************************************************************************/
/* aG */
{
0.400000f, /* aG[0] */
0.400000f, /* aG[1] */
},
/* bL */
{
0.000000f, /* bL[0] */
0.000000f, /* bL[1] */
},
},
/* Chroma and Luma Filters */
{
1, /* Control Method - 1 = Gain, 0 = Lux Index */
/******************************************************************************/
// Feature name : Chroma filter lowlight trigger points.
/******************************************************************************/
/* Low-Light Trigger Points */
{
7.600000f, /* Gain Start */
8.000000f, /* Gain End */
351, /* Lux Index Start */
391, /* Lux Index End */
},
1, /* Enable Index */
/******************************************************************************/
// Feature name : Chroma filter.
// Applicale chipset(s): 8960, 8x55A and later chipsets.
// Applicable operation mode:
// Viewfinder, snapshot processing, and video modes.
// 3A mode: N/A.
//
// Variable name: h[4]
// Horizontal component of separable Gaussian filter.
// Default value : {0.1429, 0.1429, 0.1429, 0.142}.
// Range of each component of array: [0,1.0].
// Constraints: h[0]>=h[1] >=h[2] >=h[3]; h[0]+2*h[1]+2*h[2]+2*h[3] = 1.
// Effect: Smoothing amount decreaes as h[1], h[2], and h[3] get smaller.
// The default value shown above works great for all lux-index levels,
// and for both viewfinder and snapshot modes. However, for greater
// flexibility, current recommendation is to tune it separately for different
// lux-index levels.
//
// Variable name: v[2]
// Vertical component of separable Gaussian filter.
// Default value: {0.3333, 0.3333}.
// Range of each component of array [0,1.0].
// Constraints: v[0]>=v[1]; v[0]+2*v[1] = 1.
// Effect: Smoothing amount decreases as v[1] gets smaller.
// The default value shown above works great for all lux-index levels and
// for both viewfinder and snapshot modes. However, for greater flexibility,
// current recommendation is to tune it separately for different lux-index
// levels.
/******************************************************************************/
/* Filters */
{
/* Lowlight Chroma Filter */
{
/* H */
{
1.000000f, 0.000000f, 0.000000f, 0.000000f
},
/* V */
{
1.000000f, 0.000000f
},
},
/* Normal Light Chroma Filter */
{
/* H */
{
1.000000f, 0.000000f, 0.000000f, 0.000000f
},
/* V */
{
1.000000f, 0.000000f
},
},
},
1, /* Control Method - 1 = Gain, 0 = Lux Index */
/******************************************************************************/
// Feature name : Luma filter low light trigger points.
/******************************************************************************/
/* Low-Light Trigger Points */
{
7.600000f, /* Gain Start */
8.000000f, /* Gain End */
351, /* Lux Index Start */
391, /* Lux Index End */
},
/******************************************************************************/
// Feature name : Luma filter bright light trigger points.
/******************************************************************************/
/* Bright Light Trigger Points */
{
2.000000f, /* Gain Start */
1.000000f, /* Gain End */
195, /* Lux Index Start */
175, /* Lux Index End */
},
1, /* Enable Index */
/******************************************************************************/
// Feature name : Luma filter low light parameters.
/******************************************************************************/
/* Luma Filter Low Light */
{
/* Thresholds */
{1040, 1056, 2256}, /* 12-bit pixels */
/* Scale Factors */
{1.000000f, 0.000000f},
/* Positive table */
{
1.000000f, 0.979712f, 0.831612f, 0.519816f,
0.265263f, 0.162449f, 0.084289f, 0.049208f,
0.045137f, 0.011589f, 0.010200f, 0.009285f,
0.009285f, 0.009285f, 0.009285f, 0.002485f
},
/* Negative table */
{
-0.027194f, -0.494347f, -0.077429f, -0.905499f,
-0.086401f, -0.623820f, -1.000000f, -0.417148f
},
},
/******************************************************************************/
// Feature name : Luma filter normal light parameters.
/******************************************************************************/
/* Luma Filter Normal Light */
{
/* Thresholds */
{192, 208, 2256}, /* 12-bit pixels */
/* Scale Factors */
{0.360461f, 0.000000f},
/* Positive table */
{
1.000000f, 1.000000f, 1.000000f, 1.000000f,
0.927132f, 0.854263f, 0.781395f, 0.635658f,
0.504637f, 0.388331f, 0.330179f, 0.272026f,
0.179389f, 0.110420f, 0.041451f, 0.006967f
},
/* Negative table */
{
-0.218856f, -0.813988f, -1.000000f, -0.747070f,
-0.391978f, -0.349958f, -0.315830f, -0.192017f
},
},
/******************************************************************************/
// Feature name : Luma filter bright light parameters.
/******************************************************************************/
/* Luma Filter Bright Light */
{
/* Thresholds */
{144, 160, 2256}, /* 12-bit pixels */
/* Scale Factors */
{0.123593f, 0.000000f},
/* Positive table */
{
1.000000f, 1.000000f, 1.000000f, 1.000000f,
1.000000f, 1.000000f, 0.901241f, 0.703724f,
0.703724f, 0.506207f, 0.407449f, 0.341902f,
0.210808f, 0.210808f, 0.079715f, 0.014168f
},
/* Negative table */
{
-0.482311f, -1.000000f, -0.977266f, -0.411395f,
-0.738548f, -0.112810f, -0.226733f, -0.016948f
},
},
},
/* Color Correction */
{
/*********************************************************************/
// Feature name :
// Use gain or lux_index to control color correction.
// Range: 0 or 1.
// 0 means to use lux_index to control
// 1 means to use gain to control
/*********************************************************************/
0, /* Control Method - 1 = Gain, 0 = Lux Index */
/*********************************************************************/
// Feature name :
// Trigger point for color correction.
// gain start :
// When gain >= gain_start, lowlight CC is interpolated with normal CC.
// default: N/A
// Range: min_gain to max_gain. Gain means digital and analog combined gain.
// Effect: Increasing this value will use lowlight CC under lower light condition.
//
// gain end:
// When gain >= gain_end, 100% lowlight CC is used.
// default: N/A
// range: min_gain to max_gain. Gain means digital and analog combined gain.
// constraint: gain_end > gain_start.
// effect: Increasing this value will use 100% lowlight CC under lower light condition.
//
// lux_index_start:
// When lux_index >= lux_index_start, lowlight CC is interpolated with normal CC.
// default: N/A
// range: For linear AFR case: 0 to max_index from exposure table.
// For non-linear AFR case : 0 to max_index*numberof_FPS_supported.
// effect: Increasing this value will use lowlight CC under lower light condition
//
// lux_index_end:
// When lux_index >= lux_index_end, 100% lowlight CC is used.
// default: N/A
// range: Ror linear AFR case: 0 to max_index from exposure table.
// For non-linear AFR case : 0 to max_index*numberof_FPS_supported.
// constraint: lux_index_end > lux_index_start.
// effect: Increasing this value will use 100% lowlight CC under lower light condition.
//
/*********************************************************************/
/* Trigger Points */
{
7.200000f, /* Gain Start */
8.000000f, /* Gain End */
351, /* Lux Index Start */
391, /* Lux Index End */
},
/* A CCT Trigger */
{
/*********************************************************************/
// Feature name :
// Trigger point for color temperature related control (A).
// Applicable chipset: For all chipsets.
// 3A version: 2.2
// When the color temperature < A_start and > A_end, use interpolation between A and FL.
// When the color temperature >=A_end, just use A parameters.
// Range: 4100 > A_start > A_end > 2850.
// Effect: A_start and A_end controls the range of interpolation between A and FL.
// Constraint: A_start > A_end.
/*********************************************************************/
3350,//3900, /* Start */ Tuned CCT triggers
3200,//3750 /* End */ Tuned CCT triggers
},
/* D65 CCT Trigger */
{
/*********************************************************************/
// Feature name :
// Trigger point for color temperature related control (Daylight).
// Applicable chipset: For all chipsets.
// 3A version: 2.2
// When the color temperature > Daylight_start and < Daylight_end, use interpolation between D65 and FL.
// When the color temperature >=D65_end, just use D65 parameters.
// Range: 4100 < Dayligh_start < Dayligh_end < 5000.
// Effect: Daylight_start and Daylight_end controls the range of interpolation between Daylight and FL.
// Constraint: Daylight_start < Daylight_end.
/*********************************************************************/
4200, /* Start */
4590, /* End */
},
/******************************************************************************/
// Feature name: Color Correction Trigger Point for LED Flash
// Applicale chipset(s): ALL with LED Flash
// Applicable operation mode: Flash Snapshot and ZSL, determined in preview
//
// Variable name: CC_LED_start
// Sets start trigger for interpolation of CC
// k1 = aec_d->flash_si.off / aec_d->flash_si.high;
// Default value: 1.0
// Data range: 1.0 to 100
// Constraints: None
// Effect: Higher value allows less LED CC to be used
//
// Variable name: CC_LED_end
// Sets end trigger for interpolation of CC
// k1 = aec_d->flash_si.off / aec_d->flash_si.high;
// Default value: 7.5
// Data range: 1.0 to 100
// Constraints: None
// Effect: Higher value allows less LED CC to be used, value closer to
// CC_LED_start may cause shot to shot variation due to sudden change in CC
/******************************************************************************/
1.000000f, /* LED Start */
7.500000f, /* LED End */
/******************************************************************************/
// Feature name: Color Correction Trigger Point for Xenon Strobe Flash
// Applicale chipset(s): ALL with Strobe Flash
// Applicable operation mode: Flash Snapshot and ZSL, determined in preview
//
// Variable name: CC_strobe_start
// Sets start trigger for interpolation of CC
// k1 = aec_d->flash_si.off / aec_d->flash_si.high;
// Default value: 1.0
// Data range: 1.0 to 100
// Constraints: None
// Effect: Higher value allows less Xenon Strobe CC to be used
//
// variable name: CC_strobe_end
// Sets end trigger for interpolation of CC
// k1 = aec_d->flash_si.off / aec_d->flash_si.high;
// Default value: 7.5
// Data range: 1.0 to 100
// Constraints: None
// Effect: Higher value allows less Xenon Flash CC to be used, value closer to
// CC_strobe_start may cause shot to shot variation due to sudden change in CC
/******************************************************************************/
1.000000f, /* Strobe Start */
7.500000f, /* Strobe End */
/*********************************************************************/
// Feature name :
// Normal and bright light color correction.
// 3x3 coefficients:
// Data range: -15.99 to 15.99.
// Constraint: The sum of each row needs to be 1.
// Effect: Higher diagonal values result in higher color saturation with higher noise.
//
// 3 offsets
// Data range: -1023 to 1023.
// Default : 0
// Effect: Negative values will make image darker while positive values make image brighter.