Home
last modified time | relevance | path

Searched refs:bufs (Results 1 – 25 of 44) sorted by relevance

12

/hardware/qcom/wlan/qcwcn/wifi_hal/
Dring_buffer.cpp61 rb_entry_t *bufs; // Array of buffer pointers member
112 rbc->bufs = (rb_entry_t *)malloc(num_bufs * sizeof(rb_entry_t)); in ring_buffer_init()
113 if (rbc->bufs == NULL) { in ring_buffer_init()
118 memset(rbc->bufs, 0, (num_bufs * sizeof(rb_entry_t))); in ring_buffer_init()
144 free(rbc->bufs[buf_no].data); in ring_buffer_deinit()
146 free(rbc->bufs); in ring_buffer_deinit()
171 if (rbc->bufs[rbc->wr_buf_no].full == 1) in rb_write()
193 if (rbc->bufs[next_buf_no].full == 1) { in rb_write()
207 if (rbc->bufs[next_buf_no].full == 1) { in rb_write()
217 rbc->bufs[rbc->wr_buf_no].full = 1; in rb_write()
[all …]
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-camera-test/src/
Dmm_qcamera_video.c34 static void mm_app_metadata_notify_cb(mm_camera_super_buf_t *bufs, in mm_app_metadata_notify_cb() argument
44 if (NULL == bufs || NULL == user_data) { in mm_app_metadata_notify_cb()
48 frame = bufs->bufs[0]; in mm_app_metadata_notify_cb()
52 if (pme->channels[i].ch_id == bufs->ch_id) { in mm_app_metadata_notify_cb()
77 for (i = 0; i < bufs->num_bufs; i++) { in mm_app_metadata_notify_cb()
78 if (bufs->bufs[i]->stream_id == p_stream->s_id) { in mm_app_metadata_notify_cb()
79 frame = bufs->bufs[i]; in mm_app_metadata_notify_cb()
111 if (MM_CAMERA_OK != pme->cam->ops->qbuf(bufs->camera_handle, in mm_app_metadata_notify_cb()
112 bufs->ch_id, in mm_app_metadata_notify_cb()
121 static void mm_app_snapshot_notify_cb(mm_camera_super_buf_t *bufs, in mm_app_snapshot_notify_cb() argument
[all …]
Dmm_qcamera_snapshot.c65 pme->current_job_frames->bufs[i])) { in jpeg_encode_cb()
68 mm_app_cache_ops((mm_camera_app_meminfo_t *) pme->current_job_frames->bufs[i]->mem_info, in jpeg_encode_cb()
264 static void mm_app_snapshot_metadata_notify_cb(mm_camera_super_buf_t *bufs, in mm_app_snapshot_metadata_notify_cb() argument
274 if (NULL == bufs || NULL == user_data) { in mm_app_snapshot_metadata_notify_cb()
278 frame = bufs->bufs[0]; in mm_app_snapshot_metadata_notify_cb()
282 if (pme->channels[i].ch_id == bufs->ch_id) { in mm_app_snapshot_metadata_notify_cb()
307 for (i = 0; i < bufs->num_bufs; i++) { in mm_app_snapshot_metadata_notify_cb()
308 if (bufs->bufs[i]->stream_id == p_stream->s_id) { in mm_app_snapshot_metadata_notify_cb()
309 frame = bufs->bufs[i]; in mm_app_snapshot_metadata_notify_cb()
338 if (MM_CAMERA_OK != pme->cam->ops->qbuf(bufs->camera_handle, in mm_app_snapshot_metadata_notify_cb()
[all …]
Dmm_qcamera_preview.c49 static void mm_app_metadata_notify_cb(mm_camera_super_buf_t *bufs, in mm_app_metadata_notify_cb() argument
59 if (NULL == bufs || NULL == user_data) { in mm_app_metadata_notify_cb()
63 frame = bufs->bufs[0]; in mm_app_metadata_notify_cb()
67 if (pme->channels[i].ch_id == bufs->ch_id) { in mm_app_metadata_notify_cb()
92 for (i = 0; i < bufs->num_bufs; i++) { in mm_app_metadata_notify_cb()
93 if (bufs->bufs[i]->stream_id == p_stream->s_id) { in mm_app_metadata_notify_cb()
94 frame = bufs->bufs[i]; in mm_app_metadata_notify_cb()
215 if (MM_CAMERA_OK != pme->cam->ops->qbuf(bufs->camera_handle, in mm_app_metadata_notify_cb()
216 bufs->ch_id, in mm_app_metadata_notify_cb()
224 static void mm_app_snapshot_notify_cb(mm_camera_super_buf_t *bufs, in mm_app_snapshot_notify_cb() argument
[all …]
Dmm_qcamera_reprocess.c34 static void mm_app_reprocess_notify_cb(mm_camera_super_buf_t *bufs, in mm_app_reprocess_notify_cb() argument
37 mm_camera_buf_def_t *frame = bufs->bufs[0]; in mm_app_reprocess_notify_cb()
51 if (pme->channels[i].ch_id == bufs->ch_id) { in mm_app_reprocess_notify_cb()
57 LOGE(" Wrong channel id (%d)", bufs->ch_id); in mm_app_reprocess_notify_cb()
64 m_frame = bufs->bufs[0]; in mm_app_reprocess_notify_cb()
84 rc = encodeData(pme, bufs, m_stream); in mm_app_reprocess_notify_cb()
87 if (MM_CAMERA_OK != pme->cam->ops->qbuf(bufs->camera_handle, in mm_app_reprocess_notify_cb()
88 bufs->ch_id, in mm_app_reprocess_notify_cb()
345 recvd_frame->bufs[i])) { in mm_app_release_ppinput()
348 mm_app_cache_ops((mm_camera_app_meminfo_t *) recvd_frame->bufs[i]->mem_info, in mm_app_release_ppinput()
Dmm_qcamera_rdi.c68 static void mm_app_rdi_notify_cb(mm_camera_super_buf_t *bufs, in mm_app_rdi_notify_cb() argument
72 mm_camera_buf_def_t *frame = bufs->bufs[0]; in mm_app_rdi_notify_cb()
80 if (MM_CAMERA_OK != pme->cam->ops->qbuf(bufs->camera_handle, in mm_app_rdi_notify_cb()
81 bufs->ch_id, in mm_app_rdi_notify_cb()
/hardware/qcom/camera/msm8998/QCamera2/util/
DQCameraDualFOVPP.cpp258 mm_camera_buf_def_t *pOutputBufDefs = pOutputData->bufs; in feedOutput()
279 pOutputFrame->bufs[0] = &pOutputBufDefs[0]; in feedOutput()
280 pOutputFrame->bufs[1] = &pOutputBufDefs[1]; in feedOutput()
295 pOutputFrame->bufs[0]->fd, pOutputFrame->bufs[0]->buffer); in feedOutput()
298 pOutputFrame->bufs[0]->fd, pOutputFrame->bufs[0]->buffer); in feedOutput()
424 mm_camera_buf_def_t *output_snapshot_buf = output_frame->bufs[0]; in process()
518 pSnapshotStream = pChannel->getStreamByHandle(pFrame->bufs[i]->stream_id); in getSnapshotBuf()
522 pBufDef = pFrame->bufs[i]; in getSnapshotBuf()
557 pMetadataStream = pChannel->getStreamByHandle(pData->src_reproc_frame->bufs[i]->stream_id); in getMetadataBuf()
558 if (pData->src_reproc_frame->bufs[i]->stream_type == CAM_STREAM_TYPE_METADATA) { in getMetadataBuf()
[all …]
DQCameraHALPP.cpp235 if (pData->halPPAllocatedBuf && pData->bufs) { in releaseData()
236 free(pData->bufs); in releaseData()
/hardware/qcom/camera/msm8998/QCamera2/HAL3/
DQCamera3Stream.cpp84 mm_camera_buf_def_t **bufs, in get_bufs() argument
94 rc = stream->getBufs(offset, num_bufs, initial_reg_flag, bufs, ops_tbl); in get_bufs()
103 bufs, ops_tbl); in get_bufs()
613 bufDone(frame->bufs[0]->buf_idx); in processDataNotify()
640 recvd_frame->bufs[0] == NULL || in dataNotifyCB()
641 recvd_frame->bufs[0]->stream_id != stream->getMyHandle()) { in dataNotifyCB()
650 stream->bufDone(recvd_frame->bufs[0]->buf_idx); in dataNotifyCB()
714 if (UNLIKELY(frame->bufs[0]->buf_type == in dataProcRoutine()
721 pme->bufDone(frame->bufs[0]->buf_idx); in dataProcRoutine()
936 mm_camera_buf_def_t **bufs, in getBufs() argument
[all …]
DQCamera3Stream.h79 virtual int32_t processDataNotify(mm_camera_super_buf_t *bufs);
148 mm_camera_buf_def_t **bufs,
161 mm_camera_buf_def_t **bufs,
169 mm_camera_buf_def_t **bufs,
DQCamera3Channel.cpp364 if (recvd_frame->bufs[i] != NULL) { in bufDone()
367 mStreams[j]->getMyHandle() == recvd_frame->bufs[i]->stream_id) { in bufDone()
368 rc = mStreams[j]->bufDone(recvd_frame->bufs[i]->buf_idx); in bufDone()
860 frameIndex = (uint8_t)super_frame->bufs[0]->buf_idx; in streamCbRoutine()
873 dumpYUV(super_frame->bufs[0], dim, offset, QCAMERA_DUMP_FRM_PREVIEW); in streamCbRoutine()
875 dumpYUV(super_frame->bufs[0], dim, offset, QCAMERA_DUMP_FRM_VIDEO); in streamCbRoutine()
877 dumpYUV(super_frame->bufs[0], dim, offset, QCAMERA_DUMP_FRM_CALLBACK); in streamCbRoutine()
900 uint32_t buf_idx = super_buf->bufs[0]->buf_idx; in streamCbRoutine()
905 super_buf->bufs[0]->flags |= V4L2_BUF_FLAG_ERROR; in streamCbRoutine()
934 if (IS_BUFFER_ERROR(super_frame->bufs[0]->flags)) { in streamCbRoutine()
[all …]
DQCamera3PostProc.cpp1614 jpeg_job_data->src_frame->bufs[0]->buf_idx); in encodeData()
1641 srcChannel->getStreamByHandle(recvd_frame->bufs[i]->stream_id); in encodeData()
1647 main_frame = recvd_frame->bufs[i]; in encodeData()
2197 if (meta_buffer->bufs[0] != NULL) { in dataProcessRoutine()
2199 meta_buffer->bufs[0]->buffer; in dataProcessRoutine()
2205 meta_buffer_arg = meta_buffer->bufs[0]; in dataProcessRoutine()
/hardware/qcom/camera/msm8998/QCamera2/HAL/
DQCamera2HWICallbacks.cpp157 recvd_frame->bufs[0]->frame_idx); in zsl_channel_cb()
165 if (recvd_frame->bufs[i]->stream_type == CAM_STREAM_TYPE_RAW) { in zsl_channel_cb()
166 mm_camera_buf_def_t * raw_frame = recvd_frame->bufs[i]; in zsl_channel_cb()
177 if (recvd_frame->bufs[i]->stream_type == CAM_STREAM_TYPE_SNAPSHOT) { in zsl_channel_cb()
178 mm_camera_buf_def_t * yuv_frame = recvd_frame->bufs[i]; in zsl_channel_cb()
193 QCameraStream *pStream = pChannel->getStreamByHandle(frame->bufs[i]->stream_id); in zsl_channel_cb()
196 pMetaFrame = frame->bufs[i]; //find the metadata in zsl_channel_cb()
234 pStream = pChannel->getStreamByHandle(frame->bufs[i]->stream_id); in zsl_channel_cb()
237 pMetaFrame = frame->bufs[i]; in zsl_channel_cb()
254 pStream = pChannel->getStreamByHandle(frame->bufs[i]->stream_id); in zsl_channel_cb()
[all …]
DQCameraChannel.cpp462 if (recvd_frame->bufs[i] != NULL) { in bufDone()
466 recvd_frame->bufs[i]->stream_id))) { in bufDone()
467 rc = mStreams[j]->bufDone(recvd_frame->bufs[i]->buf_idx); in bufDone()
496 if ((recvd_frame->bufs[i] != NULL) && in bufDone()
497 (recvd_frame->bufs[i]->stream_id == stream_id)) { in bufDone()
501 recvd_frame->bufs[i]->stream_id))) { in bufDone()
502 rc = mStreams[j]->bufDone(recvd_frame->bufs[i]->buf_idx); in bufDone()
509 recvd_frame->bufs[j] = recvd_frame->bufs[j + 1]; in bufDone()
1615 pStream = getStreamBySrouceHandle(frame->bufs[i]->stream_id); in doReprocessOffline()
1636 uint32_t stream_id = frame->bufs[i]->stream_id; in doReprocessOffline()
[all …]
DQCameraStream.h72 virtual int32_t processDataNotify(mm_camera_super_buf_t *bufs);
205 mm_camera_buf_def_t **bufs,
213 mm_camera_buf_def_t **bufs,
239 mm_camera_buf_def_t **bufs,
244 mm_camera_buf_def_t **bufs,
252 mm_camera_buf_def_t **bufs, mm_camera_map_unmap_ops_tbl_t *ops_tbl);
DQCameraPostProc.cpp639 encode_parm.src_main_buf[i].buf_size = halpp_out_buf->bufs[0]->frame_len; in getJpegEncodingConfig()
640 encode_parm.src_main_buf[i].buf_vaddr = (uint8_t *)halpp_out_buf->bufs[0]->buffer; in getJpegEncodingConfig()
641 encode_parm.src_main_buf[i].fd = halpp_out_buf->bufs[0]->fd; in getJpegEncodingConfig()
1009 src_frame->bufs[i]->stream_id); in getOfflinePPInputBuffer()
1013 data_frame = src_frame->bufs[i]; in getOfflinePPInputBuffer()
1016 meta_frame = src_frame->bufs[i]; in getOfflinePPInputBuffer()
1074 if (frame->bufs[i]->stream_type == CAM_STREAM_TYPE_METADATA) { in processData()
1075 meta_frame = frame->bufs[i]; in processData()
1113 mm_camera_buf_def_t *bufs = NULL; in processData() local
1115 bufs = new mm_camera_buf_def_t[num_bufs]; in processData()
[all …]
DQCameraStream.cpp70 mm_camera_buf_def_t **bufs, in get_bufs() argument
84 initial_reg_flag, bufs, ops_tbl); in get_bufs()
88 initial_reg_flag, bufs, ops_tbl); in get_bufs()
114 mm_camera_buf_def_t **bufs, in get_bufs_deffered() argument
125 return stream->getBufsDeferred(NULL /*offset*/, num_bufs, initial_reg_flag, bufs, in get_bufs_deffered()
1101 recvd_frame->bufs[0] == NULL || in dataNotifySYNCCB()
1103 recvd_frame->bufs[0]->stream_id)) { in dataNotifySYNCCB()
1131 recvd_frame->bufs[0] == NULL || in dataNotifyCB()
1133 recvd_frame->bufs[0]->stream_id))) { in dataNotifyCB()
1255 if (super_buf->bufs[i] != NULL) { in bufDone()
[all …]
DQCameraPostProc.h94 mm_camera_buf_def_t *bufs; // source buf_defs member
DQCameraMem.h132 mm_camera_buf_def_t *planebufDef, QCameraMemory *bufs) const;
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-camera-interface/src/
Dmm_camera_muxer.c1725 super_buf.bufs[super_buf.num_bufs++] = in mm_camera_muxer_stream_frame_sync()
1726 dispatch_buf.super_buf[i].bufs[0]; in mm_camera_muxer_stream_frame_sync()
1921 (buffer->bufs[0]->stream_id == queue->bundled_objs[buf_s_idx])) { in mm_camera_muxer_do_frame_sync()
1926 LOGE("buf from stream (%d) not bundled", buffer->bufs[0]->stream_id); in mm_camera_muxer_do_frame_sync()
1931 if (buffer->bufs[0]->frame_idx <= queue->expected_frame_id) { in mm_camera_muxer_do_frame_sync()
1953 } else if (buffer->bufs[0]->frame_idx == super_obj->frame_idx) { in mm_camera_muxer_do_frame_sync()
1956 } else if ((buffer->bufs[0]->frame_idx >= super_obj->frame_idx) in mm_camera_muxer_do_frame_sync()
1964 if ( super_obj->frame_idx < buffer->bufs[0]->frame_idx) { in mm_camera_muxer_do_frame_sync()
1969 if ( super_obj->frame_idx > buffer->bufs[0]->frame_idx) { in mm_camera_muxer_do_frame_sync()
1980 buffer->bufs[0]->frame_idx, unmatched_bundles, in mm_camera_muxer_do_frame_sync()
[all …]
/hardware/qcom/camera/msm8998/QCamera2/stack/common/
Dmm_camera_interface.h175 mm_camera_buf_def_t* bufs[MAX_STREAM_NUM_IN_BUNDLE]; member
219 typedef void (*mm_camera_buf_notify_t) (mm_camera_super_buf_t *bufs,
287 mm_camera_buf_def_t **bufs,
/hardware/interfaces/camera/device/3.5/default/
DExternalCameraDeviceSession.cpp283 const std::vector<HalStreamBuffer>& bufs) { in requestBufferStart() argument
285 return mBufferRequestThread->requestBufferStart(bufs); in requestBufferStart()
DCameraDeviceSession.cpp166 std::vector<int>& fences, std::vector<std::pair<buffer_handle_t, int>>& bufs) { in cleanupInflightBufferFences() argument
169 for (auto& p : bufs) { in cleanupInflightBufferFences()
/hardware/google/av/media/codecs/aac/
DC2SoftAacEnc.cpp380 inBufDesc.bufs = (void**)&inBuffer; in process()
392 outBufDesc.bufs = (void**)&outBuffer; in process()
/hardware/interfaces/camera/device/3.5/default/include/device_v3_5_impl/
DCameraDeviceSession.h155 std::vector<int>& fences, std::vector<std::pair<buffer_handle_t, int>>& bufs);

12