Home
last modified time | relevance | path

Searched refs:int (Results 1 – 25 of 169) sorted by relevance

1234567

/hardware/google/gfxstream/host/vulkan/emulated_textures/shaders/
DEtc2ShaderLib.comp17 precision highp int;
30 const int kLookup[8] = {0, 1, 2, 3, -4, -3, -2, -1};
71 int val = int(0x1f & base) + kLookup[0x7 & diff];
96 return convert5To8(uint(int(0x1f & base) + kLookup[0x7 & diff]));
99 int _clamp(int x) { return int(clamp(x, 0, 255)); }
123 const int LUT[] = {3, 6, 11, 16, 23, 32, 41, 64};
124 int r1, r2, g1, g2, b1, b2;
125 r1 = int(convert4To8((((high >> 27) & 3) << 2) | ((high >> 24) & 3)));
126 g1 = int(convert4To8(high >> 20));
127 b1 = int(convert4To8(high >> 16));
[all …]
DAstc.comp25 precision highp int;
121 const int kRQuantParamTableLength = 19;
147 uint bit(uint u, int bit) { return (u >> bit) & 1; }
193 const int kNumVals = 5;
194 const int kInterleavedBits[5] = {2, 2, 1, 2, 1};
200 for (int i = 0; i < kNumVals; ++i) {
211 for (int i = 0; i < kNumVals; ++i) {
219 const int kNumVals = 3;
220 const int kInterleavedBits[3] = {3, 2, 2};
227 for (int i = 0; i < kNumVals; ++i) {
[all …]
DEtc2RGBA8.comp31 pos.z += int(u_pushConstant.baseLayer);
38 etc2_decode_rgb_block(int(flip32(srcBlock[2])), int(flip32(srcBlock[3])), false);
40 for (int y = 0; y < WITH_TYPE(BLOCK_Y_SIZE_); y++) {
41 for (int x = 0; x < 4; x++) {
DEacR11Snorm.comp31 pos.z += int(u_pushConstant.baseLayer);
37 for (int y = 0; y < WITH_TYPE(BLOCK_Y_SIZE_); y++) {
38 for (int x = 0; x < 4; x++) {
DEacR11Unorm.comp31 pos.z += int(u_pushConstant.baseLayer);
37 for (int y = 0; y < WITH_TYPE(BLOCK_Y_SIZE_); y++) {
38 for (int x = 0; x < 4; x++) {
DAstcDecompressor.glsl151 numWeights = (weightGridSize.x * weightGridSize.y) << int(dualPlane);
181 return bitfieldExtract(data[i], int(start), int(numBits));
184 uint lowBits = bitfieldExtract(data[i], int(start), int(numLowBits));
185 uint highBits = bitfieldExtract(data[j], 0, int(numBits - numLowBits));
227 bitfieldExtract(fullCem, int(2 * partitionIndex + numPartitions), 2);
228 const uint cValues = bitfieldExtract(fullCem, 0, int(numPartitions));
234 bitCount(bitfieldExtract(cValues, 0, int(partitionIndex))));
235 uint baseClass = cemSelector - 1 + bitfieldExtract(cValues, int(partitionIndex), 1);
247 const int inumBits = int(numBits);
267 const int j = int(i) - 1;
[all …]
/hardware/google/gfxstream/scripts/print_gfx_logs/
Dprint_gfx_logs.py58 timestamp: int # Unix timestamp when command was recorded, in microseconds
59 opcode: int
60 original_size: int
66 pos_in_file: int # Location of this stream in the minidump file, useful for debugging
67 timestamp: int # Unix timestamp of last command received, in microseconds
68 thread_id: int
69 capture_id: int
74 def error(pos_in_file: int, error_message: str) -> Stream: argument
79 def timestampToUnixUs(timestamp: int) -> int: argument
82 timestamp_us = int(timestamp / 10 - 11644473600000000)
[all …]
Dcommand_printer.py29 def __init__(self, opcode: int, original_size: int, data: bytes, timestamp: int, argument
30 stream_idx: int, cmd_idx: int, out=sys.stdout): argument
93 def read_bytes(self, size: int): argument
99 def read_int(self, size: int, signed: bool = False, big_endian: bool = False) -> int: argument
103 return int.from_bytes(buf, byteorder=byte_order, signed=signed)
109 def write(self, msg: str, indent: int): argument
112 assert type(indent) == int and indent >= 0
117 size: int, argument
118 indent: int, argument
122 count: Optional[int] = None) -> Optional[int]: argument
[all …]
Dvulkan_printer.py8 def OP_vkAcquireImageANDROID(printer, indent: int): argument
17 def OP_vkAllocateMemory(printer, indent: int): argument
25 def OP_vkBeginCommandBufferAsyncGOOGLE(printer, indent: int): argument
29 def OP_vkBindBufferMemory(printer, indent: int): argument
37 def OP_vkBindImageMemory(printer, indent: int): argument
45 def OP_vkCmdBeginRenderPass(printer, indent: int): argument
50 def OP_vkCmdBindDescriptorSets(printer, indent: int): argument
60 def OP_vkCmdBindIndexBuffer(printer, indent: int): argument
66 def OP_vkCmdBindPipeline(printer, indent: int): argument
71 def OP_vkCmdBindVertexBuffers(printer, indent: int): argument
[all …]
/hardware/google/gfxstream/codegen/renderControl/
DrenderControl.in17 GL_ENTRY(int, rcFlushWindowColorBuffer, uint32_t windowSurface)
23 GL_ENTRY(EGLint, rcColorBufferCacheFlush, uint32_t colorbuffer, EGLint postCount,int forRead)
25 GL_ENTRY(int, rcUpdateColorBuffer, uint32_t colorbuffer, GLint x, GLint y, GLint width, GLint heigh…
26 GL_ENTRY(int, rcOpenColorBuffer2, uint32_t colorbuffer)
28 GL_ENTRY(int, rcDestroyClientImage, uint32_t image)
30 GL_ENTRY(void, rcCreateSyncKHR, EGLenum type, EGLint* attribs, uint32_t num_attribs, int destroy_wh…
33 GL_ENTRY(int, rcDestroySyncKHR, uint64_t sync)
35 GL_ENTRY(int, rcUpdateColorBufferDMA, uint32_t colorbuffer, GLint x, GLint y, GLint width, GLint he…
36 …cCreateColorBufferDMA, uint32_t width, uint32_t height, GLenum internalFormat, int frameworkFormat)
39 GL_ENTRY(int, rcCreateDisplay, uint32_t* displayId);
[all …]
/hardware/google/gfxstream/host/gl/glestranslator/EGL/
DMacNative.m38 int boundToPbuffer;
39 int boundToWin;
46 - (void) preBind:(int)forPbuffer; argument
62 - (void) preBind:(int)forPbuffer
72 int getAttrListLength(const NSOpenGLPixelFormatAttribute* list) { argument
73 int count = 0;
99 int setupCoreProfileNativeFormats() {
107 return (int)NSOpenGLProfileVersion4_1Core;
116 return (int)NSOpenGLProfileVersion3_2Core;
119 return (int)NSOpenGLProfileVersionLegacy;
[all …]
/hardware/google/gfxstream/third-party/glm/include/glm/gtx/
Dinteger.inl7 GLM_FUNC_QUALIFIER int pow(int x, int y)
11 int result = x;
12 for(int i = 1; i < y; ++i)
18 GLM_FUNC_QUALIFIER int sqrt(int x)
22 int NextTrial = x >> 1;
23 int CurrentAnswer;
37 GLM_FUNC_QUALIFIER unsigned int ones32(unsigned int x)
54 GLM_FUNC_QUALIFIER unsigned int floor_log2(unsigned int x)
66 GLM_FUNC_QUALIFIER int mod(int x, int y)
143 GLM_FUNC_QUALIFIER unsigned int nlz(unsigned int x)
[all …]
/hardware/google/gfxstream/host/
DNativeSubWindow_cocoa.mm60 int x,
61 int y,
62 int width,
63 int height,
67 int hideWindow) {
75 int cocoa_y = (int)content_rect.size.height - (y + height);
109 int moveSubWindow(FBNativeWindowType p_parent_window,
111 int x,
112 int y,
113 int width,
[all …]
/hardware/google/gfxstream/third-party/glm/include/glm/detail/
Dfunc_integer.inl72 GLM_FUNC_QUALIFIER static int call(genIUType Value)
85 GLM_FUNC_QUALIFIER static int call(genIUType Value)
89 return IsNotNull ? int(Result) : -1;
97 GLM_FUNC_QUALIFIER static int call(genIUType Value)
101 return IsNotNull ? int(Result) : -1;
125 template <typename T, glm::precision P, template <typename, glm::precision> class vecType, int>
128 GLM_FUNC_QUALIFIER static vecType<int, P> call(vecType<T, P> const & vec)
137 return vecType<int, P>(sizeof(T) * 8 - 1) - glm::bitCount(~x);
143 GLM_FUNC_QUALIFIER int compute_findMSB_32(genIUType Value)
147 return IsNotNull ? int(Result) : -1;
[all …]
Dtype_half.inl11 for(int i = 0; i < 10; ++i)
36 int s = (value >> 15) & 0x00000001;
37 int e = (value >> 10) & 0x0000001f;
38 int m = value & 0x000003ff;
49 result.i = (unsigned int)(s << 31);
77 result.i = (unsigned int)((s << 31) | 0x7f800000);
87 result.i = (unsigned int)((s << 31) | 0x7f800000 | (m << 13));
104 Result.i = (unsigned int)((s << 31) | (e << 23) | m);
112 int i = (int)Entry.i;
124 int s = (i >> 16) & 0x00008000;
[all …]
/hardware/google/gfxstream/third-party/glm/include/glm/gtc/
Dinteger.inl20 struct compute_log2<int, P, tvec4, false, Aligned>
22 GLM_FUNC_QUALIFIER static tvec4<int, P> call(tvec4<int, P> const & vec)
24 tvec4<int, P> Result(glm::uninitialize);
37 GLM_FUNC_QUALIFIER int iround(genType x)
42 return static_cast<int>(x + static_cast<genType>(0.5));
46 GLM_FUNC_QUALIFIER vecType<int, P> iround(vecType<T, P> const& x)
51 return vecType<int, P>(x + static_cast<T>(0.5));
/hardware/google/gfxstream/guest/renderControl_enc/
DrenderControl.in17 GL_ENTRY(int, rcFlushWindowColorBuffer, uint32_t windowSurface)
23 GL_ENTRY(EGLint, rcColorBufferCacheFlush, uint32_t colorbuffer, EGLint postCount,int forRead)
25 GL_ENTRY(int, rcUpdateColorBuffer, uint32_t colorbuffer, GLint x, GLint y, GLint width, GLint heigh…
26 GL_ENTRY(int, rcOpenColorBuffer2, uint32_t colorbuffer)
28 GL_ENTRY(int, rcDestroyClientImage, uint32_t image)
31 GL_ENTRY(int, rcOpenColorBuffer2Puid, uint32_t colorbuffer, uint64_t puid)
37 GL_ENTRY(int, rcDestroyClientImagePuid, uint32_t image, uint64_t puid)
/hardware/interfaces/graphics/mapper/stable-c/abi-dumps/arm_arm64/source-based/
Dlibimapper_stablec_abicheck.so.lsdump7 "name" : "int[0]",
66 "name" : "int",
76 "name" : "unsigned int",
176 …r (void (*)(void *), void (*)(void *, AIMapper_MetadataType, const void *, unsigned int), void *)",
197 …ame" : "AIMapper_Error (const native_handle *, AIMapper_MetadataType, const void *, unsigned int)",
236 …nst native_handle *, void (*)(void *, AIMapper_MetadataType, const void *, unsigned int), void *)",
296 "name" : "AIMapper_Error (const native_handle *, int *)",
314 "name" : "AIMapper_Error (const native_handle *, unsigned int *, unsigned int *)",
335 "name" : "AIMapper_Error (const native_handle *, long long, const void *, unsigned int)",
359 "name" : "AIMapper_Error (const native_handle *, unsigned long long, ARect, int, void **)",
[all …]
/hardware/interfaces/graphics/mapper/stable-c/abi-dumps/x86/source-based/
Dlibimapper_stablec_abicheck.so.lsdump7 "name" : "int[0]",
65 "name" : "int",
75 "name" : "unsigned int",
175 …r (void (*)(void *), void (*)(void *, AIMapper_MetadataType, const void *, unsigned int), void *)",
196 …ame" : "AIMapper_Error (const native_handle *, AIMapper_MetadataType, const void *, unsigned int)",
235 …nst native_handle *, void (*)(void *, AIMapper_MetadataType, const void *, unsigned int), void *)",
295 "name" : "AIMapper_Error (const native_handle *, int *)",
313 "name" : "AIMapper_Error (const native_handle *, unsigned int *, unsigned int *)",
334 "name" : "AIMapper_Error (const native_handle *, long long, const void *, unsigned int)",
358 "name" : "AIMapper_Error (const native_handle *, unsigned long long, ARect, int, void **)",
[all …]
/hardware/interfaces/graphics/mapper/stable-c/abi-dumps/x86_x86_64/source-based/
Dlibimapper_stablec_abicheck.so.lsdump7 "name" : "int[0]",
65 "name" : "int",
75 "name" : "unsigned int",
175 …r (void (*)(void *), void (*)(void *, AIMapper_MetadataType, const void *, unsigned int), void *)",
196 …ame" : "AIMapper_Error (const native_handle *, AIMapper_MetadataType, const void *, unsigned int)",
235 …nst native_handle *, void (*)(void *, AIMapper_MetadataType, const void *, unsigned int), void *)",
295 "name" : "AIMapper_Error (const native_handle *, int *)",
313 "name" : "AIMapper_Error (const native_handle *, unsigned int *, unsigned int *)",
334 "name" : "AIMapper_Error (const native_handle *, long long, const void *, unsigned int)",
358 "name" : "AIMapper_Error (const native_handle *, unsigned long long, ARect, int, void **)",
[all …]
/hardware/interfaces/graphics/mapper/stable-c/abi-dumps/arm/source-based/
Dlibimapper_stablec_abicheck.so.lsdump7 "name" : "int[0]",
66 "name" : "int",
76 "name" : "unsigned int",
176 …r (void (*)(void *), void (*)(void *, AIMapper_MetadataType, const void *, unsigned int), void *)",
197 …ame" : "AIMapper_Error (const native_handle *, AIMapper_MetadataType, const void *, unsigned int)",
236 …nst native_handle *, void (*)(void *, AIMapper_MetadataType, const void *, unsigned int), void *)",
296 "name" : "AIMapper_Error (const native_handle *, int *)",
314 "name" : "AIMapper_Error (const native_handle *, unsigned int *, unsigned int *)",
335 "name" : "AIMapper_Error (const native_handle *, long long, const void *, unsigned int)",
359 "name" : "AIMapper_Error (const native_handle *, unsigned long long, ARect, int, void **)",
[all …]
/hardware/interfaces/bluetooth/audio/utils/hfp_codec_capabilities/schema/
Dcurrent.txt16 method public int getMaxLatencyMs();
20 method public int getPacketTypes();
26 method public void setMaxLatencyMs(int);
30 method public void setPacketTypes(int);
46 method public int getCodedDataSize();
54 method public void setCodedDataSize(int);
66 method public int getCodedFrameSize();
70 method public void setCodedFrameSize(int);
/hardware/google/gfxstream/guest/mesa/src/util/
Dformat_srgb.py70 … print(' '.join(['%3u,' % int(srgb_to_linear(i / 255.0) * 255.0 + 0.5) for i in range(j, j + 16)]))
77 … print(' '.join(['%3u,' % int(linear_to_srgb(i / 255.0) * 255.0 + 0.5) for i in range(j, j + 16)]))
119 int_a = int(scaled_a + 0.5)
120 int_b = int(scaled_b + 0.5)
/hardware/google/gfxstream/guest/mesa/src/vulkan/util/
Dvk_extensions.py21 self.ext_version = int(ext_version)
26 number = int(ext_elem.attrib['number'])
41 version = int(enum_elem.attrib['value'])
70 self.major = int(split[0])
71 self.minor = int(split[1])
74 self.patch = int(split[2])
118 order.append(int(substring))
/hardware/google/gfxstream/codegen/generic-apigen/
DREADME28 unsigned int opcode;
29 unsigned int packet_len;
43 int foo(int p1, short s1)
47 14, // sizeof(opcode) + sizeof(packet_len) + sizeof(int) + sizeof(short)
54 int retval;
69 unsinged int pointer_data_len;
75 unsigned int pointer_data_len;
81 int foo(int n, int *ptr); // assume that ‘data’ is in_out pointer which contains ‘n’ ints
86 xx, sizeof(opcode) + sizeof(datalen) + sizeof(int) + sizeof(unsigned int) + n * sizeof(int);
88 n * sizeof(int), // size of the data in ptr
[all …]

1234567