Home
last modified time | relevance | path

Searched refs:g (Results 1 – 25 of 281) sorted by relevance

12345678910>>...12

/device/generic/vulkan-cereal/stream-servers/apigen-codec-common/X11/extensions/
DXKBgeom.h126 #define XkbShapeDoodadColor(g,d) (&(g)->colors[(d)->color_ndx]) argument
127 #define XkbShapeDoodadShape(g,d) (&(g)->shapes[(d)->shape_ndx]) argument
128 #define XkbSetShapeDoodadColor(g,d,c) ((d)->color_ndx= (c)-&(g)->colors[0]) argument
129 #define XkbSetShapeDoodadShape(g,d,s) ((d)->shape_ndx= (s)-&(g)->shapes[0]) argument
144 #define XkbTextDoodadColor(g,d) (&(g)->colors[(d)->color_ndx]) argument
145 #define XkbSetTextDoodadColor(g,d,c) ((d)->color_ndx= (c)-&(g)->colors[0]) argument
158 #define XkbIndicatorDoodadShape(g,d) (&(g)->shapes[(d)->shape_ndx]) argument
159 #define XkbIndicatorDoodadOnColor(g,d) (&(g)->colors[(d)->on_color_ndx]) argument
160 #define XkbIndicatorDoodadOffColor(g,d) (&(g)->colors[(d)->off_color_ndx]) argument
161 #define XkbSetIndicatorDoodadOnColor(g,d,c) \ argument
[all …]
DXKBstr.h91 #define XkbNumGroups(g) ((g)&0x0f) argument
92 #define XkbOutOfRangeGroupInfo(g) ((g)&0xf0) argument
93 #define XkbOutOfRangeGroupAction(g) ((g)&0xc0) argument
94 #define XkbOutOfRangeGroupNumber(g) (((g)&0x30)>>4) argument
95 #define XkbSetGroupInfo(g,w,n) (((w)&0xc0)|(((n)&3)<<4)|((g)&0x0f)) argument
96 #define XkbSetNumGroups(g,n) (((g)&0xf0)|((n)&0x0f)) argument
132 #define XkbSASetGroup(a,g) ((a)->group_XXX=(g)) argument
335 #define XkbCMKeyGroupWidth(m,k,g) (XkbCMKeyType(m,k,g)->num_levels) argument
337 #define XkbCMKeyTypeIndex(m,k,g) ((m)->key_sym_map[k].kt_index[g&0x3]) argument
338 #define XkbCMKeyType(m,k,g) (&(m)->types[XkbCMKeyTypeIndex(m,k,g)]) argument
[all …]
DXKB.h379 #define XkbBuildCoreState(m,g) ((((g)&0x3)<<13)|((m)&0xff)) argument
381 #define XkbIsLegalGroup(g) (((g)>=0)&&((g)<XkbNumKbdGroups)) argument
/device/generic/vulkan-cereal/third-party/stb/include/stb/
Dstb_image.h1726 static stbi_uc stbi__compute_y(int r, int g, int b) in stbi__compute_y() argument
1728 return (stbi_uc) (((r*77) + (g*150) + (29*b)) >> 8); in stbi__compute_y()
1783 static stbi__uint16 stbi__compute_y_16(int r, int g, int b) in stbi__compute_y_16() argument
1785 return (stbi__uint16) (((r*77) + (g*150) + (29*b)) >> 8); in stbi__compute_y_16()
3611 int r,g,b; in stbi__YCbCr_to_RGB_row() local
3615g = y_fixed + (cr*-stbi__float2fixed(0.71414f)) + ((cb*-stbi__float2fixed(0.34414f)) & 0xffff0000); in stbi__YCbCr_to_RGB_row()
3618 g >>= 20; in stbi__YCbCr_to_RGB_row()
3621 if ((unsigned) g > 255) { if (g < 0) g = 0; else g = 255; } in stbi__YCbCr_to_RGB_row()
3624 out[1] = (stbi_uc)g; in stbi__YCbCr_to_RGB_row()
3745 int r,g,b; in stbi__YCbCr_to_RGB_simd() local
[all …]
/device/generic/vulkan-cereal/third-party/astc-encoder/Source/
Dstb_image.h1726 static stbi_uc stbi__compute_y(int r, int g, int b) in stbi__compute_y() argument
1728 return (stbi_uc) (((r*77) + (g*150) + (29*b)) >> 8); in stbi__compute_y()
1783 static stbi__uint16 stbi__compute_y_16(int r, int g, int b) in stbi__compute_y_16() argument
1785 return (stbi__uint16) (((r*77) + (g*150) + (29*b)) >> 8); in stbi__compute_y_16()
3604 int r,g,b; in stbi__YCbCr_to_RGB_row() local
3608g = y_fixed + (cr*-stbi__float2fixed(0.71414f)) + ((cb*-stbi__float2fixed(0.34414f)) & 0xffff0000); in stbi__YCbCr_to_RGB_row()
3611 g >>= 20; in stbi__YCbCr_to_RGB_row()
3614 if ((unsigned) g > 255) { if (g < 0) g = 0; else g = 255; } in stbi__YCbCr_to_RGB_row()
3617 out[1] = (stbi_uc)g; in stbi__YCbCr_to_RGB_row()
3738 int r,g,b; in stbi__YCbCr_to_RGB_simd() local
[all …]
Dastcenc_image.cpp68 int g = data16[base_offset + 1]; in load_texel_f16() local
71 return float16_to_float(vint4(r, g, b, a)); in load_texel_f16()
118 return vfloat4(datas[swz.r], datas[swz.g], datas[swz.b], datas[swz.a]); in swz_texel()
170 bool needs_swz = (swz.r != ASTCENC_SWZ_R) || (swz.g != ASTCENC_SWZ_G) || in load_image_block()
361 bool needs_swz = (swz.r != ASTCENC_SWZ_R) || (swz.g != ASTCENC_SWZ_G) || in store_image_block()
365 bool needs_z = (swz.r == ASTCENC_SWZ_Z) || (swz.g == ASTCENC_SWZ_Z) || in store_image_block()
418 data_gi = swizzle_table[swz.g]; in store_image_block()
484 vfloat4 colorf(data[swz.r], data[swz.g], data[swz.b], data[swz.a]); in store_image_block()
546 color = vfloat4(data[swz.r], data[swz.g], data[swz.b], data[swz.a]); in store_image_block()
Dastcenc_compute_variance.cpp183 uint8_t g = data[swz.g]; in compute_pixel_region_variance() local
188 g * (1.0f / 255.0f), in compute_pixel_region_variance()
226 vint4 di(data[swz.r], data[swz.g], data[swz.b], data[swz.a]); in compute_pixel_region_variance()
266 float g = data[swz.g]; in compute_pixel_region_variance() local
270 vfloat4 d(r, g, b, a); in compute_pixel_region_variance()
Dastcenccli_image.cpp110 int g = data8[(4 * dim_x * y) + (4 * x + 1)]; in determine_image_components() local
114 is_luma = is_luma && (r == g) && (r == b); in determine_image_components()
131 int g = data16[(4 * dim_x * y) + (4 * x + 1)]; in determine_image_components() local
135 is_luma = is_luma && (r == g) && (r == b); in determine_image_components()
155 float g = data32[(4 * dim_x * y) + (4 * x + 1)]; in determine_image_components() local
159 is_luma = is_luma && (r == g) && (r == b); in determine_image_components()
/device/generic/vulkan-cereal/third-party/glm/include/glm/gtx/
Dcolor_space.inl29 rgbColor.g = q;
34 rgbColor.g = hsv.z;
39 rgbColor.g = hsv.z;
44 rgbColor.g = p;
49 rgbColor.g = o;
54 rgbColor.g = o;
67 float Min = min(min(rgbColor.r, rgbColor.g), rgbColor.b);
68 float Max = max(max(rgbColor.r, rgbColor.g), rgbColor.b);
80 h = static_cast<T>(0) + T(60) * (rgbColor.g - rgbColor.b) / Delta;
81 else if(rgbColor.g == Max)
[all …]
Dcolor_space_YCoCg.inl13 result.x/*Y */ = rgbColor.r / T(4) + rgbColor.g / T(2) + rgbColor.b / T(4);
14 result.y/*Co*/ = rgbColor.r / T(2) + rgbColor.g * T(0) - rgbColor.b / T(2);
15 result.z/*Cg*/ = - rgbColor.r / T(4) + rgbColor.g / T(2) - rgbColor.b / T(4);
27 result.g = YCoCgColor.x + YCoCgColor.z;
41 result.x/*Y */ = rgbColor.g / T(2) + (rgbColor.r + rgbColor.b) / T(4);
43 result.z/*Cg*/ = rgbColor.g - (rgbColor.r + rgbColor.b) / T(2);
54 result.g = YCoCgRColor.z + tmp;
72 result.z/*Cg*/ = rgbColor.g - tmp;
84 result.g = YCoCgRColor.z + tmp;
/device/google/cuttlefish/host/commands/cvd/acloud/data/
Ddefault.config56 value: "cpu:4,resolution:1280x800,dpi:160,memory:4g"
61 value: "cpu:4,resolution:320x320,dpi:240,memory:2g"
66 value: "cpu:4,resolution:2560x1800,dpi:320,memory:4g"
71 value: "cpu:4,resolution:1768x2208,dpi:386,memory:4g"
76 value: "cpu:4,resolution:720x1280,dpi:320,memory:2g"
81 value: "cpu:4,resolution:1280x800,dpi:160,memory:4g"
86 value: "cpu:4,resolution:320x320,dpi:240,memory:2g"
91 value: "cpu:4,resolution:2560x1800,dpi:320,memory:4g"
96 value: "cpu:4,resolution:1920x1080,dpi:213,memory:2g"
101 value: "cpu:4,resolution:1768x2208,dpi:386,memory:4g"
/device/google/contexthub/lib/nanohub/
Dsha2.c68 uint32_t i, a, b, c, d, e, f, g, h; in sha2processBlock() local
88 g = state->h[6]; in sha2processBlock()
94 uint32_t ch = (e & f) ^ ((~e) & g); in sha2processBlock()
100 h = g; in sha2processBlock()
101 g = f; in sha2processBlock()
117 state->h[6] += g; in sha2processBlock()
/device/google/cuttlefish/host/commands/cvd/proto/
Dinternal_config.proto41 // The pattern of the instance name, e.g. ins-{uuid}-{build_id}-{build_target}
62 // Minimum gce instance size, e.g. n1-standard-1
64 // The name of the default disk image, e.g. avd-system.tar.gz
66 // The mime type of the disk image, e.g. 'application/x-tar'
68 // The file extension of disk image, e.g. ".tar.gz"
71 // e.g. "disk.raw"
73 // The file extension of a raw linux image file, e.g. "img"
93 // make up a value, e.g. "acloud".
/device/linaro/dragonboard/qcom/pd-mapper/
Dassoc.c42 unsigned long g; in assoc_hash() local
47 g = hash & 0xF0000000L; in assoc_hash()
48 if (g) in assoc_hash()
49 hash ^= g >> 24; in assoc_hash()
50 hash &= ~g; in assoc_hash()
/device/generic/car/tools/
DREADME.md6 - Link it into an Android source tree, e.g.:
26 * You should edit the xml, e.g. ZIP_FILE_SIZE, SHASUM, zip url & etc. accordingly.
42 …al_avd.sh allows you to setup and run multiple AVDs. You can crease a script for each of them. e.g.
52 …ted as the following default settings at the 1st run. You can also change them at the 1st run, e.g.
65 The AVD can also be changed by editing the AVD config.ini directily, e.g. at:
71 …rtup options](https://developer.android.com/studio/run/emulator-commandline#common) as needed. E.g.
/device/generic/vulkan-cereal/stream-servers/apigen-codec-common/
DX11Support.cpp75 static X11FunctionGetter* g = new X11FunctionGetter; in getX11Api() local
76 return g->getApi(); in getX11Api()
80 static GlxFunctionGetter* g = new GlxFunctionGetter; in getGlxApi() local
81 return g->getApi(); in getGlxApi()
/device/generic/car/emulator/usbpt/protocan/protocanbus/
DVehicleBus.cpp38 std::lock_guard<std::mutex> g(mLock); in setOnNewPropValuesCallback() local
54 std::lock_guard<std::mutex> g(mLock); in unsetOnNewPropValuesCallback() local
69 std::lock_guard<std::mutex> g(mLock); in sendPropertyEvent() local
91 std::lock_guard<std::mutex> g(mLock); in handleBinderDied() local
/device/google/cuttlefish/host/libs/graphics_detector/
Dimg.cpp121 uint8_t g = GetChannel(pixel, g_channel_mask); in LoadRGBAFromBitmapFile() local
126 out_pixels->push_back(g); in LoadRGBAFromBitmapFile()
141 << " g:" << (int)g in LoadRGBAFromBitmapFile()
269 void ConvertRGBA8888PixelToYUV(const uint8_t r, const uint8_t g, in ConvertRGBA8888PixelToYUV() argument
273 const int g_int = static_cast<int>(g); in ConvertRGBA8888PixelToYUV()
299 const uint8_t g = *input; in ConvertRGBA8888ToYUV420() local
309 ConvertRGBA8888PixelToYUV(r, g, b, &pixel_y, &pixel_u, &pixel_v); in ConvertRGBA8888ToYUV420()
/device/generic/vulkan-cereal/stream-servers/vulkan/emulated_textures/shaders/
DEtc2ShaderLib.comp148 rgb1.g = int(convert4To8(((high >> 24) << 1) | ((high >> 20) & 1)));
151 rgb2.g = int(convert4To8(high >> 7));
156 intenseIdx |= uint(((rgb1.r << 16) | (rgb1.g << 8) | rgb1.b) >=
157 ((rgb2.r << 16) | (rgb2.g << 8) | rgb2.b));
170 rgbo.g = int(convert7To8(((high >> 24) << 6) | ((high >> 17) & 63)));
173 rgbh.g = int(convert7To8(low >> 25));
176 rgbv.g = int(convert7To8(low >> 6));
188 void decode_subblock(inout ivec4 pOut[16], int r, int g, int b, ivec4 table, uint low, bool second,
219 ivec4(_clamp(int(r) + delta), _clamp(int(g) + delta), _clamp(int(b) + delta), 255);
/device/google/contexthub/firmware/os/drivers/orientation/
Dorientation.c346 struct Vec3 g, a; in updateOutput() local
367 initVec3(&g, R.elem[0][2], R.elem[1][2], R.elem[2][2]); in updateOutput()
368 vec3ScalarMul(&g, kGravityEarth); in updateOutput()
371 g.x, in updateOutput()
372 g.y, in updateOutput()
373 g.z)) { in updateOutput()
383 initVec3(&g, R.elem[0][2], R.elem[1][2], R.elem[2][2]); in updateOutput()
384 vec3ScalarMul(&g, kGravityEarth); in updateOutput()
392 a.x - g.x, in updateOutput()
393 a.y - g.y, in updateOutput()
[all …]
/device/linaro/hikey/factory-images/
Dgenerate-factory-images-hikey.sh38 cp $ANDROID_BUILD_TOP/$DEVICE_DIR/installer/hikey/ptable-aosp-8g.img tmp/$PRODUCT-$VERSION/
39 cp $ANDROID_BUILD_TOP/$DEVICE_DIR/installer/hikey/ptable-aosp-4g.img tmp/$PRODUCT-$VERSION/
78 PTABLE=ptable-aosp-8g.img
83 PTABLE=ptable-aosp-4g.img
/device/generic/vulkan-cereal/stream-servers/compressedTextureFormats/
Detc.cpp223 void decode_subblock(etc1_byte* pOut, int r, int g, int b, const int* table, in decode_subblock() argument
257 *q++ = clamp(g + delta); in decode_subblock()
511 int g = 0; in etc_average_colors_subblock() local
526 g += *(p++); in etc_average_colors_subblock()
543 g += *(p++); in etc_average_colors_subblock()
550 pColors[1] = (etc1_byte)((g + 4) >> 3); in etc_average_colors_subblock()
568 int g = pBaseColors[1]; in chooseModifier() local
572 int decodedG = clamp(g + modifier); in chooseModifier()
939 … const etc1_byte* g = block + cy * EAC_DECODED_R11_BLOCK_SIZE / 4 + EAC_DECODED_R11_BLOCK_SIZE; in etc2_decode_image() local
945 memcpy(p, g, channelSize); in etc2_decode_image()
[all …]
/device/generic/goldfish-opengl/shared/OpenglCodecCommon/
Detc.cpp223 void decode_subblock(etc1_byte* pOut, int r, int g, int b, const int* table, in decode_subblock() argument
257 *q++ = clamp(g + delta); in decode_subblock()
511 int g = 0; in etc_average_colors_subblock() local
526 g += *(p++); in etc_average_colors_subblock()
543 g += *(p++); in etc_average_colors_subblock()
550 pColors[1] = (etc1_byte)((g + 4) >> 3); in etc_average_colors_subblock()
568 int g = pBaseColors[1]; in chooseModifier() local
572 int decodedG = clamp(g + modifier); in chooseModifier()
940 … const etc1_byte* g = block + cy * EAC_DECODED_R11_BLOCK_SIZE / 4 + EAC_DECODED_R11_BLOCK_SIZE; in etc2_decode_image() local
946 memcpy(p, g, channelSize); in etc2_decode_image()
[all …]
/device/generic/vulkan-cereal/stream-servers/gl/glestranslator/GLcommon/
Detc.cpp223 void decode_subblock(etc1_byte* pOut, int r, int g, int b, const int* table, in decode_subblock() argument
257 *q++ = clamp(g + delta); in decode_subblock()
511 int g = 0; in etc_average_colors_subblock() local
526 g += *(p++); in etc_average_colors_subblock()
543 g += *(p++); in etc_average_colors_subblock()
550 pColors[1] = (etc1_byte)((g + 4) >> 3); in etc_average_colors_subblock()
568 int g = pBaseColors[1]; in chooseModifier() local
572 int decodedG = clamp(g + modifier); in chooseModifier()
939 … const etc1_byte* g = block + cy * EAC_DECODED_R11_BLOCK_SIZE / 4 + EAC_DECODED_R11_BLOCK_SIZE; in etc2_decode_image() local
945 memcpy(p, g, channelSize); in etc2_decode_image()
[all …]
/device/generic/vulkan-cereal/stream-servers/tests/
DGLTestUtils.cpp108 TestTexture createTestTextureRGB888SingleColor(int width, int height, float r, float g, float b) { in createTestTextureRGB888SingleColor() argument
116 res[i * bpp * width + j * bpp + 1] = clamp(g, 0.0f, 1.0f) * 255.0f; in createTestTextureRGB888SingleColor()
124 TestTexture createTestTextureRGBA8888SingleColor(int width, int height, float r, float g, float b, … in createTestTextureRGBA8888SingleColor() argument
132 res[i * bpp * width + j * bpp + 1] = clamp(g, 0.0f, 1.0f) * 255.0f; in createTestTextureRGBA8888SingleColor()

12345678910>>...12