Searched defs:light (Results 1 - 25 of 48) sorted by relevance

12

/external/clang/test/Index/
H A Dprint-bitwidth.c10 unsigned light : 1; member in struct:X
22 // CHECK: FieldDecl=light:10:12 (Definition) bitwidth=1
/external/chromium_org/third_party/skia/include/effects/
H A DSkLightingImageFilter.h73 SkLightingImageFilter(SkLight* light,
82 const SkLight* light() const { return fLight.get(); } function in class:SkLightingImageFilter
/external/skia/include/effects/
H A DSkLightingImageFilter.h73 SkLightingImageFilter(SkLight* light,
79 const SkLight* light() const { return fLight; } function in class:SkLightingImageFilter
/external/chromium_org/third_party/mesa/src/src/mesa/tnl/
H A Dt_vb_lighttmp.h91 struct gl_light *light; local
109 /* Add contribution from each enabled light source */
110 foreach (light, &ctx->Light.EnabledList) {
116 GLfloat VP[3]; /* unit vector from vertex to light */
121 if (!(light->_Flags & LIGHT_POSITIONAL)) {
122 /* directional light */
123 COPY_3V(VP, light->_VP_inf_norm);
124 attenuation = light->_VP_inf_spot_attenuation;
127 GLfloat d; /* distance from vertex to light */
129 SUB_3V(VP, light
269 struct gl_light *light; local
423 const struct gl_light *light = ctx->Light.EnabledList.next; local
534 const struct gl_light *light; local
[all...]
H A Dt_rasterpos.c29 #include "main/light.h"
123 const struct gl_light *light; local
131 foreach (light, &ctx->Light.EnabledList) {
133 GLfloat VP[3]; /* vector from vertex to light pos */
137 if (!(light->_Flags & LIGHT_POSITIONAL)) {
138 /* light at infinity */
139 COPY_3V(VP, light->_VP_inf_norm);
140 attenuation = light->_VP_inf_spot_attenuation;
143 /* local/positional light */
146 /* VP = vector from vertex pos to light[
[all...]
/external/chromium_org/third_party/skia/src/effects/
H A DSkEmbossMask.cpp81 void SkEmbossMask::Emboss(SkMask* mask, const SkEmbossMaskFilter::Light& light) { argument
86 int specular = light.fSpecular;
87 int ambient = light.fAmbient;
88 SkFixed lx = SkScalarToFixed(light.fDirection[0]);
89 SkFixed ly = SkScalarToFixed(light.fDirection[1]);
90 SkFixed lz = SkScalarToFixed(light.fDirection[2]);
143 // value in the light, and just pass that in to this function.
H A DSkEmbossMaskFilter.cpp16 SkEmbossMaskFilter* SkEmbossMaskFilter::Create(SkScalar blurSigma, const Light& light) { argument
17 return SkNEW_ARGS(SkEmbossMaskFilter, (blurSigma, light));
48 SkEmbossMaskFilter::Light light; local
50 memcpy(light.fDirection, direction, sizeof(light.fDirection));
51 light.fAmbient = SkToU8(am);
52 light.fSpecular = SkToU8(sp);
54 return SkEmbossMaskFilter::Create(blurSigma, light);
68 SkEmbossMaskFilter::SkEmbossMaskFilter(SkScalar blurSigma, const Light& light) argument
69 : fLight(light), fBlurSigm
108 Light light = fLight; local
137 Light light; local
[all...]
/external/mesa3d/src/mesa/tnl/
H A Dt_vb_lighttmp.h91 struct gl_light *light; local
109 /* Add contribution from each enabled light source */
110 foreach (light, &ctx->Light.EnabledList) {
116 GLfloat VP[3]; /* unit vector from vertex to light */
121 if (!(light->_Flags & LIGHT_POSITIONAL)) {
122 /* directional light */
123 COPY_3V(VP, light->_VP_inf_norm);
124 attenuation = light->_VP_inf_spot_attenuation;
127 GLfloat d; /* distance from vertex to light */
129 SUB_3V(VP, light
269 struct gl_light *light; local
423 const struct gl_light *light = ctx->Light.EnabledList.next; local
534 const struct gl_light *light; local
[all...]
H A Dt_rasterpos.c29 #include "main/light.h"
123 const struct gl_light *light; local
131 foreach (light, &ctx->Light.EnabledList) {
133 GLfloat VP[3]; /* vector from vertex to light pos */
137 if (!(light->_Flags & LIGHT_POSITIONAL)) {
138 /* light at infinity */
139 COPY_3V(VP, light->_VP_inf_norm);
140 attenuation = light->_VP_inf_spot_attenuation;
143 /* local/positional light */
146 /* VP = vector from vertex pos to light[
[all...]
/external/skia/src/effects/
H A DSkEmbossMask.cpp81 void SkEmbossMask::Emboss(SkMask* mask, const SkEmbossMaskFilter::Light& light) { argument
86 int specular = light.fSpecular;
87 int ambient = light.fAmbient;
88 SkFixed lx = SkScalarToFixed(light.fDirection[0]);
89 SkFixed ly = SkScalarToFixed(light.fDirection[1]);
90 SkFixed lz = SkScalarToFixed(light.fDirection[2]);
143 // value in the light, and just pass that in to this function.
H A DSkEmbossMaskFilter.cpp16 SkEmbossMaskFilter* SkEmbossMaskFilter::Create(SkScalar blurSigma, const Light& light) { argument
17 return SkNEW_ARGS(SkEmbossMaskFilter, (blurSigma, light));
48 SkEmbossMaskFilter::Light light; local
50 memcpy(light.fDirection, direction, sizeof(light.fDirection));
51 light.fAmbient = SkToU8(am);
52 light.fSpecular = SkToU8(sp);
54 return SkEmbossMaskFilter::Create(blurSigma, light);
68 SkEmbossMaskFilter::SkEmbossMaskFilter(SkScalar blurSigma, const Light& light) argument
69 : fLight(light), fBlurSigm
108 Light light = fLight; local
[all...]
/external/chromium_org/third_party/mesa/src/src/mesa/main/
H A Dlight.c31 #include "light.h"
96 * per-light state.
104 struct gl_light *light; local
107 light = &ctx->Light.Light[lnum];
111 if (TEST_EQ_4V(light->Ambient, params))
114 COPY_4V( light->Ambient, params );
117 if (TEST_EQ_4V(light->Diffuse, params))
120 COPY_4V( light->Diffuse, params );
123 if (TEST_EQ_4V(light->Specular, params))
126 COPY_4V( light
200 _mesa_Lightf( GLenum light, GLenum pname, GLfloat param ) argument
210 _mesa_Lightfv( GLenum light, GLenum pname, const GLfloat *params ) argument
282 _mesa_Lighti( GLenum light, GLenum pname, GLint param ) argument
292 _mesa_Lightiv( GLenum light, GLenum pname, const GLint *params ) argument
334 _mesa_GetLightfv( GLenum light, GLenum pname, GLfloat *params ) argument
384 _mesa_GetLightiv( GLenum light, GLenum pname, GLint *params ) argument
634 struct gl_light *light, *list = &ctx->Light.EnabledList; local
887 struct gl_light *light; local
949 struct gl_light *light; local
[all...]
H A Des1_conversion.c15 #include "light.h"
234 _es_GetLightxv(GLenum light, GLenum pname, GLfixed *params) argument
240 if (light < GL_LIGHT0 || light > GL_LIGHT7) {
242 "glGetLightxv(light=0x%x)", light); local
268 _mesa_GetLightfv(light, pname, converted_params);
500 _es_Lightx(GLenum light, GLenum pname, GLfixed param) argument
502 _mesa_Lightf(light, pname, (GLfloat) (param / 65536.0f));
506 _es_Lightxv(GLenum light, GLenu argument
514 "glLightxv(light=0x%x)", light); local
[all...]
/external/chromium_org/ui/gfx/
H A Dcolor_utils.cc132 uint8 light; local
135 light = 0;
137 light = 255;
139 light = SkDoubleToFixed(lightness) >> 8;
141 return SkColorSetARGB(alpha, light, light, light);
/external/mesa3d/src/mesa/main/
H A Dlight.c31 #include "light.h"
96 * per-light state.
104 struct gl_light *light; local
107 light = &ctx->Light.Light[lnum];
111 if (TEST_EQ_4V(light->Ambient, params))
114 COPY_4V( light->Ambient, params );
117 if (TEST_EQ_4V(light->Diffuse, params))
120 COPY_4V( light->Diffuse, params );
123 if (TEST_EQ_4V(light->Specular, params))
126 COPY_4V( light
200 _mesa_Lightf( GLenum light, GLenum pname, GLfloat param ) argument
210 _mesa_Lightfv( GLenum light, GLenum pname, const GLfloat *params ) argument
282 _mesa_Lighti( GLenum light, GLenum pname, GLint param ) argument
292 _mesa_Lightiv( GLenum light, GLenum pname, const GLint *params ) argument
334 _mesa_GetLightfv( GLenum light, GLenum pname, GLfloat *params ) argument
384 _mesa_GetLightiv( GLenum light, GLenum pname, GLint *params ) argument
634 struct gl_light *light, *list = &ctx->Light.EnabledList; local
887 struct gl_light *light; local
949 struct gl_light *light; local
[all...]
H A Des1_conversion.c15 #include "light.h"
234 _es_GetLightxv(GLenum light, GLenum pname, GLfixed *params) argument
240 if (light < GL_LIGHT0 || light > GL_LIGHT7) {
242 "glGetLightxv(light=0x%x)", light); local
268 _mesa_GetLightfv(light, pname, converted_params);
500 _es_Lightx(GLenum light, GLenum pname, GLfixed param) argument
502 _mesa_Lightf(light, pname, (GLfloat) (param / 65536.0f));
506 _es_Lightxv(GLenum light, GLenu argument
514 "glLightxv(light=0x%x)", light); local
[all...]
/external/qemu/android/
H A Dqemulator.c32 qemulator_light_brightness( void* opaque, const char* light, int value ) argument
36 VERBOSE_PRINT(hw_control,"%s: light='%s' value=%d window=%p", __FUNCTION__, light, value, emulator->window);
37 if ( !strcmp(light, "lcd_backlight") ) {
/external/qemu/distrib/sdl-1.2.15/test/
H A Dtestalpha.c62 /* Create a "light" -- a yellowish surface with variable alpha */
71 SDL_Surface *light; local
79 light = SDL_CreateRGBSurface(SDL_SWSURFACE, 2*radius, 2*radius, 16,
86 light = SDL_CreateRGBSurface(SDL_SWSURFACE, 2*radius, 2*radius, 32,
88 if ( light == NULL ) {
89 fprintf(stderr, "Couldn't create light: %s\n", SDL_GetError());
94 /* Fill with a light yellow-orange color */
95 skip = light->pitch-(light->w*light
153 FlashLight(SDL_Surface *screen, SDL_Surface *light, int x, int y) argument
247 MoveSprite(SDL_Surface *screen, SDL_Surface *light) argument
331 SDL_Surface *light; local
[all...]
/external/chromium_org/content/public/android/javatests/src/org/chromium/content/browser/
H A DDeviceSensorsTest.java387 protected void gotLight(double light) { argument
388 mValue1 = light;
/external/chromium_org/third_party/skia/src/views/
H A DSkWidgets.cpp243 SkEmbossMaskFilter::Light light; local
245 light.fDirection[0] = SK_Scalar1/2;
246 light.fDirection[1] = SK_Scalar1/2;
247 light.fDirection[2] = SK_Scalar1/3;
248 light.fAmbient = 0x48;
249 light.fSpecular = 0x80;
253 light.fDirection[0] = -light.fDirection[0];
254 light.fDirection[1] = -light
[all...]
/external/skia/src/views/
H A DSkWidgets.cpp243 SkEmbossMaskFilter::Light light; local
245 light.fDirection[0] = SK_Scalar1/2;
246 light.fDirection[1] = SK_Scalar1/2;
247 light.fDirection[2] = SK_Scalar1/3;
248 light.fAmbient = 0x48;
249 light.fSpecular = 0x80;
253 light.fDirection[0] = -light.fDirection[0];
254 light.fDirection[1] = -light
[all...]
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/nouveau/
H A Dnouveau_state.c257 nouveau_light(struct gl_context *ctx, GLenum light, GLenum pname, const GLfloat *params) argument
276 context_dirty_i(ctx, LIGHT_SOURCE, light - GL_LIGHT0);
279 context_dirty_i(ctx, LIGHT_SOURCE, light - GL_LIGHT0);
/external/chromium_org/third_party/skia/samplecode/
H A DSampleAll.cpp386 SkEmbossMaskFilter::Light light; local
387 light.fDirection[0] = SK_Scalar1/2;
388 light.fDirection[1] = SK_Scalar1/2;
389 light.fDirection[2] = SK_Scalar1/3;
390 light.fAmbient = 0x48;
391 light.fSpecular = 0x80;
393 SkEmbossMaskFilter* embossFilter = SkEmbossMaskFilter::Create(sigma, light);
/external/mesa3d/src/mesa/drivers/dri/nouveau/
H A Dnouveau_state.c257 nouveau_light(struct gl_context *ctx, GLenum light, GLenum pname, const GLfloat *params) argument
276 context_dirty_i(ctx, LIGHT_SOURCE, light - GL_LIGHT0);
279 context_dirty_i(ctx, LIGHT_SOURCE, light - GL_LIGHT0);
/external/skia/samplecode/
H A DSampleAll.cpp384 SkEmbossMaskFilter::Light light; local
385 light.fDirection[0] = SK_Scalar1/2;
386 light.fDirection[1] = SK_Scalar1/2;
387 light.fDirection[2] = SK_Scalar1/3;
388 light.fAmbient = 0x48;
389 light.fSpecular = 0x80;
391 SkEmbossMaskFilter* embossFilter = SkEmbossMaskFilter::Create(sigma, light);

Completed in 749 milliseconds

12