/third_party/ffmpeg/libavfilter/ |
D | af_haas.c | 103 size_t new_buf_size = 1; in config_input() local 105 while (new_buf_size < min_buf_size) in config_input() 106 new_buf_size <<= 1; in config_input() 109 s->buffer = av_calloc(new_buf_size, sizeof(*s->buffer)); in config_input() 113 s->buffer_size = new_buf_size; in config_input()
|
/third_party/ffmpeg/libavresample/ |
D | audio_data.c | 164 int ret, new_buf_size, plane_size, p; in ff_audio_data_realloc() local 174 new_buf_size = av_samples_get_buffer_size(&plane_size, in ff_audio_data_realloc() 177 if (new_buf_size < 0) in ff_audio_data_realloc() 178 return new_buf_size; in ff_audio_data_realloc() 199 a->buffer = av_malloc(new_buf_size); in ff_audio_data_realloc() 208 a->buffer_size = new_buf_size; in ff_audio_data_realloc()
|
/third_party/mesa3d/src/gallium/drivers/svga/ |
D | svga_state_constants.c | 594 unsigned new_buf_size = 0; in emit_constbuf() local 613 new_buf_size = MAX2(buffer_size, extra_buffer_offset) + extra_buffer_size; in emit_constbuf() 618 new_buf_size = align(new_buf_size, 16); in emit_constbuf() 627 alloc_buf_size = align(new_buf_size, CONST0_UPLOAD_ALIGNMENT); in emit_constbuf() 650 assert(extra_buffer_offset + extra_buffer_size <= new_buf_size); in emit_constbuf() 675 new_buf_size = align(buffer_size, 16); in emit_constbuf() 679 assert(new_buf_size % 16 == 0); in emit_constbuf() 687 svga->state.hw_draw.constbufoffsets[shader][slot].size != new_buf_size) { in emit_constbuf() 693 new_buf_size); in emit_constbuf() 721 svga->state.hw_draw.constbufoffsets[shader][slot].size = new_buf_size; in emit_constbuf()
|
/third_party/flatbuffers/java/com/google/flatbuffers/ |
D | FlatBufferBuilder.java | 264 int new_buf_size; in growByteBuffer() local 267 new_buf_size = DEFAULT_BUFFER_SIZE; in growByteBuffer() 273 new_buf_size = (old_buf_size & 0xC0000000) != 0 ? MAX_BUFFER_SIZE : old_buf_size << 1; in growByteBuffer() 277 ByteBuffer nbb = bb_factory.newByteBuffer(new_buf_size); in growByteBuffer() 278 new_buf_size = nbb.clear().capacity(); // Ensure the returned buffer is treated as empty in growByteBuffer() 279 nbb.position(new_buf_size - old_buf_size); in growByteBuffer()
|
/third_party/flatbuffers/ts/ |
D | builder.ts | 320 const new_buf_size = old_buf_size << 1; constant 321 const nbb = ByteBuffer.allocate(new_buf_size); 322 nbb.setPosition(new_buf_size - old_buf_size); 323 nbb.bytes().set(bb.bytes(), new_buf_size - old_buf_size);
|
/third_party/flatbuffers/php/ |
D | FlatbufferBuilder.php | 166 $new_buf_size = $old_buf_size << 1; 169 $nbb = new ByteBuffer($new_buf_size); 171 $nbb->setPosition($new_buf_size - $old_buf_size); 175 for ($i = $new_buf_size - $old_buf_size, $j = 0; $j < strlen($bb->_buffer); $i++, $j++) {
|
/third_party/gstreamer/gstplugins_bad/sys/winscreencap/ |
D | gstgdiscreencapsrc.c | 411 gint new_buf_size; in gst_gdiscreencapsrc_create() local 423 new_buf_size = GST_ROUND_UP_4 (src->info.bmiHeader.biWidth * 3) * in gst_gdiscreencapsrc_create() 428 new_buf_size, (gint) src->info.bmiHeader.biWidth, in gst_gdiscreencapsrc_create() 431 new_buf = gst_buffer_new_and_alloc (new_buf_size); in gst_gdiscreencapsrc_create()
|
D | gstdx9screencapsrc.c | 455 gint new_buf_size, i; in gst_dx9screencapsrc_create() local 545 new_buf_size = width * 4 * height; in gst_dx9screencapsrc_create() 549 new_buf_size, width, height); in gst_dx9screencapsrc_create() 602 new_buf = gst_buffer_new_and_alloc (new_buf_size); in gst_dx9screencapsrc_create()
|
/third_party/flutter/skia/third_party/externals/imgui/ |
D | imgui_widgets.cpp | 3046 int new_buf_size = BufTextLen + ImClamp(new_text_len * 4, 32, ImMax(256, new_text_len)) + 1; in InsertChars() local 3047 edit_state->TempBuffer.reserve(new_buf_size + 1); in InsertChars() 3049 BufSize = edit_state->BufCapacityA = new_buf_size; in InsertChars()
|
/third_party/mesa3d/src/imgui/ |
D | imgui_widgets.cpp | 3046 int new_buf_size = BufTextLen + ImClamp(new_text_len * 4, 32, ImMax(256, new_text_len)) + 1; in InsertChars() local 3047 edit_state->TempBuffer.reserve(new_buf_size + 1); in InsertChars() 3049 BufSize = edit_state->BufCapacityA = new_buf_size; in InsertChars()
|
/third_party/skia/third_party/externals/imgui/ |
D | imgui_widgets.cpp | 3830 int new_buf_size = BufTextLen + ImClamp(new_text_len * 4, 32, ImMax(256, new_text_len)) + 1; in InsertChars() local 3831 edit_state->TextA.reserve(new_buf_size + 1); in InsertChars() 3833 BufSize = edit_state->BufCapacityA = new_buf_size; in InsertChars()
|