Home
last modified time | relevance | path

Searched refs:buffer (Results 2126 - 2150 of 6014) sorted by relevance

1...<<81828384858687888990>>...241

/third_party/spirv-tools/source/wasm/
H A Dspirv-tools.cpp30 std::string dis(std::string const& buffer, uint32_t env, uint32_t options) { in dis() argument
35 const uint32_t* ptr = reinterpret_cast<const uint32_t*>(buffer.data()); in dis()
36 spirv.assign(ptr, ptr + buffer.size() / 4); in dis()
/third_party/vulkan-headers/include/vulkan/
H A Dvulkan_android.h80 struct AHardwareBuffer* buffer; member
108 typedef VkResult (VKAPI_PTR *PFN_vkGetAndroidHardwareBufferPropertiesANDROID)(VkDevice device, const struct AHardwareBuffer* buffer, VkAndroidHardwareBufferPropertiesANDROID* pProperties);
114 const struct AHardwareBuffer* buffer,
H A Dvulkan_ohos.h133 struct OH_NativeBuffer* buffer; member
148 typedef VkResult (VKAPI_PTR *PFN_vkGetNativeBufferPropertiesOHOS)(VkDevice device, const struct OH_NativeBuffer* buffer, VkNativeBufferPropertiesOHOS* pProperties);
154 const struct OH_NativeBuffer* buffer,
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/robustness/
H A DvktRobustnessUtil.hpp43 bool isValueWithinBuffer (const void* buffer, vk::VkDeviceSize bufferSize, const void* valuePtr, size_t valueSizeInBytes);
44 bool isValueWithinBufferOrZero (const void* buffer, vk::VkDeviceSize bufferSize, const void* valuePtr, size_t valueSizeInBytes);
46 void populateBufferWithTestValues (void* buffer, vk::VkDeviceSize size, vk::VkFormat format);
/third_party/skia/third_party/externals/angle2/src/libANGLE/
H A DVertexAttribute.cpp86 Buffer *buffer = binding.getBuffer().get(); in updateCachedElementLimit() local
87 if (!buffer) in updateCachedElementLimit()
93 angle::CheckedNumeric<GLint64> bufferSize(buffer->getSize()); in updateCachedElementLimit()
98 // (buffer.size - buffer.offset - attrib.relativeOffset - attrib.size) / binding.stride in updateCachedElementLimit()
H A DImage.cpp161 EGLClientBuffer buffer, in ExternalImageSibling()
163 : mImplementation(factory->createExternalImageSibling(context, target, buffer, attribs)), in ExternalImageSibling()
253 ImageState::ImageState(EGLenum target, ImageSibling *buffer, const AttributeMap &attribs) in ImageState() argument
257 source(buffer), in ImageState()
274 ImageSibling *buffer, in Image()
276 : mState(target, buffer, attribs), in Image()
281 ASSERT(buffer != nullptr); in Image()
158 ExternalImageSibling(rx::EGLImplFactory *factory, const gl::Context *context, EGLenum target, EGLClientBuffer buffer, const AttributeMap &attribs) ExternalImageSibling() argument
271 Image(rx::EGLImplFactory *factory, const gl::Context *context, EGLenum target, ImageSibling *buffer, const AttributeMap &attribs) Image() argument
/third_party/ffmpeg/libavcodec/
H A Ddxva2_mpeg2.c129 const uint8_t *buffer, unsigned size) in fill_slice()
145 init_get_bits(&gb, &buffer[4], 8 * (size - 4)); in fill_slice()
256 av_unused const uint8_t *buffer, in dxva2_mpeg2_start_frame()
278 const uint8_t *buffer, uint32_t size) in dxva2_mpeg2_decode_slice()
291 ctx_pic->bitstream = buffer; in dxva2_mpeg2_decode_slice()
294 position = buffer - ctx_pic->bitstream; in dxva2_mpeg2_decode_slice()
296 buffer, size); in dxva2_mpeg2_decode_slice()
125 fill_slice(AVCodecContext *avctx, const struct MpegEncContext *s, DXVA_SliceInfo *slice, unsigned position, const uint8_t *buffer, unsigned size) fill_slice() argument
255 dxva2_mpeg2_start_frame(AVCodecContext *avctx, av_unused const uint8_t *buffer, av_unused uint32_t size) dxva2_mpeg2_start_frame() argument
277 dxva2_mpeg2_decode_slice(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size) dxva2_mpeg2_decode_slice() argument
/third_party/ffmpeg/libavresample/
H A Daudio_data.c166 /* check if buffer is already large enough */ in ff_audio_data_realloc()
180 /* if there is already data in the buffer and the sample format is planar, in ff_audio_data_realloc()
181 allocate a new buffer and copy the data, otherwise just realloc the in ff_audio_data_realloc()
182 internal buffer and set new data pointers */ in ff_audio_data_realloc()
194 av_freep(&a->buffer); in ff_audio_data_realloc()
196 a->buffer = a->data[0]; in ff_audio_data_realloc()
198 av_freep(&a->buffer); in ff_audio_data_realloc()
199 a->buffer = av_malloc(new_buf_size); in ff_audio_data_realloc()
200 if (!a->buffer) in ff_audio_data_realloc()
202 ret = av_samples_fill_arrays(a->data, &plane_size, a->buffer, in ff_audio_data_realloc()
[all...]
/third_party/ffmpeg/libavfilter/
H A Dvf_unsharp_opencl.c111 cl_mem buffer; in unsharp_opencl_make_filter_params() local
166 buffer = clCreateBuffer(ctx->ocf.hwctx->context, in unsharp_opencl_make_filter_params()
171 CL_FAIL_ON_ERROR(AVERROR(EIO), "Failed to create matrix buffer: " in unsharp_opencl_make_filter_params()
173 ctx->plane[p].matrix = buffer; in unsharp_opencl_make_filter_params()
175 buffer = clCreateBuffer(ctx->ocf.hwctx->context, in unsharp_opencl_make_filter_params()
181 CL_FAIL_ON_ERROR(AVERROR(EIO), "Failed to create x-coef buffer: " in unsharp_opencl_make_filter_params()
183 ctx->plane[p].coef_x = buffer; in unsharp_opencl_make_filter_params()
185 buffer = clCreateBuffer(ctx->ocf.hwctx->context, in unsharp_opencl_make_filter_params()
191 CL_FAIL_ON_ERROR(AVERROR(EIO), "Failed to create y-coef buffer: " in unsharp_opencl_make_filter_params()
193 ctx->plane[p].coef_y = buffer; in unsharp_opencl_make_filter_params()
[all...]
/third_party/alsa-lib/src/rawmidi/
H A Drawmidi_virt.c189 static ssize_t snd_rawmidi_virtual_write(snd_rawmidi_t *rmidi, const void *buffer, size_t size) in snd_rawmidi_virtual_write() argument
210 size1 = snd_midi_event_encode(virt->midi_event, buffer, size, &virt->out_event); in snd_rawmidi_virtual_write()
215 buffer += size1; in snd_rawmidi_virtual_write()
234 static ssize_t snd_rawmidi_virtual_read(snd_rawmidi_t *rmidi, void *buffer, size_t size) in snd_rawmidi_virtual_read() argument
264 memcpy(buffer, virt->in_buf_ptr + virt->in_buf_ofs, size); in snd_rawmidi_virtual_read()
269 memcpy(buffer, virt->in_buf_ptr + virt->in_buf_ofs, size1); in snd_rawmidi_virtual_read()
272 buffer += size1; in snd_rawmidi_virtual_read()
/third_party/curl/lib/
H A Dhsts.c258 char buffer[MAX_HSTS_HOSTLEN + 1]; in Curl_hsts() local
266 memcpy(buffer, hostname, hlen); in Curl_hsts()
270 buffer[hlen] = 0; in Curl_hsts()
271 hostname = buffer; in Curl_hsts()
470 char buffer[MAX_HSTS_HOSTLEN + 1]; in hsts_pull() local
472 e.name = buffer; in hsts_pull()
473 e.namelen = sizeof(buffer)-1; in hsts_pull()
539 free(line); /* free the line buffer */ in hsts_load()
/third_party/icu/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/
H A DIcuTextWriter.java352 StringBuilder buffer = new StringBuilder(); in quoteInside()
355 buffer.append(item, start, matcher.start()); in quoteInside()
357 buffer.append("\\"); in quoteInside()
359 buffer.append('\\'); in quoteInside()
361 buffer.append(matcher.group()); in quoteInside()
364 buffer.append(item.substring(start)); in quoteInside()
365 return buffer.toString(); in quoteInside()
/third_party/icu/icu4c/source/i18n/
H A Dnumber_rounding.cpp33 CharString buffer; in parseIncrementOption() local
34 SKELETON_UCHAR_TO_CHAR(buffer, segment.toTempUnicodeString(), 0, segment.length(), status); in parseIncrementOption()
39 dq.setToDecNumber({buffer.data(), buffer.length()}, localStatus); in parseIncrementOption()
48 for (int32_t i=0; i<buffer.length(); i++) { in parseIncrementOption()
49 if (buffer[i] == '.') { in parseIncrementOption()
50 int32_t newMagnitude = i - buffer.length() + 1; in parseIncrementOption()
/third_party/mesa3d/src/amd/vulkan/
H A Dradv_meta_dcc_retile.c185 struct radv_buffer buffer; in radv_retile_dcc() local
214 radv_buffer_init(&buffer, device, image->bindings[0].bo, image->size, image->bindings[0].offset); in radv_retile_dcc()
221 .buffer = radv_buffer_to_handle(&buffer), in radv_retile_dcc()
229 .buffer = radv_buffer_to_handle(&buffer), in radv_retile_dcc()
280 radv_buffer_finish(&buffer); in radv_retile_dcc()
/third_party/node/deps/icu-small/source/i18n/
H A Dnumber_rounding.cpp33 CharString buffer; in parseIncrementOption() local
34 SKELETON_UCHAR_TO_CHAR(buffer, segment.toTempUnicodeString(), 0, segment.length(), status); in parseIncrementOption()
39 dq.setToDecNumber({buffer.data(), buffer.length()}, localStatus); in parseIncrementOption()
48 for (int32_t i=0; i<buffer.length(); i++) { in parseIncrementOption()
49 if (buffer[i] == '.') { in parseIncrementOption()
50 int32_t newMagnitude = i - buffer.length() + 1; in parseIncrementOption()
/third_party/python/Lib/
H A Dtelnetlib.py284 def write(self, buffer):
291 if IAC in buffer:
292 buffer = buffer.replace(IAC, IAC+IAC)
293 sys.audit("telnetlib.Telnet.write", self, buffer)
294 self.msg("send %r", buffer)
295 self.sock.sendall(buffer)
526 # The buffer size should be fairly small so as to avoid quadratic
/third_party/vk-gl-cts/external/amber/src/src/
H A Dscript_test.cc224 auto buffer = MakeUnique<Buffer>(); in TEST_F() local
225 buffer->SetName("my_buffer"); in TEST_F()
228 Result r = s.AddBuffer(std::move(buffer)); in TEST_F()
245 EXPECT_EQ("duplicate buffer name provided", r.Error()); in TEST_F()
249 auto buffer = MakeUnique<Buffer>(); in TEST_F() local
250 buffer->SetName("my_buffer"); in TEST_F()
252 const auto* ptr = buffer.get(); in TEST_F()
255 Result r = s.AddBuffer(std::move(buffer)); in TEST_F()
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
H A DDXT1CompressedTextureTest.cpp294 GLuint buffer; in TEST_P() local
295 glGenBuffers(1, &buffer); in TEST_P()
296 glBindBuffer(GL_PIXEL_UNPACK_BUFFER, buffer); in TEST_P()
360 GLuint buffer; in TEST_P() local
361 glGenBuffers(1, &buffer); in TEST_P()
362 glBindBuffer(GL_PIXEL_UNPACK_BUFFER, buffer); in TEST_P()
406 glDeleteTextures(1, &buffer); in TEST_P()
H A DIndexBufferOffsetTest.cpp7 // IndexBufferOffsetTest.cpp: Test glDrawElements with an offset and an index buffer
77 void preTestUpdateBuffer(GLuint framebuffer, GLuint texture, GLuint buffer, GLsizei size) in preTestUpdateBuffer() argument
89 glBindBuffer(GL_UNIFORM_BUFFER, buffer); in preTestUpdateBuffer()
91 glBindBufferBase(GL_UNIFORM_BUFFER, 0, buffer); in preTestUpdateBuffer()
234 // Test using an offset for an UInt8 index buffer
241 // Test using an offset for an UInt16 index buffer
248 // Test using an offset for an UInt32 index buffer
258 // Test using an offset for an UInt8 index buffer with small buffer updates
265 // Test using an offset for an UInt16 index buffer wit
404 GLuint buffer[2]; TEST_P() local
[all...]
/third_party/skia/src/codec/
H A DSkBmpCodec.cpp62 bool SkBmpCodec::IsBmp(const void* buffer, size_t bytesRead) { in IsBmp() argument
65 return bytesRead >= sizeof(bmpSig) && !memcmp(buffer, bmpSig, sizeof(bmpSig)); in IsBmp()
339 uint8_t buffer[kBmpMaskBytes]; in ReadHeader() local
340 if (stream->read(buffer, kBmpMaskBytes) != kBmpMaskBytes) { in ReadHeader()
345 inputMasks.red = get_int(buffer, 0); in ReadHeader()
346 inputMasks.green = get_int(buffer, 4); in ReadHeader()
347 inputMasks.blue = get_int(buffer, 8); in ReadHeader()
/third_party/skia/third_party/externals/libpng/contrib/tools/
H A Dgenpng.c4 * Revised by Glenn Randers-Pehrson, 2017, to add buffer-size check.
758 png_uint_16p buffer; in main() local
791 * I don't see where the image gets rejected when the buffer is too in main()
795 fprintf(stderr, "genpng: image buffer would be too big"); in main()
800 /* Create the buffer: */ in main()
801 buffer = malloc(PNG_IMAGE_SIZE(image)); in main()
803 if (buffer != NULL) in main()
814 pixel(buffer + 4*(x + y*image.width), arg_list, nshapes, x, y); in main()
819 buffer, 0/*row_stride*/, NULL/*colormap*/)) in main()
821 free(buffer); in main()
[all...]
/third_party/skia/third_party/externals/angle2/util/posix/
H A Dcrash_handler_posix.cpp199 // Compute |buffer| afterwards since resize() may reallocate.
202 void *buffer = &(*proc_maps)[pos];
204 ssize_t bytes_read = HANDLE_EINTR(read(fd, buffer, kReadSize));
419 AddressBuffer &buffer)
436 size_t bufferSize = buffer.size();
437 buffer.resize(bufferSize + scannedSize + 1, 0);
438 memcpy(&buffer[bufferSize], printBuffer, scannedSize);
439 return &buffer[bufferSize];
/third_party/skia/third_party/externals/freetype/src/sdf/
H A Dftsdfrend.c288 FT_FREE( bitmap->buffer ); in ft_sdf_render()
324 /* allocate new buffer */ in ft_sdf_render()
325 if ( FT_ALLOC_MULT( bitmap->buffer, bitmap->rows, bitmap->pitch ) ) in ft_sdf_render()
372 FT_FREE( bitmap->buffer ); in ft_sdf_render()
518 /* glyph: it might be that the source buffer is already freed. */ in ft_bsdf_render()
551 if ( FT_ALLOC_MULT( target.buffer, target.rows, target.pitch ) ) in ft_bsdf_render()
571 FT_FREE( bitmap->buffer ); in ft_bsdf_render()
580 else if ( target.buffer ) in ft_bsdf_render()
581 FT_FREE( target.buffer ); in ft_bsdf_render()
/third_party/skia/third_party/externals/harfbuzz/src/
H A Dhb-buffer.hh90 /* Information about how the text in the buffer should be treated */
106 bool have_output; /* Whether we have an output buffer going on */
120 /* Text before / after the main buffer contents.
259 * output_info() call if buffer reallocates. */
335 HB_NODISCARD HB_INTERNAL bool move_to (unsigned int i); /* i is output-buffer index. */
464 #define foreach_cluster(buffer, start, end) \
466 _count = buffer->len, \
467 start = 0, end = _count ? _next_cluster (buffer, 0) : 0; \
469 start = end, end = _next_cluster (buffer, start))
472 _next_cluster (hb_buffer_t *buffer, unsigne
[all...]
/third_party/protobuf/src/google/protobuf/io/
H A Dio_win32.cc308 int stat(const char* path, struct _stat* buffer) { in stat() argument
315 return ::_wstat(wpath.c_str(), buffer); in stat()
317 return ::_stat(path, buffer); in stat()
349 int read(int fd, void* buffer, size_t size) { in read() argument
350 return ::_read(fd, buffer, size); in read()
355 int write(int fd, const void* buffer, size_t size) { in write() argument
356 return ::_write(fd, buffer, size); in write()

Completed in 19 milliseconds

1...<<81828384858687888990>>...241