Home
last modified time | relevance | path

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

12

/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/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()
512 bufDone(frame->bufs[0]->buf_idx); in processDataNotify()
539 recvd_frame->bufs[0] == NULL || in dataNotifyCB()
540 recvd_frame->bufs[0]->stream_id != stream->getMyHandle()) { in dataNotifyCB()
549 stream->bufDone(recvd_frame->bufs[0]->buf_idx); in dataNotifyCB()
596 if (UNLIKELY(frame->bufs[0]->buf_type == in dataProcRoutine()
603 pme->bufDone(frame->bufs[0]->buf_idx); in dataProcRoutine()
754 mm_camera_buf_def_t **bufs, in getBufs() argument
[all …]
DQCamera3Stream.h77 virtual int32_t processDataNotify(mm_camera_super_buf_t *bufs);
137 mm_camera_buf_def_t **bufs,
149 mm_camera_buf_def_t **bufs,
156 mm_camera_buf_def_t **bufs,
DQCamera3Channel.cpp353 if (recvd_frame->bufs[i] != NULL) { in bufDone()
356 mStreams[j]->getMyHandle() == recvd_frame->bufs[i]->stream_id) { in bufDone()
357 rc = mStreams[j]->bufDone(recvd_frame->bufs[i]->buf_idx); in bufDone()
799 frameIndex = (uint8_t)super_frame->bufs[0]->buf_idx; in streamCbRoutine()
812 dumpYUV(super_frame->bufs[0], dim, offset, QCAMERA_DUMP_FRM_PREVIEW); in streamCbRoutine()
814 dumpYUV(super_frame->bufs[0], dim, offset, QCAMERA_DUMP_FRM_VIDEO); in streamCbRoutine()
816 dumpYUV(super_frame->bufs[0], dim, offset, QCAMERA_DUMP_FRM_CALLBACK); in streamCbRoutine()
824 if (IS_BUFFER_ERROR(super_frame->bufs[0]->flags)) { in streamCbRoutine()
1164 if(NULL == super_frame->bufs[0]) { in checkStreamCbErrors()
2065 dumpRawSnapshot(super_frame->bufs[0]); in streamCbRoutine()
[all …]
DQCamera3PostProc.cpp1353 jpeg_job_data->src_frame->bufs[0]->buf_idx); in encodeData()
1380 srcChannel->getStreamByHandle(recvd_frame->bufs[i]->stream_id); in encodeData()
1386 main_frame = recvd_frame->bufs[i]; in encodeData()
1873 if (meta_buffer->bufs[0] != NULL) { in dataProcessRoutine()
1875 meta_buffer->bufs[0]->buffer; in dataProcessRoutine()
1881 meta_buffer_arg = meta_buffer->bufs[0]; in dataProcessRoutine()
/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.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.cpp415 if (recvd_frame->bufs[i] != NULL) { in bufDone()
418 mStreams[j]->getMyHandle() == recvd_frame->bufs[i]->stream_id) { in bufDone()
419 rc = mStreams[j]->bufDone(recvd_frame->bufs[i]->buf_idx); in bufDone()
448 if ((recvd_frame->bufs[i] != NULL) && in bufDone()
449 (recvd_frame->bufs[i]->stream_id == stream_id)) { in bufDone()
453 rc = mStreams[j]->bufDone(recvd_frame->bufs[i]->buf_idx); in bufDone()
460 recvd_frame->bufs[j] = recvd_frame->bufs[j + 1]; in bufDone()
1397 pStream = getStreamBySrouceHandle(frame->bufs[i]->stream_id); in doReprocessOffline()
1417 uint32_t stream_id = frame->bufs[i]->stream_id; in doReprocessOffline()
1454 rc = doReprocessOffline (frame->bufs[i], meta_buf, pStream); in doReprocessOffline()
[all …]
DQCameraPostProc.cpp863 src_frame->bufs[i]->stream_id); in getOfflinePPInputBuffer()
867 data_frame = src_frame->bufs[i]; in getOfflinePPInputBuffer()
870 meta_frame = src_frame->bufs[i]; in getOfflinePPInputBuffer()
928 if (frame->bufs[i]->stream_type == CAM_STREAM_TYPE_METADATA) { in processData()
929 meta_frame = frame->bufs[i]; in processData()
967 mm_camera_buf_def_t *bufs = NULL; in processData() local
969 bufs = new mm_camera_buf_def_t[num_bufs]; in processData()
970 if (NULL == bufs) { in processData()
976 bufs[i] = *frame->bufs[i]; in processData()
977 frame->bufs[i] = &bufs[i]; 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()
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 …]
DQCameraMem.h107 mm_camera_buf_def_t *planebufDef, QCameraMemory *bufs) const;
/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()
/hardware/qcom/camera/QCamera2/stack/common/
Dmm_camera_interface.h159 mm_camera_buf_def_t* bufs[MAX_STREAM_NUM_IN_BUNDLE]; member
211 typedef void (*mm_camera_buf_notify_t) (mm_camera_super_buf_t *bufs,
277 mm_camera_buf_def_t **bufs,
/hardware/libhardware/tests/camera2/
Dcamera2_utils.h64 status_t setStreamSlot(const List<camera_metadata_t*> &bufs);
Dcamera2_utils.cpp168 status_t MetadataQueue::setStreamSlot(const List<camera_metadata_t*> &bufs) { in setStreamSlot() argument
172 mStreamSlot = bufs; in setStreamSlot()
/hardware/qcom/camera/QCamera2/stack/mm-camera-test/inc/
Dmm_qcamera_app.h376 mm_camera_buf_def_t **bufs,
/hardware/ti/omap4-aah/camera/
DCameraHal.cpp1666 status_t CameraHal::freeVideoBufs(CameraBuffer *bufs) in freeVideoBufs() argument
1673 if(bufs == NULL) in freeVideoBufs()
1683 CAMHAL_LOGVB("Free Video Gralloc Handle 0x%x", bufs[i].opaque); in freeVideoBufs()
1684 GrallocAlloc.free((buffer_handle_t)bufs[i].opaque); in freeVideoBufs()
2196 CameraBuffer *bufs = NULL; in setTapoutLocked() local
2202 bufs = out->allocateBufferList(stride, in setTapoutLocked()
2207 if (bufs == NULL){ in setTapoutLocked()
/hardware/qcom/msm8994/kernel-headers/sound/
Dasound.h451 void __user * __user *bufs; member
/hardware/qcom/msm8994/original-kernel-headers/sound/
Dasound.h457 void __user * __user *bufs; member
/hardware/qcom/msm8996/kernel-headers/sound/
Dasound.h455 void __user * __user * bufs; member

12