Home
last modified time | relevance | path

Searched refs:gamma (Results 1 – 25 of 130) sorted by relevance

123456

/external/qemu/distrib/sdl-1.2.12/src/video/
DSDL_gamma.c41 static void CalculateGammaRamp(float gamma, Uint16 *ramp) in CalculateGammaRamp() argument
46 if ( gamma <= 0.0f ) { in CalculateGammaRamp()
53 if ( gamma == 1.0f ) { in CalculateGammaRamp()
61 gamma = 1.0f / gamma; in CalculateGammaRamp()
63 value = (int)(pow((double)i/256.0, gamma)*65535.0+0.5); in CalculateGammaRamp()
71 static void CalculateGammaFromRamp(float *gamma, Uint16 *ramp) in CalculateGammaFromRamp() argument
79 *gamma = 1.0; in CalculateGammaFromRamp()
89 *gamma = 1.0f / (sum / count); in CalculateGammaFromRamp()
158 if ( ! video->gamma ) { in SDL_SetGammaRamp()
164 SDL_memcpy(&video->gamma[0*256], red, 256*sizeof(*video->gamma)); in SDL_SetGammaRamp()
[all …]
/external/qemu/distrib/sdl-1.2.12/src/video/x11/
DSDL_x11gamma.c37 SDL_NAME(XF86VidModeGamma) gamma; in X11_SetGammaNoLock()
42 gamma.red = MIN_GAMMA; in X11_SetGammaNoLock()
45 gamma.red = MAX_GAMMA; in X11_SetGammaNoLock()
47 gamma.red = red; in X11_SetGammaNoLock()
50 gamma.green = MIN_GAMMA; in X11_SetGammaNoLock()
53 gamma.green = MAX_GAMMA; in X11_SetGammaNoLock()
55 gamma.green = green; in X11_SetGammaNoLock()
58 gamma.blue = MIN_GAMMA; in X11_SetGammaNoLock()
61 gamma.blue = MAX_GAMMA; in X11_SetGammaNoLock()
63 gamma.blue = blue; in X11_SetGammaNoLock()
[all …]
/external/jmonkeyengine/engine/src/core-effects/com/jme3/post/filters/
DPosterizationFilter.java55 private float gamma = 0.6f; field in PosterizationFilter
79 public PosterizationFilter(int numColors, float gamma) { in PosterizationFilter() argument
81 this.gamma = gamma; in PosterizationFilter()
88 material.setFloat("Gamma", gamma); in initFilter()
110 public void setGamma(float gamma) { in setGamma() argument
111 this.gamma = gamma; in setGamma()
113 material.setFloat("Gamma", gamma); in setGamma()
138 return gamma; in getGamma()
DGammaCorrectionFilter.java17 private float gamma = 2.0f; field in GammaCorrectionFilter
25 public GammaCorrectionFilter(float gamma) in GammaCorrectionFilter() argument
28 this.setGamma(gamma); in GammaCorrectionFilter()
43 material.setFloat("gamma", gamma); in initFilter()
49 return gamma; in getGamma()
56 public void setGamma(float gamma) in setGamma() argument
60 material.setFloat("gamma", gamma); in setGamma()
62 this.gamma = gamma; in setGamma()
/external/webkit/LayoutTests/fast/dom/DeviceOrientation/
Dnull-values-expected.txt8 PASS deviceOrientationEvent.gamma is mockEvent.gamma
11 PASS deviceOrientationEvent.gamma is mockEvent.gamma
14 PASS deviceOrientationEvent.gamma is mockEvent.gamma
17 PASS deviceOrientationEvent.gamma is mockEvent.gamma
Doptional-event-properties-expected.txt9 PASS event.gamma == null is true
13 PASS event.gamma == 2 is true
17 PASS event.gamma == null is true
21 PASS event.gamma == 0 is true
25 PASS event.gamma == null is true
29 PASS event.gamma == 0 is true
33 PASS event.gamma == null is true
Dmultiple-frames-expected.txt8 PASS deviceOrientationEvent.gamma is mockEvent.gamma
11 PASS deviceOrientationEvent.gamma is mockEvent.gamma
Dupdates-expected.txt8 PASS deviceOrientationEvent.gamma is mockEvent.gamma
11 PASS deviceOrientationEvent.gamma is mockEvent.gamma
Dadd-listener-from-callback-expected.txt8 PASS deviceOrientationEvent.gamma is mockGamma
11 PASS deviceOrientationEvent.gamma is mockGamma
14 PASS deviceOrientationEvent.gamma is mockGamma
/external/webkit/LayoutTests/fast/dom/DeviceOrientation/script-tests/
Dnull-values.js4 function setMockOrientation(alpha, beta, gamma) { argument
5 mockEvent = {alpha: alpha, beta: beta, gamma: gamma}; property
10 null != mockEvent.gamma, null == mockEvent.gamma ? 0 : mockEvent.gamma);
Dupdates.js4 function setMockOrientation(alpha, beta, gamma) { argument
5 mockEvent = {alpha: alpha, beta: beta, gamma: gamma}; property
7 …oller.setMockDeviceOrientation(true, mockEvent.alpha, true, mockEvent.beta, true, mockEvent.gamma);
/external/webkit/Source/WebCore/dom/
DDeviceOrientation.cpp36 …anProvideAlpha, double alpha, bool canProvideBeta, double beta, bool canProvideGamma, double gamma) in create() argument
38 …ptRef(new DeviceOrientation(canProvideAlpha, alpha, canProvideBeta, beta, canProvideGamma, gamma)); in create()
49 …anProvideAlpha, double alpha, bool canProvideBeta, double beta, bool canProvideGamma, double gamma) in DeviceOrientation() argument
55 , m_gamma(gamma) in DeviceOrientation()
69 double DeviceOrientation::gamma() const in gamma() function in WebCore::DeviceOrientation
DDeviceOrientation.h37 …nProvideAlpha, double alpha, bool canProvideBeta, double beta, bool canProvideGamma, double gamma);
41 double gamma() const;
48 …nProvideAlpha, double alpha, bool canProvideBeta, double beta, bool canProvideGamma, double gamma);
DDeviceMotionData.cpp51 … bool canProvideGamma, double gamma) in create() argument
53 …iceMotionData::RotationRate(canProvideAlpha, alpha, canProvideBeta, beta, canProvideGamma, gamma)); in create()
56 …anProvideAlpha, double alpha, bool canProvideBeta, double beta, bool canProvideGamma, double gamma) in RotationRate() argument
59 , m_gamma(gamma) in RotationRate()
/external/webkit/LayoutTests/fast/dom/DeviceMotion/
Doptional-event-properties-expected.txt11 …onEvent('', false, false, {x: 0, y: 1, z: 2}, {x: 3, y: 4, z: 5}, {alpha: 6, beta: 7, gamma: 8}, 9)
20 PASS event.rotationRate.gamma == 8 is true
22 PASS event.initDeviceMotionEvent('', false, false, objectThrowingException, {x: 3, z: 5}, {gamma: 8…
23 …tionEvent('', false, false, {x: 0, y: 1, z: 2}, objectThrowingException, {gamma: 8, beta: 7}, 9) t…
25 …ctThrowingException, y: 1, z: 2}, {x: 3, y: 4, z: 5}, {alpha: 6, beta: 7, gamma: 8}, 9) threw exce…
26 …: 1, z: 2}, {x: 3, y: objectThrowingException, z: 5}, {alpha: 6, beta: 7, gamma: 8}, 9) threw exce…
27 …false, false, {x: 0, y: 1, z: 2}, {x: 3, y: 4, z: 5}, {alpha: 6, beta: 7, gamma: objectThrowingExc…
28 event.initDeviceMotionEvent('', false, false, {y: 1, x: 0}, {x: 3, z: 5}, {gamma: 8, beta: 7}, 9)
37 PASS event.rotationRate.gamma == 8 is true
64 …null, y: null, z: null}, {x: null, y: null, z: null}, {alpha: null, beta: null, gamma: null}, null)
[all …]
/external/jmonkeyengine/engine/src/core-effects/Common/MatDefs/Post/
DGammaCorrection.frag6 vec3 gamma(vec3 L,float gamma)
8 return pow(L, vec3(1.0 / gamma));
16 texVal.rgb = gamma(texVal.rgb , m_gamma);
DGammaCorrection15.frag8 vec3 gamma(vec3 L,float gamma)
10 return pow(L, vec3(1.0 / gamma));
18 texVal.rgb = gamma(texVal.rgb , m_gamma);
/external/webkit/Source/WebCore/bindings/js/
DJSDeviceOrientationEventCustom.cpp54 JSValue JSDeviceOrientationEvent::gamma(ExecState*) const in gamma() function in WebCore::JSDeviceOrientationEvent
59 return jsNumber(imp->orientation()->gamma()); in gamma()
74 double gamma = exec->argument(5).toNumber(exec); in initDeviceOrientationEvent() local
75 …tation = DeviceOrientation::create(alphaProvided, alpha, betaProvided, beta, gammaProvided, gamma); in initDeviceOrientationEvent()
/external/mesa3d/docs/
DREADME.CYGWIN142 and displayed intensities, there is a gamma correction feature in
143 Mesa. Some systems, such as Silicon Graphics, support gamma
144 correction in hardware (man gamma) so you won't need to use Mesa's
145 gamma facility. Other systems, however, may need gamma adjustment
151 Gr is the red gamma value, Gg is the green gamma value, Gb is the
152 blue gamma value and G is one gamma value to use for all three
155 gamma correction. Examples using csh:
158 % setenv MESA_GAMMA "2.0" // same gamma for R,G,B
160 The demos/gamma.c program may help you to determine reasonable gamma
161 value for your display. With correct gamma values, the color intensities
[all …]
/external/libpng/
DTODO5 Finish work on the no-floating-point version (including gamma compensation)
13 Complete sRGB transformation (presently it simply uses gamma=0.45455).
21 Build gamma tables using fixed point (and do away with floating point entirely).
22 Use greater precision when changing to linear gamma for compositing against
/external/webkit/Source/WebCore/platform/audio/
DBiquad.cpp202 double gamma = (0.5 + beta) * cos(theta); in setLowpassParams() local
203 double alpha = 0.25 * (0.5 + beta - gamma); in setLowpassParams()
208 m_b1 = 2.0 * -gamma; in setLowpassParams()
223 double gamma = (0.5 + beta) * cos(theta); in setHighpassParams() local
224 double alpha = 0.25 * (0.5 + beta + gamma); in setHighpassParams()
229 m_b1 = 2.0 * -gamma; in setHighpassParams()
/external/skia/include/effects/
DSkTableMaskFilter.h31 static void MakeGammaTable(uint8_t table[256], SkScalar gamma);
38 static SkTableMaskFilter* CreateGamma(SkScalar gamma) { in CreateGamma() argument
40 MakeGammaTable(table, gamma); in CreateGamma()
/external/webkit/Source/WebKit/chromium/public/
DWebDeviceOrientation.h38 …anProvideAlpha, double alpha, bool canProvideBeta, double beta, bool canProvideGamma, double gamma) in WebDeviceOrientation() argument
45 m_gamma(gamma) in WebDeviceOrientation()
57 double gamma() { return m_gamma; } in gamma() function
/external/webkit/Source/WebCore/platform/image-decoders/png/
DPNGImageDecoder.cpp299 double gamma; in headerAvailable() local
300 if (!m_ignoreGammaAndColorProfile && png_get_gAMA(png, info, &gamma)) { in headerAvailable()
301 if ((gamma <= 0.0) || (gamma > cMaxGamma)) { in headerAvailable()
302 gamma = cInverseGamma; in headerAvailable()
303 png_set_gAMA(png, info, gamma); in headerAvailable()
305 png_set_gamma(png, cDefaultGamma, gamma); in headerAvailable()
/external/webkit/Source/WebKit/mac/WebView/
DWebDeviceOrientation.h33 …a:(bool)canProvideBeta beta:(double)beta canProvideGamma:(bool)canProvideGamma gamma:(double)gamma;

123456