/third_party/skia/third_party/externals/freetype/src/base/ |
H A D | ftbitmap.c | 88 if ( !source->buffer ) in FT_EXPORT_DEF() 104 if ( target->buffer ) in FT_EXPORT_DEF() 115 FT_MEM_QREALLOC( target->buffer, target_size, size ); in FT_EXPORT_DEF() 118 FT_MEM_QALLOC( target->buffer, size ); in FT_EXPORT_DEF() 125 p = target->buffer; in FT_EXPORT_DEF() 127 target->buffer = p; in FT_EXPORT_DEF() 130 FT_MEM_COPY( target->buffer, source->buffer, size ); in FT_EXPORT_DEF() 135 FT_Byte* s = source->buffer; in FT_EXPORT_DEF() 136 FT_Byte* t = target->buffer; in FT_EXPORT_DEF() 169 unsigned char* buffer = NULL; ft_bitmap_assure_buffer() local 975 unsigned char* buffer = NULL; FT_EXPORT_DEF() local [all...] |
/third_party/skia/third_party/externals/swiftshader/src/Shader/ |
H A D | PixelRoutine.cpp | 308 Pointer<Byte> buffer = sBuffer + 2 * x; in stencilTest() local 312 buffer += q * *Pointer<Int>(data + OFFSET(DrawData,stencilSliceB)); in stencilTest() 315 Byte8 value = *Pointer<Byte8>(buffer); in stencilTest() 409 Pointer<Byte> buffer; in depthTest() local 414 buffer = zBuffer + 4 * x; in depthTest() 419 buffer = zBuffer + 8 * x; in depthTest() 424 buffer += q * *Pointer<Int>(data + OFFSET(DrawData,depthSliceB)); in depthTest() 434 zValue.xy = *Pointer<Float4>(buffer); in depthTest() 435 zValue.zw = *Pointer<Float4>(buffer + pitch - 8); in depthTest() 439 zValue = *Pointer<Float4>(buffer, 1 in depthTest() 680 Pointer<Byte> buffer; writeDepth() local 750 Pointer<Byte> buffer = sBuffer + 2 * x; writeStencil() local 1002 Pointer<Byte> buffer; readPixel() local 1579 Pointer<Byte> buffer = cBuffer + 2 * x; writeColor() local 1656 Pointer<Byte> buffer = cBuffer + x * 4; writeColor() local 1705 Pointer<Byte> buffer = cBuffer + x * 4; writeColor() local 1745 Pointer<Byte> buffer = cBuffer + 2 * x; writeColor() local 1770 Pointer<Byte> buffer = cBuffer + 1 * x; writeColor() local 1787 Pointer<Byte> buffer = cBuffer + 1 * x; writeColor() local 1803 Pointer<Byte> buffer = cBuffer + 4 * x; writeColor() local 1840 Pointer<Byte> buffer = cBuffer + 8 * x; writeColor() local 2044 Pointer<Byte> buffer; alphaBlend() local 2285 Pointer<Byte> buffer; writeColor() local [all...] |
/third_party/mesa3d/src/gallium/drivers/radeonsi/ |
H A D | si_texture.c | 330 ctx->flush_resource(ctx, &tex->buffer.b.b); in si_eliminate_fast_color_clear() 348 assert(tex->buffer.b.b.nr_samples <= 1); in si_texture_discard_cmask() 351 tex->cmask_base_address_reg = tex->buffer.gpu_address >> 8; in si_texture_discard_cmask() 356 if (tex->cmask_buffer != &tex->buffer) in si_texture_discard_cmask() 371 (!tex->buffer.b.is_shared || in si_can_disable_dcc() 372 !(tex->buffer.external_usage & PIPE_HANDLE_USAGE_FRAMEBUFFER_WRITE)) && in si_can_disable_dcc() 432 struct pipe_resource templ = tex->buffer.b.b; in si_reallocate_texture_inplace() 437 if (tex->buffer.b.is_shared || tex->num_planes > 1) in si_reallocate_texture_inplace() 461 si_resource_copy_region(&sctx->b, &new_tex->buffer.b.b, in si_reallocate_texture_inplace() 462 i, 0, 0, 0, &tex->buffer in si_reallocate_texture_inplace() [all...] |
/third_party/ffmpeg/libavutil/tests/ |
H A D | dict.c | 37 char *buffer = NULL; in test_separators() local 42 av_dict_get_string(dict, &buffer, val, pair); in test_separators() 43 printf("%s\n", buffer); in test_separators() 45 ret = av_dict_parse_string(&dict, buffer, vals, pairs, 0); in test_separators() 47 av_freep(&buffer); in test_separators() 56 char *buffer = NULL; in main() local 59 av_dict_get_string(dict, &buffer, '=', ','); in main() 60 printf("%s\n", buffer); in main() 61 av_freep(&buffer); in main()
|
/third_party/libuv/test/ |
H A D | test-process-title.c | 28 char buffer[512]; in set_title() local 31 err = uv_get_process_title(buffer, sizeof(buffer)); in set_title() 37 err = uv_get_process_title(buffer, sizeof(buffer)); in set_title() 40 ASSERT_OK(strcmp(buffer, title)); in set_title() 45 char buffer[512]; in uv_get_process_title_edge_cases() local 48 /* Test a NULL buffer */ in uv_get_process_title_edge_cases() 53 r = uv_get_process_title(buffer, 0); in uv_get_process_title_edge_cases() 56 /* Test for insufficient buffer siz in uv_get_process_title_edge_cases() [all...] |
/third_party/node/deps/icu-small/source/tools/genrb/ |
H A D | rbutil.c | 74 itostr(char * buffer, int32_t i, uint32_t radix, int32_t pad) in itostr() argument 91 buffer[length++]= digits[digit]; in itostr() 96 buffer[length++] = '0';/*zero padding */ in itostr() 101 buffer[length++]='-'; in itostr() 104 /* null terminate the buffer */ in itostr() 106 buffer[length] = 0x0000; in itostr() 114 temp = buffer[(length-1) - j]; in itostr() 115 buffer[(length-1) - j] = buffer[j]; in itostr() 116 buffer[ in itostr() [all...] |
/third_party/skia/src/gpu/ |
H A D | GrStagingBufferManager.cpp | 17 StagingBuffer* buffer = nullptr; in allocateStagingBufferSlice() local 24 buffer = &fBuffers[i]; in allocateStagingBufferSlice() 29 if (!buffer) { in allocateStagingBufferSlice() 42 buffer = &fBuffers.back(); in allocateStagingBufferSlice() 46 SkASSERT(buffer); in allocateStagingBufferSlice() 47 SkASSERT(buffer->remaining() >= size); in allocateStagingBufferSlice() 49 buffer->fOffset = offset + size; in allocateStagingBufferSlice() 50 char* offsetMapPtr = static_cast<char*>(buffer->fMapPtr) + offset; in allocateStagingBufferSlice() 51 return {buffer->fBuffer.get(), offset, offsetMapPtr}; in allocateStagingBufferSlice()
|
/third_party/skia/third_party/externals/brotli/java/org/brotli/dec/ |
H A D | SetDictionaryTest.java | 44 byte[] buffer = new byte[16]; in testSetDictionary() 49 assertEquals(3, decoder.read(buffer, 0, buffer.length)); in testSetDictionary() 50 assertEquals("aaa", new String(buffer, 0, 3, "US-ASCII")); in testSetDictionary() 57 decoder.read(buffer, 0, buffer.length); in testSetDictionary() 75 assertEquals(4, decoder.read(buffer, 0, buffer.length)); in testSetDictionary() 76 assertEquals("time", new String(buffer, 0, 4, "US-ASCII")); in testSetDictionary()
|
/third_party/skia/third_party/externals/harfbuzz/src/ |
H A D | hb-fallback-shape.cc | 74 hb_buffer_t *buffer, in _hb_fallback_shape() 91 buffer->clear_positions (); in _hb_fallback_shape() 93 hb_direction_t direction = buffer->props.direction; in _hb_fallback_shape() 94 hb_unicode_funcs_t *unicode = buffer->unicode; in _hb_fallback_shape() 95 unsigned int count = buffer->len; in _hb_fallback_shape() 96 hb_glyph_info_t *info = buffer->info; in _hb_fallback_shape() 97 hb_glyph_position_t *pos = buffer->pos; in _hb_fallback_shape() 118 hb_buffer_reverse (buffer); in _hb_fallback_shape() 120 buffer->safe_to_break_all (); in _hb_fallback_shape() 72 _hb_fallback_shape(hb_shape_plan_t *shape_plan HB_UNUSED, hb_font_t *font, hb_buffer_t *buffer, const hb_feature_t *features HB_UNUSED, unsigned int num_features HB_UNUSED) _hb_fallback_shape() argument
|
H A D | hb-kern.hh | 48 hb_buffer_t *buffer, in kern() 52 OT::hb_ot_apply_context_t c (1, font, buffer); in kern() 57 bool horizontal = HB_DIRECTION_IS_HORIZONTAL (buffer->props.direction); in kern() 58 unsigned int count = buffer->len; in kern() 59 hb_glyph_info_t *info = buffer->info; in kern() 60 hb_glyph_position_t *pos = buffer->pos; in kern() 93 buffer->scratch_flags |= HB_BUFFER_SCRATCH_FLAG_HAS_GPOS_ATTACHMENT; in kern() 111 buffer->scratch_flags |= HB_BUFFER_SCRATCH_FLAG_HAS_GPOS_ATTACHMENT; in kern() 123 buffer->unsafe_to_break (i, j + 1); in kern()
|
H A D | test.cc | 62 hb_buffer_t *buffer = hb_buffer_create (); in main() local 64 hb_buffer_add_utf8 (buffer, "\xe0\xa4\x95\xe0\xa5\x8d\xe0\xa4\xb0\xe0\xa5\x8d\xe0\xa4\x95", -1, 0, -1); in main() 65 hb_buffer_guess_segment_properties (buffer); in main() 67 hb_shape (font, buffer, nullptr, 0); in main() 69 unsigned int count = hb_buffer_get_length (buffer); in main() 70 hb_glyph_info_t *infos = hb_buffer_get_glyph_infos (buffer, nullptr); in main() 71 hb_glyph_position_t *positions = hb_buffer_get_glyph_positions (buffer, nullptr); in main() 88 hb_buffer_destroy (buffer); in main()
|
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/ |
H A D | ByteString.java | 100 * System.arraycopy} is nullification of a new buffer before the copy. It has been shown the 376 static ByteString wrap(ByteBuffer buffer) { in wrap() argument 377 if (buffer.hasArray()) { in wrap() 378 final int offset = buffer.arrayOffset(); in wrap() 379 return ByteString.wrap(buffer.array(), offset + buffer.position(), buffer.remaining()); in wrap() 381 return new NioByteString(buffer); in wrap() 406 * @param bytes source buffer 531 * buffer i 999 private byte[] buffer; global() field in ByteString.Output 1057 copyArray(byte[] buffer, int length) copyArray() argument 1174 private final byte[] buffer; global() field in ByteString.CodedBuilder [all...] |
/third_party/protobuf/src/google/protobuf/stubs/ |
H A D | strutil.h | 60 // to identifiers in the protocol buffer language, not to natural-language 302 // a dest buffer. This should be used for non performance critical 458 // All functions take the output buffer as an arg. 460 // which may not be the beginning of the input buffer. 463 // Suggested buffer size for FastToBuffer functions. Also works with 467 PROTOBUF_EXPORT char* FastInt32ToBuffer(int32 i, char* buffer); 468 PROTOBUF_EXPORT char* FastInt64ToBuffer(int64 i, char* buffer); 469 char* FastUInt32ToBuffer(uint32 i, char* buffer); // inline below 470 char* FastUInt64ToBuffer(uint64 i, char* buffer); // inline below 471 PROTOBUF_EXPORT char* FastHexToBuffer(int i, char* buffer); 476 FastIntToBuffer(int i, char* buffer) FastIntToBuffer() argument 480 FastUIntToBuffer(unsigned int i, char* buffer) FastUIntToBuffer() argument 484 FastLongToBuffer(long i, char* buffer) FastLongToBuffer() argument 488 FastULongToBuffer(unsigned long i, char* buffer) FastULongToBuffer() argument 515 FastUInt32ToBuffer(uint32 i, char* buffer) FastUInt32ToBuffer() argument 519 FastUInt64ToBuffer(uint64 i, char* buffer) FastUInt64ToBuffer() argument [all...] |
/third_party/backends/backend/ |
H A D | hp5400_internal.c | 431 char *buffer; in WriteGammaCalibTable() local 435 buffer = malloc (2 * 65536); in WriteGammaCalibTable() 447 buffer[2 * j] = ptr[j]; in WriteGammaCalibTable() 448 buffer[2 * j + 1] = ptr[j] >> 8; in WriteGammaCalibTable() 452 65536, (void *) buffer); in WriteGammaCalibTable() 454 free (buffer); in WriteGammaCalibTable() 464 int *buffer = malloc (sizeof (int) * 65536); in SetDefaultGamma() local 468 buffer[i] = i; in SetDefaultGamma() 470 WriteGammaCalibTable (iHandle, buffer, buffer, buffe in SetDefaultGamma() 775 unsigned short *buffer; DoAverageScan() local 827 void *buffer; DoScan() local 879 char buffer[512]; Calibrate() local [all...] |
/third_party/cups-filters/filter/ |
H A D | pdftops.c | 305 char buffer[8192]; /* Copy buffer */ local 406 while ((bytes = fread(buffer, 1, sizeof(buffer), stdin)) > 0) 407 bytes = write(fd, buffer, bytes); 1165 while ((bytes = cupsFileGetLine(fp, buffer, sizeof(buffer))) > 0 && 1166 strncmp(buffer, "%%BeginProlog", 13)) 1168 if (strncmp(buffer, "%%Title", 7) == 0) 1170 else if (strncmp(buffer, " [all...] |
/third_party/ffmpeg/libavutil/ |
H A D | buffer.c | 48 ref->buffer = buf; in buffer_create() 112 atomic_fetch_add_explicit(&buf->buffer->refcount, 1, memory_order_relaxed); in av_buffer_ref() 121 b = (*dst)->buffer; in buffer_replace() 149 if (buf->buffer->flags & AV_BUFFER_FLAG_READONLY) in av_buffer_is_writable() 152 return atomic_load(&buf->buffer->refcount) == 1; in av_buffer_is_writable() 157 return buf->buffer->opaque; in av_buffer_get_opaque() 162 return atomic_load(&buf->buffer->refcount); in av_buffer_get_ref_count() 190 /* allocate a new buffer with av_realloc(), so it will be reallocatable in av_buffer_realloc() 202 buf->buffer->flags_internal |= BUFFER_FLAG_REALLOCATABLE; in av_buffer_realloc() 209 if (!(buf->buffer in av_buffer_realloc() [all...] |
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
H A D | LocaleIDParser.java | 36 * Temporary buffer for parsed sections of data. 38 private StringBuilder buffer; field in LocaleIDParser 66 buffer = new StringBuilder(id.length + 5); in LocaleIDParser() 72 buffer = new StringBuilder(id.length + 5); in reset() 75 // utilities for working on text in the buffer 78 * Append c to the buffer. 81 buffer.append(c); in append() 89 * Returns the text in the buffer from start to blen as a String. 92 return buffer.substring(start); in getString() 96 * Set the length of the buffer t [all...] |
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/ |
H A D | LocaleIDParser.java | 38 * Temporary buffer for parsed sections of data. 40 private StringBuilder buffer; field in LocaleIDParser 68 buffer = new StringBuilder(id.length + 5); in LocaleIDParser() 74 buffer = new StringBuilder(id.length + 5); in reset() 77 // utilities for working on text in the buffer 80 * Append c to the buffer. 83 buffer.append(c); in append() 91 * Returns the text in the buffer from start to blen as a String. 94 return buffer.substring(start); in getString() 98 * Set the length of the buffer t [all...] |
/third_party/mesa3d/src/gallium/auxiliary/vl/ |
H A D | vl_video_buffer.c | 199 vl_video_buffer_destroy(struct pipe_video_buffer *buffer) in vl_video_buffer_destroy() argument 201 struct vl_video_buffer *buf = (struct vl_video_buffer *)buffer; in vl_video_buffer_destroy() 215 vl_video_buffer_set_associated_data(buffer, NULL, NULL, NULL); in vl_video_buffer_destroy() 217 FREE(buffer); in vl_video_buffer_destroy() 221 vl_video_buffer_sampler_view_planes(struct pipe_video_buffer *buffer) in vl_video_buffer_sampler_view_planes() argument 223 struct vl_video_buffer *buf = (struct vl_video_buffer *)buffer; in vl_video_buffer_sampler_view_planes() 224 unsigned num_planes = util_format_get_num_planes(buffer->buffer_format); in vl_video_buffer_sampler_view_planes() 257 vl_video_buffer_sampler_view_components(struct pipe_video_buffer *buffer) in vl_video_buffer_sampler_view_components() argument 259 struct vl_video_buffer *buf = (struct vl_video_buffer *)buffer; in vl_video_buffer_sampler_view_components() 305 vl_video_buffer_surfaces(struct pipe_video_buffer *buffer) in vl_video_buffer_surfaces() argument 445 struct vl_video_buffer *buffer; vl_video_buffer_create_ex2() local [all...] |
/third_party/jerryscript/tests/jerry/es2015/ |
H A D | regression-test-issue-3836.js | 23 v1.buffer.constructor = Uint8Array; 26 assert(v2.buffer.constructor === Uint8Array); 30 v3.buffer.constructor = Float64Array; 33 assert(v4.buffer.constructor === Float64Array); 37 v5.buffer.constructor = Set; 40 assert(v6.buffer.constructor === Set); 46 var v8 = v7.buffer; 56 assert(Reflect.getPrototypeOf(v9.buffer) === Uint8Array.prototype);
|
/third_party/musl/libc-test/src/functionalext/supplement/stdio/ |
H A D | vsscanf.c | 39 char buffer[100]; in vsscanf_0100() local 40 int result = get_return_vaule("value 123 info", "%s %d", &buffer, &val); in vsscanf_0100() 44 if (strcmp(buffer, "value") != 0) { in vsscanf_0100() 45 t_error("%s vsscanf get is '%s' are not 'value'\n", __func__, buffer); in vsscanf_0100() 59 char buffer[100]; in vsscanf_0200() local 61 int result = get_return_vaule("value 123 info", "%s %s", &buffer, &get_val); in vsscanf_0200() 65 if (strcmp(buffer, "value") != 0) { in vsscanf_0200() 66 t_error("%s vsscanf get is '%s' are not 'value'\n", __func__, buffer); in vsscanf_0200()
|
/third_party/musl/libc-test/src/functionalext/supplement/unistd/ |
H A D | symlinkat.c | 30 char buffer[BUFSIZ]; in symlinkat_0100() local 60 memset(buffer, 0, sizeof(buffer)); in symlinkat_0100() 61 sz = readlinkat(fdd, symlink_name, buffer, sizeof(buffer)); in symlinkat_0100() 67 if (strcmp(buffer, file_name)) { in symlinkat_0100() 68 t_error("%s buffer is %s, not %s", __func__, buffer, file_name); in symlinkat_0100() 82 char buffer[BUFSIZ]; in symlinkat_0200() local
|
/third_party/vk-gl-cts/external/amber/src/src/vulkan/ |
H A D | index_buffer.cc | 30 Result IndexBuffer::SendIndexData(CommandBuffer* command, Buffer* buffer) { in SendIndexData() argument 36 if (buffer->ElementCount() == 0) in SendIndexData() 37 return Result("IndexBuffer::SendIndexData |buffer| is empty"); in SendIndexData() 39 if (buffer->GetFormat()->IsUint32()) in SendIndexData() 41 else if (buffer->GetFormat()->IsUint16()) in SendIndexData() 43 else if (buffer->GetFormat()->IsUint8()) in SendIndexData() 46 return Result("IndexBuffer::SendIndexData unexpected index buffer format"); in SendIndexData() 49 MakeUnique<TransferBuffer>(device_, buffer->GetSizeInBytes(), nullptr); in SendIndexData() 60 buffer->ValuePtr()->data(), buffer in SendIndexData() [all...] |
/third_party/skia/third_party/externals/oboe/src/common/ |
H A D | FixedBlockWriter.cpp | 27 int32_t FixedBlockWriter::writeToStorage(uint8_t *buffer, int32_t numBytes) { in writeToStorage() argument 33 memcpy(mStorage.get() + mPosition, buffer, bytesToStore); in writeToStorage() 38 int32_t FixedBlockWriter::write(uint8_t *buffer, int32_t numBytes) { in write() argument 43 int32_t bytesWritten = writeToStorage(buffer, bytesLeft); in write() 44 buffer += bytesWritten; in write() 60 int32_t bytesWritten = mFixedBlockProcessor.onProcessFixedBlock(buffer, mSize); in write() 62 buffer += bytesWritten; in write() 68 int32_t bytesWritten = writeToStorage(buffer, bytesLeft); in write()
|
/third_party/protobuf/js/experimental/runtime/kernel/ |
H A D | typed_arrays.js | 48 * @param {!ArrayBuffer} buffer 51 * @return {!ArrayBuffer} New array buffer with given the contents of `buffer`. 53 function arrayBufferSlice(buffer, start, end = undefined) { 59 assert(end === undefined || (end >= 0 && end <= buffer.byteLength)); 60 assert((end === undefined ? buffer.byteLength : end) >= start); 61 if (buffer.slice) { 62 const slicedBuffer = buffer.slice(start, end); 72 const realEnd = end == null ? buffer.byteLength : end; 75 const view = new Uint8Array(buffer, star [all...] |