Home
last modified time | relevance | path

Searched refs:buffer_index (Results 1 – 25 of 34) sorted by relevance

12

/third_party/ffmpeg/libavcodec/
Dlibmp3lame.c48 int buffer_index; member
62 if (!s->buffer || s->buffer_size - s->buffer_index < BUFFER_SIZE) { in realloc_buffer()
63 int new_size = s->buffer_index + 2 * BUFFER_SIZE, err; in realloc_buffer()
68 s->buffer_size = s->buffer_index = 0; in realloc_buffer()
184 s->buffer + s->buffer_index, \
185 s->buffer_size - s->buffer_index); \
224 lame_result = lame_encode_flush(s->gfp, s->buffer + s->buffer_index, in mp3lame_encode_frame()
225 s->buffer_size - s->buffer_index); in mp3lame_encode_frame()
231 s->buffer_index, s->buffer_size - s->buffer_index); in mp3lame_encode_frame()
235 s->buffer_index += lame_result; in mp3lame_encode_frame()
[all …]
Dlibshine.c37 int buffer_index; member
84 if (s->buffer_index + written > BUFFER_SIZE) { in libshine_encode_frame()
88 memcpy(s->buffer + s->buffer_index, data, written); in libshine_encode_frame()
89 s->buffer_index += written; in libshine_encode_frame()
96 if (s->buffer_index < 4 || !s->afq.frame_count) in libshine_encode_frame()
104 if (len <= s->buffer_index) { in libshine_encode_frame()
108 s->buffer_index -= len; in libshine_encode_frame()
109 memmove(s->buffer, s->buffer + len, s->buffer_index); in libshine_encode_frame()
Dratecontrol.c168 double expected_size = rcc->buffer_index; in modify_qscale()
180 FFMAX((min_rate - buffer_size + rcc->buffer_index) * in modify_qscale()
200 FFMAX(rcc->buffer_index * in modify_qscale()
212 q, max_rate, min_rate, buffer_size, rcc->buffer_index, in modify_qscale()
365 rcc->buffer_index = s->avctx->rc_buffer_size / 2; in init_pass2()
540 rcc->buffer_index = s->avctx->rc_initial_buffer_occupancy; in ff_rate_control_init()
541 if (!rcc->buffer_index) in ff_rate_control_init()
542 rcc->buffer_index = s->avctx->rc_buffer_size * 3 / 4; in ff_rate_control_init()
690 buffer_size, rcc->buffer_index, frame_size, min_rate, max_rate); in ff_vbv_update()
695 rcc->buffer_index -= frame_size; in ff_vbv_update()
[all …]
Dccaption_dec.c250 int buffer_index; member
453 const int bidx = ctx->buffer_index; in capture_screen()
846 int bidx = ctx->buffer_index; in decode()
873 ctx->buffer_index = bidx = !ctx->buffer_index; in decode()
895 if (!bptr && !ctx->real_time && ctx->buffer[!ctx->buffer_index].str[0]) { in decode()
896 bidx = !ctx->buffer_index; in decode()
Dratecontrol.h66 double buffer_index; ///< amount of bits in the video/audio buffer member
/third_party/mesa3d/src/compiler/glsl/
Dgl_nir_link_xfb.c111 int buffer_index = 0; /* Corresponds to GL_TRANSFORM_FEEDBACK_BUFFER_INDEX */ in gl_nir_link_assign_xfb_resources() local
146 buffer_index++; in gl_nir_link_assign_xfb_resources()
156 varying->BufferIndex = buffer_index; in gl_nir_link_assign_xfb_resources()
Dlink_varyings.h107 unsigned buffer_index, const unsigned max_outputs,
Dlink_varyings.cpp1230 unsigned buffer, unsigned buffer_index, in store() argument
1431 info->Varyings[info->NumVarying].BufferIndex = buffer_index; in store()
/third_party/jerryscript/jerry-core/ecma/builtin-objects/typedarray/
Decma-builtin-typedarray-prototype.c1518 uint32_t byte_index = 0, buffer_index = 0; in ecma_builtin_typedarray_prototype_sort() local
1525 JERRY_ASSERT (buffer_index < info.length); in ecma_builtin_typedarray_prototype_sort()
1528 values_buffer[buffer_index++] = element_value; in ecma_builtin_typedarray_prototype_sort()
1532 JERRY_ASSERT (buffer_index == info.length); in ecma_builtin_typedarray_prototype_sort()
1548 buffer_index = 0; in ecma_builtin_typedarray_prototype_sort()
1553 JERRY_ASSERT (buffer_index < info.length); in ecma_builtin_typedarray_prototype_sort()
1554 ecma_value_t element_value = values_buffer[buffer_index++]; in ecma_builtin_typedarray_prototype_sort()
1560 JERRY_ASSERT (buffer_index == info.length); in ecma_builtin_typedarray_prototype_sort()
1614 uint32_t buffer_index = 0; in ecma_builtin_typedarray_prototype_find_helper() local
1621 JERRY_ASSERT (buffer_index < info.length); in ecma_builtin_typedarray_prototype_find_helper()
[all …]
/third_party/pulseaudio/src/utils/
Dpacat.c77 static size_t buffer_length = 0, buffer_index = 0; variable
254 buffer = pa_xrealloc(buffer, buffer_index + buffer_length + length); in stream_read_callback()
256 memcpy((uint8_t *) buffer + buffer_index + buffer_length, data, length); in stream_read_callback()
258 … pa_silence_memory((uint8_t *) buffer + buffer_index + buffer_length, length, &sample_spec); in stream_read_callback()
604 if ((r = pa_write(fd, (uint8_t*) buffer+buffer_index, buffer_length, userdata)) <= 0) { in stdout_callback()
614 buffer_index += (uint32_t) r; in stdout_callback()
619 buffer_length = buffer_index = 0; in stdout_callback()
/third_party/jerryscript/jerry-core/ecma/operations/
Decma-dataview-object.c296 uint32_t buffer_index = (uint32_t) get_index + view_offset; in ecma_op_dataview_get_set_view_value() local
297 lit_utf8_byte_t *block_p = ecma_arraybuffer_get_buffer (buffer_p) + buffer_index; in ecma_op_dataview_get_set_view_value()
/third_party/mesa3d/src/gallium/auxiliary/translate/
Dtranslate_sse.c59 unsigned buffer_index; member
1083 struct translate_buffer *buffer = &p->buffer[variant->buffer_index]; in init_inputs()
1190 get_offset(p, &p->buffer[variant->buffer_index].stride)); in get_buffer_ptr()
1193 get_offset(p, &p->buffer[variant->buffer_index].base_ptr)); in get_buffer_ptr()
1196 get_offset(p, &p->buffer[variant->buffer_index].max_index)); in get_buffer_ptr()
1231 const unsigned buffer_index = p->buffer_variant[0].buffer_index; in incr_inputs() local
1234 get_offset(p, &p->buffer[buffer_index].stride)); in incr_inputs()
1253 get_offset(p, &p->buffer[variant->buffer_index].stride)); in incr_inputs()
1516 if (p->buffer_variant[j].buffer_index == in translate_sse2_create()
1524 p->buffer_variant[j].buffer_index = key->element[i].input_buffer; in translate_sse2_create()
/third_party/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_image.h59 int buffer_index; member
Dbrw_screen.c1088 index = f->planes[i].buffer_index; in brw_create_image_from_names()
1175 index = f->planes[i].buffer_index; in brw_create_image_from_fds_common()
1480 int index = f->planes[plane].buffer_index; in brw_from_planar()
/third_party/mesa3d/src/gallium/frontends/dri/
Ddri_helpers.h37 int buffer_index; member
/third_party/ffmpeg/libavformat/
Dmpegenc.c50 int buffer_index; member
980 if (stream->buffer_index < pkt_desc->size || in remove_decoded_packets()
984 i, stream->buffer_index, pkt_desc->size); in remove_decoded_packets()
987 stream->buffer_index -= pkt_desc->size; in remove_decoded_packets()
1017 const int space = stream->max_buffer_size - stream->buffer_index; in output_packet()
1036 && stream->predecode_packet->size > stream->buffer_index) in output_packet()
1124 stream->buffer_index += es_size; in output_packet()
/third_party/mesa3d/src/mesa/drivers/dri/i915/
Dintel_regions.h119 int buffer_index; member
Dintel_screen.c597 index = f->planes[i].buffer_index; in intel_create_image_from_names()
644 index = f->planes[i].buffer_index; in intel_create_image_from_fds()
672 index = f->planes[plane].buffer_index; in intel_from_planar()
/third_party/mesa3d/src/panfrost/vulkan/
Dpanvk_vX_cs.c149 cfg.buffer_index = varyings->varying[loc].buf; in panvk_emit_varying()
152 cfg.buffer_index = in panvk_emit_varying()
317 cfg.buffer_index = attribs->attrib[idx].buf; in panvk_emit_attrib()
319 (bufs[cfg.buffer_index].address & 63); in panvk_emit_attrib()
/third_party/mesa3d/src/amd/vulkan/
Dradv_nir_to_llvm.c685 LLVMValueRef buffer_index; in load_vs_input() local
700 buffer_index = ctx->abi.instance_id; in load_vs_input()
703 buffer_index = LLVMBuildUDiv(ctx->ac.builder, buffer_index, in load_vs_input()
707 buffer_index = ctx->ac.i32_0; in load_vs_input()
710 buffer_index = LLVMBuildAdd( in load_vs_input()
711 ctx->ac.builder, ac_get_arg(&ctx->ac, ctx->args->ac.start_instance), buffer_index, ""); in load_vs_input()
713 buffer_index = LLVMBuildAdd(ctx->ac.builder, ctx->abi.vertex_id, in load_vs_input()
751 LLVMValueRef chan_index = buffer_index; in load_vs_input()
757 chan_index = LLVMBuildAdd(ctx->ac.builder, buffer_index, buffer_offset, ""); in load_vs_input()
773 buffer_index = LLVMBuildAdd(ctx->ac.builder, buffer_index, buffer_offset, ""); in load_vs_input()
[all …]
/third_party/vk-gl-cts/external/openglcts/modules/common/
DglcRobustBufferAccessBehaviorTests.cpp1163 for (GLuint buffer_index = 0; buffer_index < invalid_buffers_count; ++buffer_index) in iterate() local
1166 invalid_elements_set[buffer_index][item_index] = in iterate()
1167 invalid_elements[item_index] + invalid_elements_offsets[buffer_index]; in iterate()
1170 for (GLuint buffer_index = 0; buffer_index < invalid_buffers_count; ++buffer_index) in iterate() local
1173 …ffer.InitData(GL_ELEMENT_ARRAY_BUFFER, GL_DYNAMIC_DRAW, sizeof(invalid_elements_set[buffer_index]), in iterate()
1174 invalid_elements_set[buffer_index]); in iterate()
/third_party/mesa3d/src/gallium/drivers/r600/
Dr600_state.c1675 unsigned buffer_index = u_bit_scan(&dirty_mask); in r600_emit_vertex_buffers() local
1677 vb = &rctx->vertex_buffer_state.vb[buffer_index]; in r600_emit_vertex_buffers()
1685 radeon_emit(cs, (R600_FETCH_CONSTANTS_OFFSET_FS + buffer_index) * 7); in r600_emit_vertex_buffers()
1715 unsigned buffer_index = ffs(dirty_mask) - 1; in r600_emit_constant_buffers() local
1716 unsigned gs_ring_buffer = (buffer_index == R600_GS_RING_CONST_BUFFER); in r600_emit_constant_buffers()
1717 cb = &state->cb[buffer_index]; in r600_emit_constant_buffers()
1724 assert(buffer_index < R600_MAX_HW_CONST_BUFFERS); in r600_emit_constant_buffers()
1725 radeon_set_context_reg(cs, reg_alu_constbuf_size + buffer_index * 4, in r600_emit_constant_buffers()
1727 radeon_set_context_reg(cs, reg_alu_const_cache + buffer_index * 4, offset >> 8); in r600_emit_constant_buffers()
1734 radeon_emit(cs, (buffer_id_base + buffer_index) * 7); in r600_emit_constant_buffers()
[all …]
Devergreen_state.c2139 unsigned buffer_index = u_bit_scan(&dirty_mask); in evergreen_emit_vertex_buffers() local
2141 vb = &state->vb[buffer_index]; in evergreen_emit_vertex_buffers()
2149 radeon_emit(cs, (resource_offset + buffer_index) * 8); in evergreen_emit_vertex_buffers()
2198 unsigned buffer_index = ffs(dirty_mask) - 1; in evergreen_emit_constant_buffers() local
2199 unsigned gs_ring_buffer = (buffer_index == R600_GS_RING_CONST_BUFFER); in evergreen_emit_constant_buffers()
2201 cb = &state->cb[buffer_index]; in evergreen_emit_constant_buffers()
2207 if (buffer_index < R600_MAX_HW_CONST_BUFFERS) { in evergreen_emit_constant_buffers()
2208 radeon_set_context_reg_flag(cs, reg_alu_constbuf_size + buffer_index * 4, in evergreen_emit_constant_buffers()
2210 radeon_set_context_reg_flag(cs, reg_alu_const_cache + buffer_index * 4, va >> 8, in evergreen_emit_constant_buffers()
2218 radeon_emit(cs, (buffer_id_base + buffer_index) * 8); in evergreen_emit_constant_buffers()
[all …]
/third_party/gstreamer/gstplugins_bad/ext/ttml/
Dttmlparse.c1541 guint buffer_index; in ttml_add_element() local
1544 buffer_index = ttml_add_text_to_buffer (buf, element->text); in ttml_add_element()
1545 if (buffer_index == -1) { in ttml_add_element()
1552 buffer_index); in ttml_add_element()
1557 sub_element = gst_subtitle_element_new (element_style, buffer_index, in ttml_add_element()
/third_party/mesa3d/src/gallium/drivers/panfrost/
Dpan_cmdstream.c1435 cfg.buffer_index = first_buf + (i * 2); in emit_image_attribs()
1747 cfg.buffer_index = k++; in panfrost_emit_vertex_data()
1754 cfg.buffer_index = k++; in panfrost_emit_vertex_data()
1800 cfg.buffer_index = attrib_to_buffer[so->element_buffer[i]]; in panfrost_emit_vertex_data()
1944 unsigned buffer_index, in pan_emit_vary() argument
1948 cfg.buffer_index = buffer_index; in pan_emit_vary()

12