/third_party/skia/third_party/externals/libwebp/imageio/ |
H A D | jpegdec.c | 235 if (jump > ctx->pub.bytes_in_buffer) { // Don't overflow the buffer. in ContextSkip() 267 JSAMPROW buffer[1]; in ReadJPEG() local 315 buffer[0] = (JSAMPLE*)rgb; in ReadJPEG() 318 if (jpeg_read_scanlines((j_decompress_ptr)&dinfo, buffer, 1) != 1) { in ReadJPEG() 321 buffer[0] += stride; in ReadJPEG()
|
/third_party/skia/third_party/externals/icu/source/tools/toolutil/ |
H A D | toolutil.cpp | 130 findDirname(const char *path, char *buffer, int32_t bufLen, UErrorCode* status) { in findDirname() argument 155 uprv_strncpy(buffer, resultPtr, resultLen); in findDirname() 156 buffer[resultLen]=0; in findDirname() 157 return buffer; in findDirname()
|
/third_party/skia/src/shaders/ |
H A D | SkShader.cpp | 41 void SkShaderBase::flatten(SkWriteBuffer& buffer) const { in flatten() 42 this->INHERITED::flatten(buffer); in flatten() 44 buffer.writeBool(hasLocalM); in flatten() 46 buffer.writeMatrix(fLocalMatrix); in flatten()
|
/third_party/skia/src/shaders/gradients/ |
H A D | Sk4fGradientBase.cpp | 102 Sk4fGradientIntervalBuffer::BufferType* buffer) { in addMirrorIntervals() 105 SkASSERT(buffer->empty() || buffer->back().fT1 == 2 - t0); in addMirrorIntervals() 112 buffer->emplace_back(pack_color(c0, premulColors, componentScale), mirror_t0, in addMirrorIntervals() 98 addMirrorIntervals(const SkGradientShaderBase& shader, const SkColor4f* colors, const Sk4f& componentScale, bool premulColors, bool reverse, Sk4fGradientIntervalBuffer::BufferType* buffer) addMirrorIntervals() argument
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/ |
H A D | BufferVk.cpp | 135 Ref<Buffer> buffer = AcquireRef(new Buffer(device, descriptor)); in Create() local 136 DAWN_TRY(buffer->Initialize(descriptor->mappedAtCreation)); in Create() 137 return std::move(buffer); in Create() 147 // is equal to the whole buffer size. Allocate at least one more byte so it in Initialize() 149 // of the buffer with (offset=buffer.size, size=0). in Initialize() 185 // Add CopyDst for non-mappable buffer initialization with mappedAtCreation in Initialize() 197 // Gather requirements for the buffer's memory and allocate it. in Initialize() 208 // Finally associate it with the buffer. in Initialize() 286 barrier->buffer in TransitionUsageAndGetResourceBarrier() [all...] |
/third_party/skia/third_party/externals/angle2/util/ |
H A D | shader_utils.cpp | 22 char buffer[kMaxBufferSize] = {}; in ReadEntireFile() local 23 if (!angle::ReadEntireFileToString(filePath.c_str(), buffer, kMaxBufferSize) || in ReadEntireFile() 24 strlen(buffer) == 0) in ReadEntireFile() 26 *contentsOut = buffer; in ReadEntireFile()
|
/third_party/skia/third_party/externals/angle2/util/posix/ |
H A D | test_utils_posix.cpp | 81 char buffer[kBufSize]; in ReadFromFile() local 82 ssize_t bytesRead = read(fd, buffer, sizeof(buffer)); in ReadFromFile() 94 out->append(buffer, bytesRead); in ReadFromFile()
|
/third_party/skia/third_party/externals/dawn/src/dawn_node/binding/ |
H A D | GPURenderPassEncoder.cpp | 174 interop::Interface<interop::GPUBuffer> buffer, in setIndexBuffer() 183 if (!conv(b, buffer) || // in setIndexBuffer() 193 interop::Interface<interop::GPUBuffer> buffer, in setVertexBuffer() 200 if (!conv(b, buffer) || !conv(s, size)) { in setVertexBuffer() 173 setIndexBuffer(Napi::Env env, interop::Interface<interop::GPUBuffer> buffer, interop::GPUIndexFormat indexFormat, interop::GPUSize64 offset, std::optional<interop::GPUSize64> size) setIndexBuffer() argument 191 setVertexBuffer(Napi::Env env, interop::GPUIndex32 slot, interop::Interface<interop::GPUBuffer> buffer, interop::GPUSize64 offset, std::optional<interop::GPUSize64> size) setVertexBuffer() argument
|
/third_party/skia/third_party/externals/harfbuzz/src/ |
H A D | hb-ot-shape-complex-use-machine.hh | 38 /* buffer var allocations */ 426 find_syllables_use (hb_buffer_t *buffer) in find_syllables_use() argument 428 hb_glyph_info_t *info = buffer->info; in find_syllables_use() 430 + hb_iter (info, buffer->len) in find_syllables_use() 437 for (unsigned i = p.first + 1; i < buffer->len; ++i) in find_syllables_use()
|
/third_party/skia/third_party/externals/icu/source/common/ |
H A D | ustrenum.cpp | 110 UChar *buffer=unistr.getBuffer(length+1); in setChars() local 111 if(buffer!=NULL) { in setChars() 112 u_charsToUChars(s, buffer, length); in setChars() 113 buffer[length]=0; in setChars()
|
/third_party/skia/third_party/externals/dawn/src/tests/unittests/ |
H A D | MathTests.cpp | 141 char buffer[kTestAlignment * 4]; in TEST() local 144 char* unaligned = &buffer[i]; in TEST() 187 char buffer[kTestAlignment * 4]; in TEST() local 190 char* unaligned = &buffer[i]; in TEST()
|
/third_party/skia/third_party/externals/dng_sdk/source/ |
H A D | dng_opcodes.cpp | 477 // Setup buffer. in Process() 479 dng_pixel_buffer buffer(tile, 0, fImage.Planes (), fPixelType, in Process() 485 fImage.Get (buffer); in Process() 491 buffer, in Process() 497 fImage.Put (buffer); in Process()
|
/third_party/python/Lib/wsgiref/ |
H A D | handlers.py | 404 """Override in subclass to buffer data for send to client 532 self, sys.stdin.buffer, sys.stdout.buffer, sys.stderr, 568 self, sys.stdin.buffer, sys.stdout.buffer, sys.stderr,
|
/third_party/skia/modules/skunicode/include/ |
H A D | SkUnicode.h | 189 uint16_t buffer[2]; in extractUtfConversionMapping() local 190 size_t count = SkUTF::ToUTF16(u, buffer); in extractUtfConversionMapping() 219 uint16_t buffer[2]; in forEachCodepoint() local 220 size_t count = SkUTF::ToUTF16(unichar, buffer); in forEachCodepoint()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/protected_memory/ |
H A D | vktProtectedMemBufferValidator.hpp | 24 * \brief Protected content buffer validator helper 105 const vk::VkBuffer buffer) const; 177 const vk::VkBuffer buffer) const in validateBuffer() 244 buffer, // VkBuffer buffer in validateBuffer() 257 vk::VkDescriptorBufferInfo descTestBuffer = makeDescriptorBufferInfo(buffer, 0, testBufferSize); in validateBuffer()
|
/third_party/ltp/tools/sparse/sparse-src/ |
H A D | show-parse.c | 112 static char buffer[100]; in show_modifiers() local 153 while ((c = *name++) != '\0' && len + 2 < sizeof buffer) in show_modifiers() 154 buffer[len++] = c; in show_modifiers() 155 buffer[len++] = ' '; in show_modifiers() 160 buffer[len] = 0; in show_modifiers() 161 return buffer; in show_modifiers() 210 static char buffer[512]; in prepend() local 215 n = vsprintf(buffer, fmt, args); in prepend() 219 memcpy(name->start, buffer, n); in prepend() 224 static char buffer[51 in append() local [all...] |
/third_party/lzma/C/ |
H A D | LzFind.c | 111 static const Byte *MatchFinder_GetPointerToCurrentPos(CMatchFinder *p) { return p->buffer; }
in MatchFinder_GetPointerToCurrentPos() 139 const Byte *dest = p->buffer + GET_AVAIL_BYTES(p);
in MatchFinder_ReadBlock() 186 const size_t offset = (size_t)(p->buffer - p->bufBase) - p->keepSizeBefore;
in MatchFinder_MoveBlock() 188 p->buffer = p->bufBase + keepBefore;
in MatchFinder_MoveBlock() 208 return ((size_t)(p->bufBase + p->blockSize - p->buffer) <= p->keepSizeAfter);
in MatchFinder_NeedMove() 234 p->buffer = NULL;
in MatchFinder_Construct() 473 // 22.02: we don't reallocate buffer, if old size is enough
in MatchFinder_Create() 556 p->buffer = p->bufBase;
in MatchFinder_Init_4() 848 of (p->pos) and (p->buffer) for speculated accesses. */
in MatchFinder_CheckLimits() 1086 p->buffer [all...] |
/third_party/vk-gl-cts/external/openglcts/modules/glesext/geometry_shader/ |
H A D | esextcGeometryShaderLayeredFramebuffer.cpp | 173 unsigned char buffer[TEXTURE_WIDTH * TEXTURE_HEIGHT * N_TEXTURE_COMPONENTS]; in iterate() local 321 gl.readPixels(0 /* x */, 0 /* y */, TEXTURE_WIDTH, TEXTURE_HEIGHT, GL_RGBA, GL_UNSIGNED_BYTE, buffer); in iterate() 329 const unsigned char* row = buffer + y * pixel_size; in iterate() 576 void* buffer = NULL; in iterate() local 594 buffer = buffer_char; in iterate() 610 buffer = (void*)buffer_int; in iterate() 626 buffer = (void*)buffer_uint; in iterate() 675 gl.clearBufferiv(GL_COLOR, 0 /* draw buffer index */, clear_color_int); in iterate() 682 gl.clearBufferuiv(GL_COLOR, 0 /* draw buffer index */, (const glw::GLuint*)clear_color_int); in iterate() 689 gl.clearBufferfv(GL_COLOR, 0 /* draw buffer inde in iterate() 1044 unsigned char buffer[TEXTURE_WIDTH * TEXTURE_HEIGHT * N_TEXTURE_COMPONENTS]; iterate() local [all...] |
/third_party/vk-gl-cts/external/amber/src/src/ |
H A D | pipeline_test.cc | 269 EXPECT_EQ("buffer (0:0) requires a format", r.Error()); in TEST_F() 391 EXPECT_EQ("vertex_buffer", vtex_buffers[0].buffer->GetName()); in TEST_F() 399 EXPECT_EQ("buf1", bufs[0].buffer->GetName()); in TEST_F() 406 EXPECT_EQ("buf2", bufs[1].buffer->GetName()); in TEST_F() 451 EXPECT_EQ("buf1", bufs[0].buffer->GetName()); in TEST_F() 454 EXPECT_EQ("buf2", bufs[1].buffer->GetName()); in TEST_F() 626 EXPECT_EQ(5U, b1.buffer->ValueCount()); in TEST_F() 631 EXPECT_EQ(4U, b2.buffer->ValueCount()); in TEST_F() 798 EXPECT_EQ(5U, b1.buffer->ValueCount()); in TEST_F() 803 EXPECT_EQ(4U, b2.buffer in TEST_F() [all...] |
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/ |
H A D | BufferVk.cpp | 27 // the buffer is made in 4-byte chunks. Assume the size of the buffer is 4k+n where n is in [0, 3). 29 // last n bytes. By rounding up the buffer sizes to a multiple of 4, the problem is alleviated. 33 // Start with a fairly small buffer size. We can increase this dynamically as we convert more data. 113 // The buffer may be used for a number of different operations, so its allocations should in GetPreferredDynamicBufferInitialSize() 131 // buffer size automatically (which will allocate BufferHelpers with the same size as this in GetPreferredDynamicBufferInitialSize() 132 // buffer). in GetPreferredDynamicBufferInitialSize() 136 // Sub-allocate from a 4KB buffer. If the buffer allocations are bigger, the dynamic buffer in GetPreferredDynamicBufferInitialSize() 327 std::unique_ptr<vk::BufferHelper> buffer = std::make_unique<vk::BufferHelper>(); setExternalBufferData() local [all...] |
/third_party/backends/backend/pixma/ |
H A D | pixma_bjnp.c | 201 /* if debuglevel == exact match and buffer contains more than 3 lines, print 2 lines + .... */ in bjnp_hexdump() 365 * len is length of destination buffer in charTo2byte() 588 * Set command buffer with command code, session_id and length of payload in set_cmd_from_string() 607 * Set command buffer with command code, session_id and length of payload in set_cmd_for_dev() 1140 int buf_len; /* length of the whole command buffer */ in bjnp_poll_scanner() 1552 bjnp_recv_data (int devno, SANE_Byte * buffer, size_t start_pos, size_t * len) in bjnp_recv_data() argument 1570 (LOG_DEBUG, "bjnp_recv_data: read response payload (0x%lx bytes max), buffer: 0x%lx, start_pos: 0x%lx\n", in bjnp_recv_data() 1571 (long) *len, (long) buffer, (long) start_pos)); in bjnp_recv_data() 1624 if ((recv_bytes = recv (fd, buffer + start_pos, *len, 0)) < 0) in bjnp_recv_data() 1629 (long) buffer, (lon in bjnp_recv_data() 2403 sanei_bjnp_read_bulk(SANE_Int dn, SANE_Byte * buffer, size_t * size) sanei_bjnp_read_bulk() argument 2520 sanei_bjnp_write_bulk(SANE_Int dn, const SANE_Byte * buffer, size_t * size) sanei_bjnp_write_bulk() argument 2595 sanei_bjnp_read_int(SANE_Int dn, SANE_Byte * buffer, size_t * size) sanei_bjnp_read_int() argument [all...] |
/third_party/icu/vendor/double-conversion/upstream/test/cctest/ |
H A D | test-strtod.cc | 1094 static bool CheckDouble(Vector<const char> buffer, in CheckDouble() argument 1100 input_digits.AssignDecimalString(buffer); in CheckDouble() 1103 // Check that the buffer*10^exponent < (0 + kMinDouble)/2. in CheckDouble() 1110 // Check that the buffer*10^exponent >= boundary between kMaxDouble and inf. in CheckDouble() 1150 char buffer[kBufferSize]; in TEST() local 1155 buffer[pos++] = DeterministicRandom() % 10 + '0'; in TEST() 1158 buffer[pos] = '\0'; in TEST() 1159 Vector<const char> vector(buffer, pos); in TEST() 1168 buffer[pos++] = DeterministicRandom() % 10 + '0'; in TEST() 1171 buffer[po in TEST() 1180 CheckFloat(Vector<const char> buffer, int exponent, float to_check) CheckFloat() argument 1217 char buffer[kBufferSize]; TEST() local [all...] |
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/ |
H A D | FramebufferGL.cpp | 321 // Temporarily allocated pixel readback buffer 530 GLenum buffer, in clearBufferfv() 538 syncClearBufferState(context, buffer, drawbuffer); in clearBufferfv() 543 functions->clearBufferfv(buffer, drawbuffer, values); in clearBufferfv() 550 static_cast<GLbitfield>(0u), buffer, drawbuffer, in clearBufferfv() 559 GLenum buffer, in clearBufferuiv() 567 syncClearBufferState(context, buffer, drawbuffer); in clearBufferuiv() 572 functions->clearBufferuiv(buffer, drawbuffer, values); in clearBufferuiv() 579 static_cast<GLbitfield>(0u), buffer, drawbuffer, in clearBufferuiv() 588 GLenum buffer, in clearBufferiv() 529 clearBufferfv(const gl::Context *context, GLenum buffer, GLint drawbuffer, const GLfloat *values) clearBufferfv() argument 558 clearBufferuiv(const gl::Context *context, GLenum buffer, GLint drawbuffer, const GLuint *values) clearBufferuiv() argument 587 clearBufferiv(const gl::Context *context, GLenum buffer, GLint drawbuffer, const GLint *values) clearBufferiv() argument 616 clearBufferfi(const gl::Context *context, GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil) clearBufferfi() argument 1407 syncClearBufferState(const gl::Context *context, GLenum buffer, GLint drawBuffer) syncClearBufferState() argument [all...] |
/third_party/vk-gl-cts/external/openglcts/modules/gles31/ |
H A D | es31cTextureStorageMultisampleFunctionalTests.cpp | 564 * for the depth buffer to be updated. in iterate() 647 unsigned int buffer[64 /* width */ * 64 /* height */ * 4 /* components */]; in iterate() local 653 GL_RGBA_INTEGER, GL_UNSIGNED_INT, buffer); in iterate() 667 float* row_ptr = (float*)buffer + row_width * data_y; in iterate() 844 * as the color buffer's attachment uses GL_R16UI format. in iterate() 970 /* Clear color buffer before drawing to it, not strictly neccesary in iterate() 1005 /* Clear color buffer before drawing to it, not strictly neccesary in iterate() 1015 * because the read buffer contains integer data. in iterate() 1032 /* Allocate a buffer to hold the result data and then download the result texture's in iterate() 1034 unsigned int* buffer in iterate() local 2626 unsigned char* buffer = NULL; iterate() local [all...] |
/third_party/skia/third_party/externals/angle2/src/libANGLE/ |
H A D | Context_gl.cpp | 996 void Context::feedbackBuffer(GLsizei size, GLenum type, GLfloat *buffer) in feedbackBuffer() argument 1572 void Context::selectBuffer(GLsizei size, GLuint *buffer) in selectBuffer() argument 2719 void Context::invalidateBufferData(BufferID buffer) in invalidateBufferData() argument 2724 void Context::invalidateBufferSubData(BufferID buffer, GLintptr offset, GLsizeiptr length) in invalidateBufferSubData() argument 2863 void Context::clearNamedBufferData(BufferID buffer, in clearNamedBufferData() argument 2872 void Context::clearNamedBufferSubData(BufferID buffer, in clearNamedBufferSubData() argument 2884 GLenum buffer, in clearNamedFramebufferfi() 2893 GLenum buffer, in clearNamedFramebufferfv() 2901 GLenum buffer, in clearNamedFramebufferiv() 2909 GLenum buffer, in clearNamedFramebufferuiv() 2883 clearNamedFramebufferfi(FramebufferID framebuffer, GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil) clearNamedFramebufferfi() argument 2892 clearNamedFramebufferfv(FramebufferID framebuffer, GLenum buffer, GLint drawbuffer, const GLfloat *value) clearNamedFramebufferfv() argument 2900 clearNamedFramebufferiv(FramebufferID framebuffer, GLenum buffer, GLint drawbuffer, const GLint *value) clearNamedFramebufferiv() argument 2908 clearNamedFramebufferuiv(FramebufferID framebuffer, GLenum buffer, GLint drawbuffer, const GLuint *value) clearNamedFramebufferuiv() argument 3054 flushMappedNamedBufferRange(BufferID buffer, GLintptr offset, GLsizeiptr length) flushMappedNamedBufferRange() argument 3086 getNamedBufferParameteri64v(BufferID buffer, GLenum pname, GLint64 *params) getNamedBufferParameteri64v() argument 3091 getNamedBufferParameteriv(BufferID buffer, GLenum pname, GLint *params) getNamedBufferParameteriv() argument 3096 getNamedBufferPointerv(BufferID buffer, GLenum pname, void **params) getNamedBufferPointerv() argument 3101 getNamedBufferSubData(BufferID buffer, GLintptr offset, GLsizeiptr size, void *data) getNamedBufferSubData() argument 3126 getQueryBufferObjecti64v(GLuint id, BufferID buffer, GLenum pname, GLintptr offset) getQueryBufferObjecti64v() argument 3131 getQueryBufferObjectiv(GLuint id, BufferID buffer, GLenum pname, GLintptr offset) getQueryBufferObjectiv() argument 3136 getQueryBufferObjectui64v(GLuint id, BufferID buffer, GLenum pname, GLintptr offset) getQueryBufferObjectui64v() argument 3141 getQueryBufferObjectuiv(GLuint id, BufferID buffer, GLenum pname, GLintptr offset) getQueryBufferObjectuiv() argument 3375 mapNamedBuffer(BufferID buffer, GLenum access) mapNamedBuffer() argument 3381 mapNamedBufferRange(BufferID buffer, GLintptr offset, GLsizeiptr length, GLbitfield access) mapNamedBufferRange() argument 3390 namedBufferData(BufferID buffer, GLsizeiptr size, const void *data, GLenum usage) namedBufferData() argument 3395 namedBufferStorage(BufferID buffer, GLsizeiptr size, const void *data, GLbitfield flags) namedBufferStorage() argument 3403 namedBufferSubData(BufferID buffer, GLintptr offset, GLsizeiptr size, const void *data) namedBufferSubData() argument 3478 textureBuffer(TextureID texture, GLenum internalformat, BufferID buffer) textureBuffer() argument 3483 textureBufferRange(TextureID texture, GLenum internalformat, BufferID buffer, GLintptr offset, GLsizeiptr size) textureBufferRange() argument 3609 transformFeedbackBufferBase(GLuint xfb, GLuint index, BufferID buffer) transformFeedbackBufferBase() argument 3614 transformFeedbackBufferRange(GLuint xfb, GLuint index, BufferID buffer, GLintptr offset, GLsizeiptr size) transformFeedbackBufferRange() argument 3623 unmapNamedBuffer(BufferID buffer) unmapNamedBuffer() argument 3667 vertexArrayElementBuffer(VertexArrayID vaobj, BufferID buffer) vertexArrayElementBuffer() argument 3672 vertexArrayVertexBuffer(VertexArrayID vaobj, GLuint bindingindex, BufferID buffer, GLintptr offset, GLsizei stride) vertexArrayVertexBuffer() argument [all...] |