summaryrefstree
path: root/vendor/etc/camera/csidtg_chromatix.xml
blob: 83018a0add8c149c3ac5ce360daa22976495e0fd (plain)
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
<!--
  Copyright (c) 2015-2016 Qualcomm Technologies, Inc.
  All Rights Reserved.
  Confidential and Proprietary - Qualcomm Technologies, Inc.
-->

<!--
CommonChromatixInfo:
	CommonChromatixInfo is the information about chromatix needed for
		various use cases.
	Ex:- Preview, Snapshot, ZSL, HFR, HDR, Video, Liveshot for ISP, CPP,
		3A and SW PostProc.
	Entries in this node are common for all sensor modes.

ResolutionChromatixInfo:
	ResolutionChromatixInfo is the information about chromatix needed for
		various use cases.
	Ex:- Preview, Snapshot, ZSL, HFR, HDR, Video, Liveshot for ISP, CPP,
		3A and SW PostProc.
	Entries in this node are specific to sensor resolution.

ChromatixName:
	Contains the list of chromatix names for all modules.
	special_mode_mask:
		It is the bit mask for special modes, which is used for
			chromatix selection.
		Special modes can be any mode that needs a special chromatix.
		Ex:- scene mode, DZOOM mode, OIS capture mode, flash mode
		This is applicable for CommonChromatixInfo and
			ResolutionChromatixInfo.
		special_mode_mask="0" means none of the special modes are
			selected.
	sensor_resolution_index:
		It is the sensor resolution index for which chromatix libraries
			will be choosen.
		It is applicable only in ResolutionChromatixInfo.

ISPCommon :
	Common tuning library name for ISP
ISPPreview :
	Preview tuning library name for ISP
ISPSnapshot :
	Snapshot tuning library name for ISP
CPPCommon :
	Common tuning library name for CPP
CPPPreview :
	Preview tuning library name for CPP
CPPSnapshot :
	Snapshot tuning library name for CPP
CPPLiveshot :
	Liveshot tuning library name for CPP
PostProc :
	Tuning library name for postproc module
A3Preview :
	Preview tuning library for 3A
A3Video :
	Video tuning library for 3A

Order of Resolution Pick:
	Assume the current sensor mode is "r" and special mode mask is "s".
	Chromatix for a module and type is choosen in this order till we find a
		valid chroamtix file name or else NULL is returned.
	1) From ResolutionChromatixInfo node for which sensor_resolution_index
		is "r" and special_mode_mask is "s".
	2) From CommonChromatixInfo node for which special_mode_mask is "s".
	3) From ResolutionChromatixInfo node for which sensor_resolution_index
		is "r" and special_mode_mask is "0".
	4) From CommonChromatixInfo node for which special_mode_mask is "0".
	5) NULL is returned if we dont find in any of the above cases.

special_mode_mask has values from this list:
	"FLASH"
	"ZOOM_UPSCALE"
	"ZOOM_DOWNSCALE"
	"OIS_CAPTURE"
	"ISO_100"
	"ISO_200"
	"ISO_400"
	"ISO_800"
	"ISO_1600"
	"DIM_720P"
	"DIM_1080P"
	"DIM_UHD"
	"SCENE_LANDSCAPE"
	"SCENE_SNOW"
	"SCENE_BEACH"
	"SCENE_SUNSET"
	"SCENE_NIGHT"
	"SCENE_PORTRAIT"
	"SCENE_BACKLIGHT"
	"SCENE_SPORTS"
	"SCENE_ANTISHAKE"
	"SCENE_FLOWERS"
	"SCENE_CANDLELIGHT"
	"SCENE_FIREWORKS"
	"SCENE_PARTY"
	"SCENE_NIGHT_PORTRAIT"
	"SCENE_THEATRE"
	"SCENE_ACTION"
	"SCENE_AR"
	"SCENE_FACE_PRIORITY"
	"SCENE_BARCODE"

special_mode_mask:
	special_mode_mask is a string or a group of strings from the above list
		separated by a comma(,) or pipe (|) but not both.
	Multiple strings in special_mode_mask separated by | share same
		chromatix name. It picks the chromatix when any one of the
		modes mentioned in the list ar selected.
	Multiple strings in special_mode_mask separated by , means to use the
		chromatix when all the those modes are selected.
	special_mode_mask can contain any number of special modes delimited by
		, or | but cannot be both.
	Valid usecases:
		"ISO_100|SCENE_BEACH|SCENE_SNOW"
		"ISO_100,SCENE_BEACH,SCENE_SNOW"
	Invalid usecases:
		"ISO_100|SCENE_BEACH,SCENE_SNOW"
		"ISO_100,SCENE_BEACH|SCENE_SNOW"

Creating special_mode_mask examples:
	If a special chromatix is required for ISO100 then
		special_mode_mask="ISO_100"
	If a special chromatix is required when both ISO100 and BEACH are set
		special_mode_mask="ISO_100,SCENE_BEACH"
	If same chromatix is to be used for SPORTS, BEACH, SNOW then
		special_mode_mask="ISO_100|SCENE_BEACH|SCENE_SNOW"
-->

<ChromatixConfigurationRoot>
  <CommonChromatixInfo>
    <ChromatixName>
      <ISPCommon>csidtg_common</ISPCommon>
      <PostProc>csidtg_postproc</PostProc>
      <ISPPreview>csidtg_preview</ISPPreview>
      <ISPSnapshot>csidtg_preview</ISPSnapshot>
      <ISPVideo>csidtg_preview</ISPVideo>
      <CPPPreview>csidtg_cpp_preview</CPPPreview>
      <CPPSnapshot>csidtg_cpp_preview</CPPSnapshot>
      <CPPVideo>csidtg_cpp_preview</CPPVideo>
      <CPPLiveshot>csidtg_cpp_preview</CPPLiveshot>
      <A3Preview>csidtg_zsl_preview</A3Preview>
      <A3Video>csidtg_zsl_preview</A3Video>
    </ChromatixName>
  </CommonChromatixInfo>
  <ResolutionChromatixInfo>
    <ChromatixName sensor_resolution_index="0">
      <ISPPreview>csidtg_preview</ISPPreview>
      <ISPSnapshot>csidtg_preview</ISPSnapshot>
      <ISPVideo>csidtg_preview</ISPVideo>
      <CPPPreview>csidtg_cpp_preview</CPPPreview>
      <CPPSnapshot>csidtg_cpp_preview</CPPSnapshot>
      <CPPVideo>csidtg_cpp_preview</CPPVideo>
      <CPPLiveshot>csidtg_cpp_preview</CPPLiveshot>
      <A3Preview>csidtg_zsl_preview</A3Preview>
      <A3Video>csidtg_zsl_preview</A3Video>
    </ChromatixName>
    <ChromatixName sensor_resolution_index="1">
      <ISPPreview>csidtg_preview</ISPPreview>
      <ISPSnapshot>csidtg_preview</ISPSnapshot>
      <ISPVideo>csidtg_preview</ISPVideo>
      <CPPPreview>csidtg_cpp_preview</CPPPreview>
      <CPPSnapshot>csidtg_cpp_preview</CPPSnapshot>
      <CPPVideo>csidtg_cpp_preview</CPPVideo>
      <CPPLiveshot>csidtg_cpp_preview</CPPLiveshot>
      <A3Preview>csidtg_zsl_preview</A3Preview>
      <A3Video>csidtg_zsl_preview</A3Video>
    </ChromatixName>
    <ChromatixName sensor_resolution_index="2">
      <ISPPreview>csidtg_preview</ISPPreview>
      <ISPSnapshot>csidtg_preview</ISPSnapshot>
      <ISPVideo>csidtg_preview</ISPVideo>
      <CPPPreview>csidtg_cpp_preview</CPPPreview>
      <CPPSnapshot>csidtg_cpp_preview</CPPSnapshot>
      <CPPVideo>csidtg_cpp_preview</CPPVideo>
      <CPPLiveshot>csidtg_cpp_preview</CPPLiveshot>
      <A3Preview>csidtg_zsl_preview</A3Preview>
      <A3Video>csidtg_zsl_preview</A3Video>
    </ChromatixName>
    <ChromatixName sensor_resolution_index="3">
      <ISPPreview>csidtg_preview</ISPPreview>
      <ISPSnapshot>csidtg_preview</ISPSnapshot>
      <ISPVideo>csidtg_preview</ISPVideo>
      <CPPPreview>csidtg_cpp_preview</CPPPreview>
      <CPPSnapshot>csidtg_cpp_preview</CPPSnapshot>
      <CPPVideo>csidtg_cpp_preview</CPPVideo>
      <CPPLiveshot>csidtg_cpp_preview</CPPLiveshot>
      <A3Preview>csidtg_zsl_preview</A3Preview>
      <A3Video>csidtg_zsl_preview</A3Video>
    </ChromatixName>
    <ChromatixName sensor_resolution_index="4">
      <ISPPreview>csidtg_preview</ISPPreview>
      <ISPSnapshot>csidtg_preview</ISPSnapshot>
      <ISPVideo>csidtg_preview</ISPVideo>
      <CPPPreview>csidtg_cpp_preview</CPPPreview>
      <CPPSnapshot>csidtg_cpp_preview</CPPSnapshot>
      <CPPVideo>csidtg_cpp_preview</CPPVideo>
      <CPPLiveshot>csidtg_cpp_preview</CPPLiveshot>
      <A3Preview>csidtg_zsl_preview</A3Preview>
      <A3Video>csidtg_zsl_preview</A3Video>
    </ChromatixName>
  </ResolutionChromatixInfo>
</ChromatixConfigurationRoot>