Home
last modified time | relevance | path

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

12

/third_party/ffmpeg/libavcodec/
Dlibmp3lame.c49 int buffer_index; member
63 if (!s->buffer || s->buffer_size - s->buffer_index < BUFFER_SIZE) { in realloc_buffer()
64 int new_size = s->buffer_index + 2 * BUFFER_SIZE, err; in realloc_buffer()
69 s->buffer_size = s->buffer_index = 0; in realloc_buffer()
186 s->buffer + s->buffer_index, \
187 s->buffer_size - s->buffer_index); \
226 lame_result = lame_encode_flush(s->gfp, s->buffer + s->buffer_index, in mp3lame_encode_frame()
227 s->buffer_size - s->buffer_index); in mp3lame_encode_frame()
233 s->buffer_index, s->buffer_size - s->buffer_index); in mp3lame_encode_frame()
237 s->buffer_index += lame_result; in mp3lame_encode_frame()
[all …]
Dlibshine.c39 int buffer_index; member
86 if (s->buffer_index + written > BUFFER_SIZE) { in libshine_encode_frame()
90 memcpy(s->buffer + s->buffer_index, data, written); in libshine_encode_frame()
91 s->buffer_index += written; in libshine_encode_frame()
98 if (s->buffer_index < 4 || !s->afq.frame_count) in libshine_encode_frame()
106 if (len <= s->buffer_index) { in libshine_encode_frame()
110 s->buffer_index -= len; in libshine_encode_frame()
111 memmove(s->buffer, s->buffer + len, s->buffer_index); in libshine_encode_frame()
Dratecontrol.c167 double expected_size = rcc->buffer_index; in modify_qscale()
179 FFMAX((min_rate - buffer_size + rcc->buffer_index) * in modify_qscale()
199 FFMAX(rcc->buffer_index * in modify_qscale()
211 q, max_rate, min_rate, buffer_size, rcc->buffer_index, in modify_qscale()
364 rcc->buffer_index = s->avctx->rc_buffer_size / 2; in init_pass2()
539 rcc->buffer_index = s->avctx->rc_initial_buffer_occupancy; in ff_rate_control_init()
540 if (!rcc->buffer_index) in ff_rate_control_init()
541 rcc->buffer_index = s->avctx->rc_buffer_size * 3 / 4; in ff_rate_control_init()
689 buffer_size, rcc->buffer_index, frame_size, min_rate, max_rate); in ff_vbv_update()
694 rcc->buffer_index -= frame_size; in ff_vbv_update()
[all …]
Dccaption_dec.c252 int buffer_index; member
455 const int bidx = ctx->buffer_index; in capture_screen()
848 int bidx = ctx->buffer_index; in decode()
876 ctx->buffer_index = bidx = !ctx->buffer_index; in decode()
898 if (!bptr && !ctx->real_time && ctx->buffer[!ctx->buffer_index].str[0]) { in decode()
899 bidx = !ctx->buffer_index; in decode()
Dratecontrol.h66 double buffer_index; ///< amount of bits in the video/audio buffer member
/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/mesa3d/src/compiler/glsl/
Dgl_nir_link_xfb.c114 int buffer_index = 0; /* Corresponds to GL_TRANSFORM_FEEDBACK_BUFFER_INDEX */ in gl_nir_link_assign_xfb_resources() local
149 buffer_index++; in gl_nir_link_assign_xfb_resources()
160 varying->BufferIndex = buffer_index; in gl_nir_link_assign_xfb_resources()
Dgl_nir_link_varyings.c456 unsigned buffer, unsigned buffer_index, in xfb_decl_store() argument
660 info->Varyings[info->NumVarying].BufferIndex = buffer_index; in xfb_decl_store()
/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/mesa3d/src/gallium/auxiliary/translate/
Dtranslate_sse.c59 unsigned buffer_index; member
1111 struct translate_buffer *buffer = &p->buffer[variant->buffer_index]; in init_inputs()
1218 get_offset(p, &p->buffer[variant->buffer_index].stride)); in get_buffer_ptr()
1221 get_offset(p, &p->buffer[variant->buffer_index].base_ptr)); in get_buffer_ptr()
1224 get_offset(p, &p->buffer[variant->buffer_index].max_index)); in get_buffer_ptr()
1259 const unsigned buffer_index = p->buffer_variant[0].buffer_index; in incr_inputs() local
1262 get_offset(p, &p->buffer[buffer_index].stride)); in incr_inputs()
1281 get_offset(p, &p->buffer[variant->buffer_index].stride)); in incr_inputs()
1545 if (p->buffer_variant[j].buffer_index == in translate_sse2_create()
1553 p->buffer_variant[j].buffer_index = key->element[i].input_buffer; in translate_sse2_create()
/third_party/mesa3d/src/amd/vulkan/
Dradv_nir_to_llvm.c395 LLVMValueRef buffer_index; in load_vs_input() local
410 buffer_index = ctx->abi.instance_id; in load_vs_input()
413 buffer_index = LLVMBuildUDiv(ctx->ac.builder, buffer_index, in load_vs_input()
417 buffer_index = ctx->ac.i32_0; in load_vs_input()
420 buffer_index = LLVMBuildAdd( in load_vs_input()
421 ctx->ac.builder, ac_get_arg(&ctx->ac, ctx->args->ac.start_instance), buffer_index, ""); in load_vs_input()
423 buffer_index = LLVMBuildAdd(ctx->ac.builder, ctx->abi.vertex_id, in load_vs_input()
455 LLVMValueRef chan_index = buffer_index; in load_vs_input()
461 chan_index = LLVMBuildAdd(ctx->ac.builder, buffer_index, buffer_offset, ""); in load_vs_input()
477 buffer_index = LLVMBuildAdd(ctx->ac.builder, buffer_index, buffer_offset, ""); in load_vs_input()
[all …]
/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/ffmpeg/libavformat/
Dmpegenc.c53 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/gallium/frontends/dri/
Ddri_helpers.h37 int buffer_index; member
/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/imagination/vulkan/pds/
Dpvr_xgl_pds.c1596 special_buffer_entry->buffer_index = buffer->source_offset; in pvr_pds_generate_descriptor_upload_program()
1608 special_buffer_entry->buffer_index = buffer->source_offset; in pvr_pds_generate_descriptor_upload_program()
1620 special_buffer_entry->buffer_index = compile_time_buffer_index++; in pvr_pds_generate_descriptor_upload_program()
1643 special_buffer_entry->buffer_index = in pvr_pds_generate_descriptor_upload_program()
Dpvr_pds.h1052 uint32_t buffer_index; member
/third_party/mesa3d/src/gallium/drivers/r600/
Dr600_state.c1673 unsigned buffer_index = u_bit_scan(&dirty_mask); in r600_emit_vertex_buffers() local
1675 vb = &rctx->vertex_buffer_state.vb[buffer_index]; in r600_emit_vertex_buffers()
1683 radeon_emit(cs, (R600_FETCH_CONSTANTS_OFFSET_FS + buffer_index) * 7); in r600_emit_vertex_buffers()
1713 unsigned buffer_index = ffs(dirty_mask) - 1; in r600_emit_constant_buffers() local
1714 unsigned gs_ring_buffer = (buffer_index == R600_GS_RING_CONST_BUFFER); in r600_emit_constant_buffers()
1715 cb = &state->cb[buffer_index]; in r600_emit_constant_buffers()
1722 assert(buffer_index < R600_MAX_HW_CONST_BUFFERS); in r600_emit_constant_buffers()
1723 radeon_set_context_reg(cs, reg_alu_constbuf_size + buffer_index * 4, in r600_emit_constant_buffers()
1725 radeon_set_context_reg(cs, reg_alu_const_cache + buffer_index * 4, offset >> 8); in r600_emit_constant_buffers()
1732 radeon_emit(cs, (buffer_id_base + buffer_index) * 7); in r600_emit_constant_buffers()
[all …]
Devergreen_state.c2132 unsigned buffer_index = u_bit_scan(&dirty_mask); in evergreen_emit_vertex_buffers() local
2134 vb = &state->vb[buffer_index]; in evergreen_emit_vertex_buffers()
2142 radeon_emit(cs, (resource_offset + buffer_index) * 8); in evergreen_emit_vertex_buffers()
2191 unsigned buffer_index = ffs(dirty_mask) - 1; in evergreen_emit_constant_buffers() local
2192 unsigned gs_ring_buffer = (buffer_index == R600_GS_RING_CONST_BUFFER); in evergreen_emit_constant_buffers()
2194 cb = &state->cb[buffer_index]; in evergreen_emit_constant_buffers()
2200 if (buffer_index < R600_MAX_HW_CONST_BUFFERS) { in evergreen_emit_constant_buffers()
2201 radeon_set_context_reg_flag(cs, reg_alu_constbuf_size + buffer_index * 4, in evergreen_emit_constant_buffers()
2203 radeon_set_context_reg_flag(cs, reg_alu_const_cache + buffer_index * 4, va >> 8, in evergreen_emit_constant_buffers()
2211 radeon_emit(cs, (buffer_id_base + buffer_index) * 8); in evergreen_emit_constant_buffers()
[all …]
/third_party/mesa3d/src/gallium/drivers/panfrost/
Dpan_cmdstream.c1856 cfg.buffer_index = first_buf + (i * 2); in emit_image_attribs()
2160 cfg.buffer_index = k++; in panfrost_emit_vertex_data()
2167 cfg.buffer_index = k++; in panfrost_emit_vertex_data()
2220 cfg.buffer_index = attrib_to_buffer[so->element_buffer[i]]; in panfrost_emit_vertex_data()
2306 unsigned buffer_index, in pan_emit_vary() argument
2310 cfg.buffer_index = buffer_index; in pan_emit_vary()
4216 cfg.buffer_index = el.vertex_buffer_index; in panfrost_pack_attribute()
/third_party/mesa3d/src/panfrost/vulkan/
Dpanvk_vX_cs.c108 cfg.buffer_index = varyings->varying[loc].buf; in panvk_emit_varying()
279 cfg.buffer_index = buf_idx * 2; in panvk_emit_attrib()
/third_party/vk-gl-cts/external/openglcts/modules/gl/
Dgl4cShaderAtomicCountersTests.cpp545 GLint uniform_size, GLint uniform_offset, GLint uniform_array_stride, GLuint buffer_index) in CheckUniform() argument
674 if (param != static_cast<GLint>(buffer_index)) in CheckUniform()
678 << " should be " << buffer_index << tcu::TestLog::EndMessage; in CheckUniform()
/third_party/mesa3d/src/panfrost/lib/genxml/
Ddecode.c449 max = MAX2(max, a.buffer_index); in pandecode_attribute_meta()
/third_party/mesa3d/src/gallium/drivers/vc4/
Dvc4_program.c118 ASSERTED int buffer_index = nir_src_as_uint(intr->src[0]); in vc4_ubo_load() local
119 assert(buffer_index == 1); in vc4_ubo_load()
/third_party/skia/third_party/externals/spirv-cross/
Dspirv_glsl.cpp1852 uint32_t buffer_index = get_member_decoration(type.self, i, DecorationXfbBuffer); in layout_for_variable() local
1853 if (have_xfb_buffer_stride && buffer_index != xfb_buffer) in layout_for_variable()
1856 xfb_buffer = buffer_index; in layout_for_variable()
3048 uint32_t buffer_index = get_decoration(var.self, DecorationXfbBuffer); in emit_declared_builtin_block() local
3050 if (have_xfb_buffer_stride && buffer_index != xfb_buffer) in emit_declared_builtin_block()
3055 xfb_buffer = buffer_index; in emit_declared_builtin_block()
3085 uint32_t buffer_index = m.xfb_buffer; in emit_declared_builtin_block() local
3087 if (have_xfb_buffer_stride && buffer_index != xfb_buffer) in emit_declared_builtin_block()
3092 xfb_buffer = buffer_index; in emit_declared_builtin_block()

12