Home
last modified time | relevance | path

Searched full:gamma (Results 1 – 25 of 665) sorted by relevance

12345678910>>...27

/OK3568_Linux_fs/kernel/drivers/staging/fbtft/
H A Dfbtft-sysfs.c55 if (curve_counter == par->gamma.num_curves) { in fbtft_gamma_parse_str()
56 dev_err(par->info->device, "Gamma: Too many curves\n"); in fbtft_gamma_parse_str()
63 if (value_counter == par->gamma.num_values) { in fbtft_gamma_parse_str()
65 "Gamma: Too many values\n"); in fbtft_gamma_parse_str()
73 _count = curve_counter * par->gamma.num_values + in fbtft_gamma_parse_str()
78 if (value_counter != par->gamma.num_values) { in fbtft_gamma_parse_str()
79 dev_err(par->info->device, "Gamma: Too few values\n"); in fbtft_gamma_parse_str()
85 if (curve_counter != par->gamma.num_curves) { in fbtft_gamma_parse_str()
86 dev_err(par->info->device, "Gamma: Too few curves\n"); in fbtft_gamma_parse_str()
102 mutex_lock(&par->gamma.lock); in sprintf_gamma()
[all …]
H A Dfbtft.h55 * @set_gamma: Set Gamma curve (optional)
99 * @gamma: String representation of Gamma curve(s)
100 * @gamma_num: Number of Gamma curves
101 * @gamma_len: Number of values per Gamma curve
117 char *gamma; member
132 * @gamma: String representation of Gamma curve(s)
142 char *gamma; member
180 * @gamma.lock: Mutex for Gamma curve locking
181 * @gamma.curves: Pointer to Gamma curve array
182 * @gamma.num_values: Number of values per Gamma curve
[all …]
H A Dfb_st7789v.c40 * @PVGAMCTRL: positive voltage gamma control
41 * @NVGAMCTRL: negative voltage gamma control
183 * set_gamma() - set gamma curves
186 * @curves: gamma curves
188 * Before the gamma curves are applied, they are preprocessed with a bitmask
191 * function and that illegal gamma values are auto-corrected and not
203 * Bitmasks for gamma curve command parameters. in set_gamma()
205 * gamma curves. in set_gamma()
224 for (i = 0; i < par->gamma.num_curves; i++) { in set_gamma()
225 c = i * par->gamma.num_values; in set_gamma()
[all …]
H A Dfb_hx8340bn.c83 * VREG1 voltage is for gamma voltage setting. in init_display()
145 * Gamma Curve selection, GC (only GC0 can be customized):
147 * Gamma string format:
151 #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)]
162 for (i = 0; i < par->gamma.num_curves; i++) in set_gamma()
163 for (j = 0; j < par->gamma.num_values; j++) in set_gamma()
164 CURVE(i, j) &= mask[i * par->gamma.num_values + j]; in set_gamma()
166 /* Gamma Set (26h) */ in set_gamma()
207 .gamma = DEFAULT_GAMMA,
/OK3568_Linux_fs/external/xserver/hw/xfree86/common/
H A Dxf86cmap.c90 LOCO *gamma; member
124 static int CMapChangeGamma(ScrnInfoPtr, Gamma);
154 LOCO *gamma; in xf86HandleColormaps() local
164 if (!(gamma = xallocarray(elements, sizeof(LOCO)))) in xf86HandleColormaps()
168 free(gamma); in xf86HandleColormaps()
173 free(gamma); in xf86HandleColormaps()
196 pScreenPriv->gamma = gamma; in xf86HandleColormaps()
566 LOCO *gamma, *colors; in CMapRefreshColors() local
573 gamma = pScreenPriv->gamma; in CMapRefreshColors()
584 colors[i].red = gamma[index].red; in CMapRefreshColors()
[all …]
H A Dxf86Helper.c797 xf86SetGamma(ScrnInfoPtr scrp, Gamma gamma) in xf86SetGamma() argument
806 scrp->gamma.red = SET_GAMMA(xf86Gamma.red); in xf86SetGamma()
807 scrp->gamma.green = SET_GAMMA(xf86Gamma.green); in xf86SetGamma()
808 scrp->gamma.blue = SET_GAMMA(xf86Gamma.blue); in xf86SetGamma()
810 else if (TEST_GAMMA(scrp->monitor->gamma)) { in xf86SetGamma()
812 scrp->gamma.red = SET_GAMMA(scrp->monitor->gamma.red); in xf86SetGamma()
813 scrp->gamma.green = SET_GAMMA(scrp->monitor->gamma.green); in xf86SetGamma()
814 scrp->gamma.blue = SET_GAMMA(scrp->monitor->gamma.blue); in xf86SetGamma()
817 else if (DDC && DDC->features.gamma > GAMMA_ZERO) { in xf86SetGamma()
819 scrp->gamma.red = SET_GAMMA(DDC->features.gamma); in xf86SetGamma()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm_color.c36 * - Input gamma LUT (de-normalized)
49 * The input gamma LUT block isn't really applicable here since it operates
127 struct dc_gamma *gamma, bool is_legacy) in __drm_lut_to_dc_gamma() argument
138 gamma->entries.red[i] = dc_fixpt_from_int(r); in __drm_lut_to_dc_gamma()
139 gamma->entries.green[i] = dc_fixpt_from_int(g); in __drm_lut_to_dc_gamma()
140 gamma->entries.blue[i] = dc_fixpt_from_int(b); in __drm_lut_to_dc_gamma()
151 gamma->entries.red[i] = dc_fixpt_from_fraction(r, MAX_DRM_LUT_VALUE); in __drm_lut_to_dc_gamma()
152 gamma->entries.green[i] = dc_fixpt_from_fraction(g, MAX_DRM_LUT_VALUE); in __drm_lut_to_dc_gamma()
153 gamma->entries.blue[i] = dc_fixpt_from_fraction(b, MAX_DRM_LUT_VALUE); in __drm_lut_to_dc_gamma()
197 struct dc_gamma *gamma = NULL; in __set_legacy_tf() local
[all …]
/OK3568_Linux_fs/kernel/drivers/staging/media/atomisp/pci/isp/kernels/gc/gc_1.0/
H A Dia_css_gc_types.h20 * CSS-API header file for Gamma Correction parameters.
25 /* Fractional bits for GAMMA gain */
28 /* Number of elements in the gamma table. */
32 /* Number of elements in the gamma table. */
36 /* Gamma table, used for Y(Luma) Gamma Correction.
38 * ISP block: GC1 (YUV Gamma Correction)
40 * (ISP2: GC2(sRGB Gamma Correction) is used.)
46 /** Y(Luma) Gamma table on vamem type 1. u0.8, [0,255] */
48 /** Y(Luma) Gamma table on vamem type 2. u0.8, [0,255] */
56 /* Gamma Correction configuration (used only for YUV Gamma Correction).
[all …]
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/include/c++/10.3.1/tr1/
H A Dhypergeometric.tcc67 * _1F_1(a;c;x) = \frac{\Gamma(c)}{\Gamma(a)}
69 * \frac{\Gamma(a+n)}{\Gamma(c+n)}
257 * _2F_1(a,b;c;x) = \frac{\Gamma(c)}{\Gamma(a)\Gamma(b)}
259 * \frac{\Gamma(a+n)\Gamma(b+n)}{\Gamma(c+n)}
417 * _2F_1(a,b;c;x) = \frac{\Gamma(c)}{\Gamma(a)\Gamma(b)}
419 * \frac{\Gamma(a+n)\Gamma(b+n)}{\Gamma(c+n)}
425 * _2F_1(a,b;c;x) = \frac{\Gamma(c)\Gamma(d)}{\Gamma(c-a)\Gamma(c-b)}
427 * + \frac{\Gamma(c)\Gamma(-d)}{\Gamma(a)\Gamma(b)}
433 * _2F_1(a,b;a+b+m;x) = \frac{\Gamma(m)\Gamma(a+b+m)}{\Gamma(a+m)\Gamma(b+m)}
493 /* Gamma functions in the denominator are ok. in __hyperg_reflect()
[all …]
H A Dbeta_function.tcc43 // (4) Gamma, Exploring Euler's Constant, Julian Havil,
72 * B(x,y) = \frac{\Gamma(x)\Gamma(y)}{\Gamma(x+y)}
116 * the log gamma functions.
120 * B(x,y) = \frac{\Gamma(x)\Gamma(y)}{\Gamma(x+y)}
151 * B(x,y) = \frac{\Gamma(x)\Gamma(y)}{\Gamma(x+y)}
182 * B(x,y) = \frac{\Gamma(x)\Gamma(y)}{\Gamma(x+y)}
H A Dgamma.tcc25 /** @file tr1/gamma.tcc
43 // (4) Gamma, Exploring Euler's Constant, Julian Havil,
146 * @brief Return \f$log(\Gamma(x))\f$ by asymptotic expansion
150 * @param __x The argument of the log of the gamma function.
151 * @return The logarithm of the gamma function.
175 * @brief Return \f$log(\Gamma(x))\f$ by the Lanczos method.
178 * @param __x The argument of the log of the gamma function.
179 * @return The logarithm of the gamma function.
217 * @brief Return \f$ log(|\Gamma(x)|) \f$.
219 * To recover the sign of \f$ \Gamma(x) \f$ for
[all …]
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/include/c++/10.3.1/tr1/
H A Dhypergeometric.tcc67 * _1F_1(a;c;x) = \frac{\Gamma(c)}{\Gamma(a)}
69 * \frac{\Gamma(a+n)}{\Gamma(c+n)}
257 * _2F_1(a,b;c;x) = \frac{\Gamma(c)}{\Gamma(a)\Gamma(b)}
259 * \frac{\Gamma(a+n)\Gamma(b+n)}{\Gamma(c+n)}
417 * _2F_1(a,b;c;x) = \frac{\Gamma(c)}{\Gamma(a)\Gamma(b)}
419 * \frac{\Gamma(a+n)\Gamma(b+n)}{\Gamma(c+n)}
425 * _2F_1(a,b;c;x) = \frac{\Gamma(c)\Gamma(d)}{\Gamma(c-a)\Gamma(c-b)}
427 * + \frac{\Gamma(c)\Gamma(-d)}{\Gamma(a)\Gamma(b)}
433 * _2F_1(a,b;a+b+m;x) = \frac{\Gamma(m)\Gamma(a+b+m)}{\Gamma(a+m)\Gamma(b+m)}
493 /* Gamma functions in the denominator are ok. in __hyperg_reflect()
[all …]
H A Dbeta_function.tcc43 // (4) Gamma, Exploring Euler's Constant, Julian Havil,
72 * B(x,y) = \frac{\Gamma(x)\Gamma(y)}{\Gamma(x+y)}
116 * the log gamma functions.
120 * B(x,y) = \frac{\Gamma(x)\Gamma(y)}{\Gamma(x+y)}
151 * B(x,y) = \frac{\Gamma(x)\Gamma(y)}{\Gamma(x+y)}
182 * B(x,y) = \frac{\Gamma(x)\Gamma(y)}{\Gamma(x+y)}
H A Dgamma.tcc25 /** @file tr1/gamma.tcc
43 // (4) Gamma, Exploring Euler's Constant, Julian Havil,
146 * @brief Return \f$log(\Gamma(x))\f$ by asymptotic expansion
150 * @param __x The argument of the log of the gamma function.
151 * @return The logarithm of the gamma function.
175 * @brief Return \f$log(\Gamma(x))\f$ by the Lanczos method.
178 * @param __x The argument of the log of the gamma function.
179 * @return The logarithm of the gamma function.
217 * @brief Return \f$ log(|\Gamma(x)|) \f$.
219 * To recover the sign of \f$ \Gamma(x) \f$ for
[all …]
/OK3568_Linux_fs/kernel/drivers/staging/media/atomisp/pci/isp/kernels/gc/gc_2/
H A Dia_css_gc2_types.h22 * CSS-API header file for Gamma Correction parameters.
25 /* sRGB Gamma table, used for sRGB Gamma Correction.
27 * ISP block: GC2 (sRGB Gamma Correction)
28 * (ISP1: GC1(YUV Gamma Correction) is used.)
32 /* Number of elements in the sRGB gamma table. */
36 /* Number of elements in the sRGB gamma table. */
44 /** RGB Gamma table on vamem type1. This table is not used,
45 because sRGB Gamma Correction is not implemented for ISP2300. */
47 /** RGB Gamma table on vamem type2. u0.12, [0,4095] */
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/modules/color/
H A Dcolor_gamma.h45 unsigned int gammaFromEdid :1; //gamma from edid is in use
46 unsigned int gammaFromEdidEx :1; //gamma from edid is in use , but only for Display Id 1.2
47 unsigned int gammaFromUser :1; //user custom gamma is used
51 unsigned int gammaPredefinedSRGB :1; //flag for SRGB gamma
52 unsigned int gammaPredefinedPQ :1; //flag for PQ gamma
53 unsigned int gammaPredefinedPQ2084Interim :1; //flag for PQ gamma, lower max nits
54 unsigned int gammaPredefined36 :1; //flag for 3.6 gamma
55 unsigned int gammaPredefinedReset :1; //flag to return to previous gamma
60 unsigned short gamma[256*3]; // gamma ramp packed in same way as OS windows ,r , g & b member
64 int gamma[3]; member
[all …]
/OK3568_Linux_fs/kernel/drivers/input/touchscreen/focaltech_touch/
H A Dfocaltech_upgrade_ft8201.c245 static int read_3gamma(struct i2c_client *client, u8 **gamma, u16 *len) in read_3gamma() argument
271 FTS_ERROR("read 3-gamma header fail"); in read_3gamma()
279 FTS_INFO("gamma length check fail:%x %x", gamma_len, gamma_len); in read_3gamma()
284 FTS_INFO("gamma ecc check fail:%x %x", gamma_header[4], gamma_header[5]); in read_3gamma()
289 FTS_ERROR("gamma data len(%d) is too long", gamma_len); in read_3gamma()
293 *gamma = kzalloc(MAX_GAMMA_LEN, GFP_KERNEL); in read_3gamma()
294 if (NULL == *gamma) { in read_3gamma()
295 FTS_ERROR("malloc gamma memory fail"); in read_3gamma()
298 pgamma = *gamma; in read_3gamma()
304 FTS_INFO("3-gamma len:%d", gamma_len); in read_3gamma()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/
H A Ddrm_color_mgmt.c49 * linear/pass-thru gamma table should be used. This is generally the
58 * split-gamma modes) appropriately.
63 * lookup through the gamma LUT. The data is interpreted as a struct
72 * Blob property to set the gamma lookup table (LUT) mapping pixel data
80 * linear/pass-thru gamma table should be used. This is generally the
88 * largest size, and sub-sample smaller sized LUTs (e.g. for split-gamma
91 * There is also support for a legacy gamma table, which is set up by calling
93 * drm_atomic_helper_legacy_gamma_set() to alias the legacy gamma ramp with the
150 * @gamma_lut_size: the size of the gamma lut (after CSC)
153 * properties on a CRTC. This includes 3 degamma, csc and gamma
[all …]
/OK3568_Linux_fs/kernel/drivers/video/fbdev/via/
H A Dvia_utility.c115 /* Gamma Function Implementation*/
130 /* 8 bpp mode can't adjust gamma */ in viafb_set_gamma_table()
134 /* Enable Gamma */ in viafb_set_gamma_table()
154 /* Fill IGA1 Gamma Table */ in viafb_set_gamma_table()
162 /* If adjust Gamma value in SAMM, fill IGA1, in viafb_set_gamma_table()
163 IGA2 Gamma table simultaneous. */ in viafb_set_gamma_table()
164 /* Switch to IGA2 Gamma Table */ in viafb_set_gamma_table()
172 /* Fill IGA2 Gamma Table */ in viafb_set_gamma_table()
189 /* Enable Gamma */ in viafb_get_gamma_table()
209 /* Reading gamma table to get color value */ in viafb_get_gamma_table()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/core/
H A Ddc_surface.c192 void dc_gamma_retain(struct dc_gamma *gamma) in dc_gamma_retain() argument
194 kref_get(&gamma->refcount); in dc_gamma_retain()
199 struct dc_gamma *gamma = container_of(kref, struct dc_gamma, refcount); in dc_gamma_free() local
200 kvfree(gamma); in dc_gamma_free()
203 void dc_gamma_release(struct dc_gamma **gamma) in dc_gamma_release() argument
205 kref_put(&(*gamma)->refcount, dc_gamma_free); in dc_gamma_release()
206 *gamma = NULL; in dc_gamma_release()
211 struct dc_gamma *gamma = kvzalloc(sizeof(*gamma), GFP_KERNEL); in dc_create_gamma() local
213 if (gamma == NULL) in dc_create_gamma()
216 kref_init(&gamma->refcount); in dc_create_gamma()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/panel/
H A Dpanel-tpo-td043mtea1.c61 u16 gamma[12]; member
101 const u16 *gamma = lcd->gamma; in td043mtea1_write_gamma() local
105 /* gamma bits [9:8] */ in td043mtea1_write_gamma()
107 val |= (gamma[i] & 0x300) >> ((i + 1) * 2); in td043mtea1_write_gamma()
111 val |= (gamma[i + 4] & 0x300) >> ((i + 1) * 2); in td043mtea1_write_gamma()
115 val |= (gamma[i + 8] & 0x300) >> ((i + 1) * 2); in td043mtea1_write_gamma()
118 /* gamma bits [7:0] */ in td043mtea1_write_gamma()
120 td043mtea1_write(lcd, 0x14 + i, gamma[i] & 0xff); in td043mtea1_write_gamma()
247 for (i = 0; i < ARRAY_SIZE(lcd->gamma); i++) { in gamma_show()
249 lcd->gamma[i]); in gamma_show()
[all …]
/OK3568_Linux_fs/kernel/drivers/video/fbdev/omap2/omapfb/displays/
H A Dpanel-tpo-td043mtea1.c62 u16 gamma[12]; member
117 static void tpo_td043_write_gamma(struct spi_device *spi, u16 gamma[12]) in tpo_td043_write_gamma()
121 /* gamma bits [9:8] */ in tpo_td043_write_gamma()
123 val |= (gamma[i] & 0x300) >> ((i + 1) * 2); in tpo_td043_write_gamma()
127 val |= (gamma[i+4] & 0x300) >> ((i + 1) * 2); in tpo_td043_write_gamma()
131 val |= (gamma[i+8] & 0x300) >> ((i + 1) * 2); in tpo_td043_write_gamma()
134 /* gamma bits [7:0] */ in tpo_td043_write_gamma()
136 tpo_td043_write(spi, 0x14 + i, gamma[i] & 0xff); in tpo_td043_write_gamma()
232 for (i = 0; i < ARRAY_SIZE(ddata->gamma); i++) { in tpo_td043_gamma_show()
234 ddata->gamma[i]); in tpo_td043_gamma_show()
[all …]
/OK3568_Linux_fs/kernel/drivers/media/i2c/
H A Dvs6624_regs.h59 #define VS6624_GAMMA0 0x03B8 /* gamma settings */
92 #define VS6624_GAMMA1 0x0438 /* gamma settings */
258 /* pipe 0 gamma manual control */
259 #define VS6624_GAMMA_MAN_CTRL0 0x2280 /* enable manual gamma setup */
260 #define VS6624_GAMMA_PEAK_R0 0x2282 /* peaked red channel gamma value */
261 #define VS6624_GAMMA_PEAK_G0 0x2284 /* peaked green channel gamma value */
262 #define VS6624_GAMMA_PEAK_B0 0x2286 /* peaked blue channel gamma value */
263 #define VS6624_GAMMA_UNPEAK_R0 0x2288 /* unpeaked red channel gamma value */
264 #define VS6624_GAMMA_UNPEAK_G0 0x228A /* unpeaked green channel gamma value */
265 #define VS6624_GAMMA_UNPEAK_B0 0x228C /* unpeaked blue channel gamma value */
[all …]
/OK3568_Linux_fs/kernel/drivers/video/backlight/
H A Dams369fg06.c115 /* gamma value: 2.2 */
209 const unsigned int *gamma) in _ams369fg06_gamma_ctl() argument
215 ret = ams369fg06_spi_write(lcd, 0x40 + i, gamma[i]); in _ams369fg06_gamma_ctl()
216 ret = ams369fg06_spi_write(lcd, 0x50 + i, gamma[i+7*1]); in _ams369fg06_gamma_ctl()
217 ret = ams369fg06_spi_write(lcd, 0x60 + i, gamma[i+7*2]); in _ams369fg06_gamma_ctl()
219 dev_err(lcd->dev, "failed to set gamma table.\n"); in _ams369fg06_gamma_ctl()
231 int gamma = 0; in ams369fg06_gamma_ctl() local
234 gamma = 0; in ams369fg06_gamma_ctl()
236 gamma = 1; in ams369fg06_gamma_ctl()
238 gamma = 2; in ams369fg06_gamma_ctl()
[all …]
/OK3568_Linux_fs/external/rknpu2/examples/3rdparty/opencv/opencv-linux-aarch64/include/opencv2/
H A Dphoto.hpp337 CV_WRAP virtual void setGamma(float gamma) = 0;
340 /** @brief Creates simple linear mapper with gamma correction
342 @param gamma positive value for gamma correction. Gamma value of 1.0 implies no correction, gamma
344 Generally gamma \> 1 brightens the image and gamma \< 1 darkens it.
346 CV_EXPORTS_W Ptr<Tonemap> createTonemap(float gamma = 1.0f);
371 @param gamma gamma value for gamma correction. See createTonemap
377 CV_EXPORTS_W Ptr<TonemapDrago> createTonemapDrago(float gamma = 1.0f, float saturation = 1.0f, floa…
407 @param gamma gamma value for gamma correction. See createTonemap
415 createTonemapDurand(float gamma = 1.0f, float contrast = 4.0f, float saturation = 1.0f, float sigma…
439 @param gamma gamma value for gamma correction. See createTonemap
[all …]

12345678910>>...27