Home
last modified time | relevance | path

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

12

/external/libchrome/base/containers/
Dring_buffer.h43 const size_t buffer_index = BufferIndex(n); in ReadBuffer() local
44 CHECK(IsFilledIndexByBufferIndex(buffer_index)); in ReadBuffer()
45 return buffer_[buffer_index]; in ReadBuffer()
49 const size_t buffer_index = BufferIndex(n); in MutableReadBuffer() local
50 CHECK(IsFilledIndexByBufferIndex(buffer_index)); in MutableReadBuffer()
51 return &buffer_[buffer_index]; in MutableReadBuffer()
121 inline bool IsFilledIndexByBufferIndex(size_t buffer_index) const { in IsFilledIndexByBufferIndex() argument
122 return buffer_index < current_index_; in IsFilledIndexByBufferIndex()
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dbuffer_allocations.cc154 BufferAllocation::Index buffer_index) const { in GetDeviceAddress()
155 CHECK_GE(buffer_index, 0); in GetDeviceAddress()
156 CHECK_LT(buffer_index, buffers_.size()); in GetDeviceAddress()
157 return buffers_[buffer_index]; in GetDeviceAddress()
170 void BufferAllocations::SetBuffer(BufferAllocation::Index buffer_index, in SetBuffer() argument
172 CHECK_GE(buffer_index, 0); in SetBuffer()
173 CHECK_LT(buffer_index, buffers_.size()); in SetBuffer()
174 buffers_[buffer_index] = buffer; in SetBuffer()
Dbuffer_allocations.h72 BufferAllocation::Index buffer_index) const;
95 void SetBuffer(BufferAllocation::Index buffer_index,
/external/autotest/client/site_tests/camera_V4L2/src/
Dmedia_v4l2_device.cc291 uint32_t buffer_index, data_size; in Run() local
293 int32_t r = ReadOneFrame(&buffer_index, &data_size); in Run()
299 ProcessImage(v4l2_buffers_[buffer_index].start); in Run()
300 if (!EnqueueBuffer(buffer_index)) in Run()
331 int32_t V4L2Device::ReadOneFrame(uint32_t* buffer_index, uint32_t* data_size) { in ReadOneFrame() argument
399 if (buffer_index) in ReadOneFrame()
400 *buffer_index = buf.index; in ReadOneFrame()
406 bool V4L2Device::EnqueueBuffer(uint32_t buffer_index) { in EnqueueBuffer() argument
413 buf.index = buffer_index; in EnqueueBuffer()
422 buf.index = buffer_index; in EnqueueBuffer()
[all …]
Dmedia_v4l2_device.h62 virtual int32_t ReadOneFrame(uint32_t* buffer_index, uint32_t* data_size);
63 virtual bool EnqueueBuffer(uint32_t buffer_index);
/external/webrtc/webrtc/modules/audio_coding/codecs/isac/main/source/
Dencode.c217 if (ISACencLB_obj->buffer_index == 0) { in WebRtcIsac_EncodeLb()
230 ISACencLB_obj->data_buffer_float[k + ISACencLB_obj->buffer_index] = in[k]; in WebRtcIsac_EncodeLb()
235 if (ISACencLB_obj->buffer_index + FRAMESAMPLES_10ms != FRAMESAMPLES) { in WebRtcIsac_EncodeLb()
236 ISACencLB_obj->buffer_index += FRAMESAMPLES_10ms; in WebRtcIsac_EncodeLb()
241 ISACencLB_obj->buffer_index = 0; in WebRtcIsac_EncodeLb()
676 memcpy(&ISACencUB_obj->data_buffer_float[ISACencUB_obj->buffer_index], in, in WebRtcIsac_EncodeUb16()
681 if (ISACencUB_obj->buffer_index + FRAMESAMPLES_10ms < FRAMESAMPLES) { in WebRtcIsac_EncodeUb16()
682 ISACencUB_obj->buffer_index += FRAMESAMPLES_10ms; in WebRtcIsac_EncodeUb16()
803 ISACencUB_obj->buffer_index = LB_TOTAL_DELAY_SAMPLES; in WebRtcIsac_EncodeUb16()
870 memcpy(&ISACencUB_obj->data_buffer_float[ISACencUB_obj->buffer_index], in, in WebRtcIsac_EncodeUb12()
[all …]
Disac.c115 (instISAC->instLB.ISACencLB_obj.buffer_index == 0) && in UpdateBottleneck()
156 instISAC->instLB.ISACencLB_obj.buffer_index = 0; in UpdateBottleneck()
196 if ((instISAC->instLB.ISACencLB_obj.buffer_index == in GetSendBandwidthInfo()
366 instLB->ISACencLB_obj.buffer_index = 0; in EncoderInitLb()
397 instUB->ISACencUB_obj.buffer_index = LB_TOTAL_DELAY_SAMPLES; in EncoderInitUb()
399 instUB->ISACencUB_obj.buffer_index = 0; in EncoderInitUb()
1519 instISAC->instUB.ISACencUB_obj.buffer_index = in WebRtcIsac_Control()
1520 instISAC->instLB.ISACencLB_obj.buffer_index; in WebRtcIsac_Control()
1522 instISAC->instUB.ISACencUB_obj.buffer_index = in WebRtcIsac_Control()
1523 LB_TOTAL_DELAY_SAMPLES + instISAC->instLB.ISACencLB_obj.buffer_index; in WebRtcIsac_Control()
Dstructs.h323 int buffer_index; member
366 int buffer_index; member
/external/webrtc/webrtc/modules/audio_coding/codecs/isac/fix/source/
Dencode.c70 if (ISACenc_obj->buffer_index == 0) { in WebRtcIsacfix_EncodeImpl()
82 ISACenc_obj->data_buffer_fix[k + ISACenc_obj->buffer_index] = in[k]; in WebRtcIsacfix_EncodeImpl()
86 if (ISACenc_obj->buffer_index + FRAMESAMPLES_10ms != processed_samples) { in WebRtcIsacfix_EncodeImpl()
87 ISACenc_obj->buffer_index = ISACenc_obj->buffer_index + FRAMESAMPLES_10ms; in WebRtcIsacfix_EncodeImpl()
91 ISACenc_obj->buffer_index = 0; in WebRtcIsacfix_EncodeImpl()
/external/tensorflow/tensorflow/lite/tools/optimize/calibration/
Dcalibrator.cc201 auto buffer_index = tensor->buffer(); in GetLoggableTensorIndices() local
203 (tensor_buffers->Get(buffer_index) == nullptr) || in GetLoggableTensorIndices()
204 (tensor_buffers->Get(buffer_index)->data() == nullptr) || in GetLoggableTensorIndices()
205 (tensor_buffers->Get(buffer_index)->data()->size() == 0); in GetLoggableTensorIndices()
/external/webrtc/webrtc/modules/audio_processing/
Decho_control_mobile_impl.cc150 size_t buffer_index = 0; in ReadQueuedRenderData() local
157 WebRtcAecm_BufferFarend(my_handle, &capture_queue_buffer_[buffer_index], in ReadQueuedRenderData()
160 buffer_index += num_frames_per_band; in ReadQueuedRenderData()
Dgain_control_impl.cc114 size_t buffer_index = 0; in ReadQueuedRenderData() local
119 WebRtcAgc_AddFarend(my_handle, &capture_queue_buffer_[buffer_index], in ReadQueuedRenderData()
122 buffer_index += num_frames_per_band; in ReadQueuedRenderData()
Decho_cancellation_impl.cc145 size_t buffer_index = 0; in ReadQueuedRenderData() local
152 WebRtcAec_BufferFarend(my_handle, &capture_queue_buffer_[buffer_index], in ReadQueuedRenderData()
155 buffer_index += num_frames_per_band; in ReadQueuedRenderData()
/external/tensorflow/tensorflow/lite/tools/
Dverifier_test.cc77 int buffer_index = 0; in AddTensor() local
79 buffer_index = buffers_.size(); in AddTensor()
84 buffer_index, name, in AddTensor()
88 tensors_.push_back(CreateTensorDirect(builder_, &shape, type, buffer_index, in AddTensor()
/external/nos/test/system-test-harness/src/
Dutil.cc212 encoder.frame_info.buffer_index); in SendAhdlc()
323 if (decoder.frame_info.buffer_index < 2) { in GetAhdlc()
333 msg->data_len = decoder.frame_info.buffer_index - 2; in GetAhdlc()
335 decoder.pdu_buffer + decoder.frame_info.buffer_index, in GetAhdlc()
355 } else if (decoder.frame_info.buffer_index >= PROTO_BUFFER_MAX_LEN) { in GetAhdlc()
/external/tensorflow/tensorflow/lite/experimental/writer/
Dwriter_lib.cc159 int buffer_index = 0; // This is null in ExportTensors() local
161 buffer_index = buffers_.size(); in ExportTensors()
187 type, buffer_index, in ExportTensors()
/external/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()
/external/mesa3d/src/mesa/drivers/dri/i965/
Dintel_image.h59 int buffer_index; member
/external/webrtc/webrtc/modules/audio_processing/vad/
Dvad_audio_proc.cc126 size_t buffer_index = subframe_index * kNumSubframeSamples; in SubframeCorrelation() local
129 windowed_audio[n] = audio_buffer_[buffer_index++] * kLpcAnalWin[n]; in SubframeCorrelation()
/external/tensorflow/tensorflow/lite/toco/tflite/
Dimport.cc63 int buffer_index = input_tensor->buffer(); in ImportTensors() local
64 auto* buffer = buffers->Get(buffer_index); in ImportTensors()
/external/tensorflow/tensorflow/compiler/xla/service/cpu/
Dcpu_executable.cc237 const BufferAllocation::Index buffer_index = slice.index(); in CreateResultShapedBuffer() local
238 OwningDeviceMemory& buffer = buffers[buffer_index]; in CreateResultShapedBuffer()
/external/mesa3d/src/mesa/drivers/dri/i915/
Dintel_regions.h119 int buffer_index; member
/external/mesa3d/src/compiler/glsl/
Dlink_varyings.h100 unsigned buffer_index, const unsigned max_outputs,
/external/tensorflow/tensorflow/compiler/xrt/
Dxrt_state.h173 void DiscardAllocation(const xla::ShapeIndex& buffer_index);
/external/deqp/external/openglcts/modules/common/
DglcRobustBufferAccessBehaviorTests.cpp1167 for (GLuint buffer_index = 0; buffer_index < invalid_buffers_count; ++buffer_index) in iterate() local
1170 invalid_elements_set[buffer_index][item_index] = in iterate()
1171 invalid_elements[item_index] + invalid_elements_offsets[buffer_index]; in iterate()
1174 for (GLuint buffer_index = 0; buffer_index < invalid_buffers_count; ++buffer_index) in iterate() local
1177 …ffer.InitData(GL_ELEMENT_ARRAY_BUFFER, GL_DYNAMIC_DRAW, sizeof(invalid_elements_set[buffer_index]), in iterate()
1178 invalid_elements_set[buffer_index]); in iterate()

12