Home
last modified time | relevance | path

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

123

/hardware/qcom/wlan/qcwcn/wifi_hal/
Dring_buffer.cpp60 rb_entry_t *bufs; // Array of buffer pointers member
111 rbc->bufs = (rb_entry_t *)malloc(num_bufs * sizeof(rb_entry_t)); in ring_buffer_init()
112 if (rbc->bufs == NULL) { in ring_buffer_init()
117 memset(rbc->bufs, 0, (num_bufs * sizeof(rb_entry_t))); in ring_buffer_init()
143 free(rbc->bufs[buf_no].data); in ring_buffer_deinit()
145 free(rbc->bufs); in ring_buffer_deinit()
170 if (rbc->bufs[rbc->wr_buf_no].full == 1) in rb_write()
192 if (rbc->bufs[next_buf_no].full == 1) { in rb_write()
206 if (rbc->bufs[next_buf_no].full == 1) { in rb_write()
216 rbc->bufs[rbc->wr_buf_no].full = 1; in rb_write()
[all …]
/hardware/qcom/camera/QCamera2/stack/mm-camera-test/src/
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()
182 static void mm_app_snapshot_metadata_notify_cb(mm_camera_super_buf_t *bufs, in mm_app_snapshot_metadata_notify_cb() argument
192 if (NULL == bufs || NULL == user_data) { in mm_app_snapshot_metadata_notify_cb()
196 frame = bufs->bufs[0]; in mm_app_snapshot_metadata_notify_cb()
200 if (pme->channels[i].ch_id == bufs->ch_id) { in mm_app_snapshot_metadata_notify_cb()
225 for (i = 0; i < bufs->num_bufs; i++) { in mm_app_snapshot_metadata_notify_cb()
226 if (bufs->bufs[i]->stream_id == p_stream->s_id) { in mm_app_snapshot_metadata_notify_cb()
227 frame = bufs->bufs[i]; in mm_app_snapshot_metadata_notify_cb()
256 if (MM_CAMERA_OK != pme->cam->ops->qbuf(bufs->camera_handle, in mm_app_snapshot_metadata_notify_cb()
[all …]
Dmm_qcamera_preview.c45 static void mm_app_metadata_notify_cb(mm_camera_super_buf_t *bufs, in mm_app_metadata_notify_cb() argument
55 if (NULL == bufs || NULL == user_data) { in mm_app_metadata_notify_cb()
59 frame = bufs->bufs[0]; in mm_app_metadata_notify_cb()
63 if (pme->channels[i].ch_id == bufs->ch_id) { in mm_app_metadata_notify_cb()
88 for (i = 0; i < bufs->num_bufs; i++) { in mm_app_metadata_notify_cb()
89 if (bufs->bufs[i]->stream_id == p_stream->s_id) { in mm_app_metadata_notify_cb()
90 frame = bufs->bufs[i]; in mm_app_metadata_notify_cb()
122 if (MM_CAMERA_OK != pme->cam->ops->qbuf(bufs->camera_handle, in mm_app_metadata_notify_cb()
123 bufs->ch_id, in mm_app_metadata_notify_cb()
131 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()
342 recvd_frame->bufs[i])) { in mm_app_release_ppinput()
345 mm_app_cache_ops((mm_camera_app_meminfo_t *) recvd_frame->bufs[i]->mem_info, in mm_app_release_ppinput()
Dmm_qcamera_video.c34 static void mm_app_video_notify_cb(mm_camera_super_buf_t *bufs, in mm_app_video_notify_cb() argument
38 mm_camera_buf_def_t *frame = bufs->bufs[0]; in mm_app_video_notify_cb()
46 if (MM_CAMERA_OK != pme->cam->ops->qbuf(bufs->camera_handle, in mm_app_video_notify_cb()
47 bufs->ch_id, in mm_app_video_notify_cb()
Dmm_qcamera_rdi.c67 static void mm_app_rdi_notify_cb(mm_camera_super_buf_t *bufs, in mm_app_rdi_notify_cb() argument
71 mm_camera_buf_def_t *frame = bufs->bufs[0]; in mm_app_rdi_notify_cb()
79 if (MM_CAMERA_OK != pme->cam->ops->qbuf(bufs->camera_handle, in mm_app_rdi_notify_cb()
80 bufs->ch_id, in mm_app_rdi_notify_cb()
/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.c45 static void mm_app_metadata_notify_cb(mm_camera_super_buf_t *bufs, in mm_app_metadata_notify_cb() argument
55 if (NULL == bufs || NULL == user_data) { in mm_app_metadata_notify_cb()
59 frame = bufs->bufs[0]; in mm_app_metadata_notify_cb()
63 if (pme->channels[i].ch_id == bufs->ch_id) { in mm_app_metadata_notify_cb()
88 for (i = 0; i < bufs->num_bufs; i++) { in mm_app_metadata_notify_cb()
89 if (bufs->bufs[i]->stream_id == p_stream->s_id) { in mm_app_metadata_notify_cb()
90 frame = bufs->bufs[i]; in mm_app_metadata_notify_cb()
211 if (MM_CAMERA_OK != pme->cam->ops->qbuf(bufs->camera_handle, in mm_app_metadata_notify_cb()
212 bufs->ch_id, in mm_app_metadata_notify_cb()
220 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()
343 recvd_frame->bufs[i])) { in mm_app_release_ppinput()
346 mm_app_cache_ops((mm_camera_app_meminfo_t *) recvd_frame->bufs[i]->mem_info, in mm_app_release_ppinput()
Dmm_qcamera_rdi.c67 static void mm_app_rdi_notify_cb(mm_camera_super_buf_t *bufs, in mm_app_rdi_notify_cb() argument
71 mm_camera_buf_def_t *frame = bufs->bufs[0]; in mm_app_rdi_notify_cb()
79 if (MM_CAMERA_OK != pme->cam->ops->qbuf(bufs->camera_handle, in mm_app_rdi_notify_cb()
80 bufs->ch_id, in mm_app_rdi_notify_cb()
/hardware/qcom/camera/QCamera2/HAL3/
DQCamera3Stream.cpp82 mm_camera_buf_def_t **bufs, in get_bufs() argument
92 rc = stream->getBufs(offset, num_bufs, initial_reg_flag, bufs, ops_tbl); in get_bufs()
101 bufs, ops_tbl); in get_bufs()
544 bufDone(frame->bufs[0]->buf_idx); in processDataNotify()
571 recvd_frame->bufs[0] == NULL || in dataNotifyCB()
572 recvd_frame->bufs[0]->stream_id != stream->getMyHandle()) { in dataNotifyCB()
581 stream->bufDone(recvd_frame->bufs[0]->buf_idx); in dataNotifyCB()
634 if (UNLIKELY(frame->bufs[0]->buf_type == in dataProcRoutine()
641 pme->bufDone(frame->bufs[0]->buf_idx); in dataProcRoutine()
834 mm_camera_buf_def_t **bufs, in getBufs() argument
[all …]
DQCamera3Stream.h78 virtual int32_t processDataNotify(mm_camera_super_buf_t *bufs);
140 mm_camera_buf_def_t **bufs,
152 mm_camera_buf_def_t **bufs,
159 mm_camera_buf_def_t **bufs,
/hardware/qcom/camera/msm8998/QCamera2/HAL3/
DQCamera3Stream.cpp83 mm_camera_buf_def_t **bufs, in get_bufs() argument
93 rc = stream->getBufs(offset, num_bufs, initial_reg_flag, bufs, ops_tbl); in get_bufs()
102 bufs, ops_tbl); in get_bufs()
599 bufDone(frame->bufs[0]->buf_idx); in processDataNotify()
626 recvd_frame->bufs[0] == NULL || in dataNotifyCB()
627 recvd_frame->bufs[0]->stream_id != stream->getMyHandle()) { in dataNotifyCB()
636 stream->bufDone(recvd_frame->bufs[0]->buf_idx); in dataNotifyCB()
689 if (UNLIKELY(frame->bufs[0]->buf_type == in dataProcRoutine()
696 pme->bufDone(frame->bufs[0]->buf_idx); in dataProcRoutine()
896 mm_camera_buf_def_t **bufs, in getBufs() argument
[all …]
DQCamera3Stream.h78 virtual int32_t processDataNotify(mm_camera_super_buf_t *bufs);
140 mm_camera_buf_def_t **bufs,
153 mm_camera_buf_def_t **bufs,
161 mm_camera_buf_def_t **bufs,
/hardware/qcom/camera/QCamera2/HAL/
DQCameraStream.h72 virtual int32_t processDataNotify(mm_camera_super_buf_t *bufs);
195 mm_camera_buf_def_t **bufs,
203 mm_camera_buf_def_t **bufs,
228 mm_camera_buf_def_t **bufs,
233 mm_camera_buf_def_t **bufs,
241 mm_camera_buf_def_t **bufs, mm_camera_map_unmap_ops_tbl_t *ops_tbl);
DQCamera2HWICallbacks.cpp154 recvd_frame->bufs[0]->frame_idx); in zsl_channel_cb()
162 if (recvd_frame->bufs[i]->stream_type == CAM_STREAM_TYPE_RAW) { in zsl_channel_cb()
163 mm_camera_buf_def_t * raw_frame = recvd_frame->bufs[i]; in zsl_channel_cb()
174 if (recvd_frame->bufs[i]->stream_type == CAM_STREAM_TYPE_SNAPSHOT) { in zsl_channel_cb()
175 mm_camera_buf_def_t * yuv_frame = recvd_frame->bufs[i]; in zsl_channel_cb()
190 QCameraStream *pStream = pChannel->getStreamByHandle(frame->bufs[i]->stream_id); in zsl_channel_cb()
193 pMetaFrame = frame->bufs[i]; //find the metadata in zsl_channel_cb()
231 pStream = pChannel->getStreamByHandle(frame->bufs[i]->stream_id); in zsl_channel_cb()
234 pMetaFrame = frame->bufs[i]; in zsl_channel_cb()
251 pStream = pChannel->getStreamByHandle(frame->bufs[i]->stream_id); in zsl_channel_cb()
[all …]
DQCameraPostProc.cpp865 src_frame->bufs[i]->stream_id); in getOfflinePPInputBuffer()
869 data_frame = src_frame->bufs[i]; in getOfflinePPInputBuffer()
872 meta_frame = src_frame->bufs[i]; in getOfflinePPInputBuffer()
930 if (frame->bufs[i]->stream_type == CAM_STREAM_TYPE_METADATA) { in processData()
931 meta_frame = frame->bufs[i]; in processData()
969 mm_camera_buf_def_t *bufs = NULL; in processData() local
971 bufs = new mm_camera_buf_def_t[num_bufs]; in processData()
972 if (NULL == bufs) { in processData()
978 bufs[i] = *frame->bufs[i]; in processData()
979 frame->bufs[i] = &bufs[i]; in processData()
[all …]
DQCameraChannel.cpp419 if (recvd_frame->bufs[i] != NULL) { in bufDone()
422 mStreams[j]->getMyHandle() == recvd_frame->bufs[i]->stream_id) { in bufDone()
423 rc = mStreams[j]->bufDone(recvd_frame->bufs[i]->buf_idx); in bufDone()
452 if ((recvd_frame->bufs[i] != NULL) && in bufDone()
453 (recvd_frame->bufs[i]->stream_id == stream_id)) { in bufDone()
457 rc = mStreams[j]->bufDone(recvd_frame->bufs[i]->buf_idx); in bufDone()
464 recvd_frame->bufs[j] = recvd_frame->bufs[j + 1]; in bufDone()
1402 pStream = getStreamBySrouceHandle(frame->bufs[i]->stream_id); in doReprocessOffline()
1422 uint32_t stream_id = frame->bufs[i]->stream_id; in doReprocessOffline()
1459 rc = doReprocessOffline (frame->bufs[i], meta_buf, pStream); in doReprocessOffline()
[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()
1002 bufDone(frame->bufs[0]->buf_idx); in processDataNotify()
1028 recvd_frame->bufs[0] == NULL || in dataNotifySYNCCB()
1029 recvd_frame->bufs[0]->stream_id != stream->getMyHandle()) { in dataNotifySYNCCB()
1058 recvd_frame->bufs[0] == NULL || in dataNotifyCB()
1059 recvd_frame->bufs[0]->stream_id != stream->getMyHandle()) { in dataNotifyCB()
[all …]
/hardware/qcom/camera/msm8998/QCamera2/HAL/
DQCameraStream.h72 virtual int32_t processDataNotify(mm_camera_super_buf_t *bufs);
204 mm_camera_buf_def_t **bufs,
212 mm_camera_buf_def_t **bufs,
238 mm_camera_buf_def_t **bufs,
243 mm_camera_buf_def_t **bufs,
251 mm_camera_buf_def_t **bufs, mm_camera_map_unmap_ops_tbl_t *ops_tbl);
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.cpp452 if (recvd_frame->bufs[i] != NULL) { in bufDone()
456 recvd_frame->bufs[i]->stream_id))) { in bufDone()
457 rc = mStreams[j]->bufDone(recvd_frame->bufs[i]->buf_idx); in bufDone()
486 if ((recvd_frame->bufs[i] != NULL) && in bufDone()
487 (recvd_frame->bufs[i]->stream_id == stream_id)) { in bufDone()
491 recvd_frame->bufs[i]->stream_id))) { in bufDone()
492 rc = mStreams[j]->bufDone(recvd_frame->bufs[i]->buf_idx); in bufDone()
499 recvd_frame->bufs[j] = recvd_frame->bufs[j + 1]; in bufDone()
1578 pStream = getStreamBySrouceHandle(frame->bufs[i]->stream_id); in doReprocessOffline()
1599 uint32_t stream_id = frame->bufs[i]->stream_id; in doReprocessOffline()
[all …]
DQCameraPostProc.cpp868 src_frame->bufs[i]->stream_id); in getOfflinePPInputBuffer()
872 data_frame = src_frame->bufs[i]; in getOfflinePPInputBuffer()
875 meta_frame = src_frame->bufs[i]; in getOfflinePPInputBuffer()
933 if (frame->bufs[i]->stream_type == CAM_STREAM_TYPE_METADATA) { in processData()
934 meta_frame = frame->bufs[i]; in processData()
972 mm_camera_buf_def_t *bufs = NULL; in processData() local
974 bufs = new mm_camera_buf_def_t[num_bufs]; in processData()
975 if (NULL == bufs) { in processData()
981 bufs[i] = *frame->bufs[i]; in processData()
982 frame->bufs[i] = &bufs[i]; in processData()
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/common/
Dvp9_onyxc_int.h225 static INLINE void ref_cnt_fb(RefCntBuffer *bufs, int *idx, int new_idx) { in ref_cnt_fb() argument
228 if (ref_index >= 0 && bufs[ref_index].ref_count > 0) in ref_cnt_fb()
229 bufs[ref_index].ref_count--; in ref_cnt_fb()
233 bufs[new_idx].ref_count++; in ref_cnt_fb()

123