Home
last modified time | relevance | path

Searched refs:idx (Results 1 – 25 of 67) sorted by relevance

123

/device/lge/mako/camera/mm-camera-interface/
Dmm_camera_notify.c52 int idx; in mm_camera_read_raw_frame() local
60 idx = mm_camera_read_msm_frame(my_obj, stream); in mm_camera_read_raw_frame()
61 if (idx < 0) { in mm_camera_read_raw_frame()
69 data[cnt].def.idx = idx; in mm_camera_read_raw_frame()
70 data[cnt].def.frame = &my_obj->ch[MM_CAMERA_CH_RAW].raw.stream.frame.frame[idx].frame; in mm_camera_read_raw_frame()
71 my_obj->ch[MM_CAMERA_CH_RAW].raw.stream.frame.ref_count[idx]++; in mm_camera_read_raw_frame()
174 notify_frame.idx = peer_frame_tmp->idx; in mm_camera_zsl_frame_cmp_and_enq()
189 notify_frame.idx = peer_frame_tmp->idx; in mm_camera_zsl_frame_cmp_and_enq()
202 notify_frame.idx = node->idx; in mm_camera_zsl_frame_cmp_and_enq()
215 notify_frame.idx = node->idx; in mm_camera_zsl_frame_cmp_and_enq()
[all …]
Dmm_camera_stream.c194 int idx = -1, rc = MM_CAMERA_OK; in mm_camera_read_msm_frame() local
208 return idx; in mm_camera_read_msm_frame()
209 idx = vb.index; in mm_camera_read_msm_frame()
214 stream->frame.frame[idx].planes[i].reserved[0] = in mm_camera_read_msm_frame()
216 stream->frame.frame[idx].planes[i].data_offset = in mm_camera_read_msm_frame()
220 stream->frame.frame[idx].frame.frame_id = vb.sequence; in mm_camera_read_msm_frame()
221 stream->frame.frame[idx].frame.ts.tv_sec = vb.timestamp.tv_sec; in mm_camera_read_msm_frame()
222 stream->frame.frame[idx].frame.ts.tv_nsec = vb.timestamp.tv_usec * 1000; in mm_camera_read_msm_frame()
225 stream->stream_type, idx, vb.sequence); in mm_camera_read_msm_frame()
227 return idx; in mm_camera_read_msm_frame()
[all …]
Dmm_camera_channel.c583 notify_frame.idx = mframe->idx; in mm_camera_channel_skip_frames()
588 notify_frame.idx = sframe->idx; in mm_camera_channel_skip_frames()
640 mframe->frame.frame_id, sframe->frame.frame_id, mframe->idx, sframe->idx); in mm_camera_dispatch_buffered_frames()
648 data.snapshot.main.idx = mframe->idx; in mm_camera_dispatch_buffered_frames()
650 data.snapshot.thumbnail.idx = sframe->idx; in mm_camera_dispatch_buffered_frames()
667 mm_camera_stream_frame_enq(mq, &stream1->frame.frame[qmframe->idx]); in mm_camera_dispatch_buffered_frames()
671 mm_camera_stream_frame_enq(sq, &stream2->frame.frame[qsframe->idx]); in mm_camera_dispatch_buffered_frames()
/device/lge/mako/camera/
DQCameraHWI_Preview.cpp350 int idx = roi.d.data.idx; in notifyROIEvent() local
351 if (idx >= mHalCamCtrl->mMetadata.number_of_faces) { in notifyROIEvent()
353 … ALOGE("%s: idx %d out of boundary %d", __func__, idx, mHalCamCtrl->mMetadata.number_of_faces); in notifyROIEvent()
357 mHalCamCtrl->mFace[idx].id = roi.d.data.face.id; in notifyROIEvent()
358 mHalCamCtrl->mFace[idx].score = roi.d.data.face.score; in notifyROIEvent()
361 mHalCamCtrl->mFace[idx].rect[0] = in notifyROIEvent()
364 mHalCamCtrl->mFace[idx].rect[1] = in notifyROIEvent()
367 mHalCamCtrl->mFace[idx].rect[2] = mHalCamCtrl->mFace[idx].rect[0] + in notifyROIEvent()
370 mHalCamCtrl->mFace[idx].rect[3] = mHalCamCtrl->mFace[idx].rect[1] + in notifyROIEvent()
374 mHalCamCtrl->mFace[idx].left_eye[0] = in notifyROIEvent()
[all …]
DQCameraHWI_Preview_7x27A.cpp263 int idx = roi.d.data.idx; in notifyROIEvent() local
264 if (idx >= mHalCamCtrl->mMetadata.number_of_faces) { in notifyROIEvent()
266 … ALOGE("%s: idx %d out of boundary %d", __func__, idx, mHalCamCtrl->mMetadata.number_of_faces); in notifyROIEvent()
270 mHalCamCtrl->mFace[idx].id = roi.d.data.face.id; in notifyROIEvent()
271 mHalCamCtrl->mFace[idx].score = roi.d.data.face.score / 10; // keep within range 0~100 in notifyROIEvent()
274 mHalCamCtrl->mFace[idx].rect[0] = in notifyROIEvent()
277 mHalCamCtrl->mFace[idx].rect[1] = in notifyROIEvent()
280 mHalCamCtrl->mFace[idx].rect[2] = mHalCamCtrl->mFace[idx].rect[0] + in notifyROIEvent()
283 mHalCamCtrl->mFace[idx].rect[3] = mHalCamCtrl->mFace[idx].rect[1] + in notifyROIEvent()
287 mHalCamCtrl->mFace[idx].left_eye[0] = in notifyROIEvent()
[all …]
DQCameraHWI_Still.cpp1422 ALOGV("<DEBUG> Liveshot buffer idx:%d",frame->def.idx); in takePictureLiveshot()
1424 frame->snapshot.main.idx = frame->def.idx; in takePictureLiveshot()
1426 frame->snapshot.thumbnail.idx = frame->def.idx; in takePictureLiveshot()
1428 ALOGV("<DEBUG> Liveshot buffer idx:%d",frame->video.video.idx); in takePictureLiveshot()
1430 frame->snapshot.main.idx = frame->video.video.idx; in takePictureLiveshot()
1432 frame->snapshot.thumbnail.idx = frame->video.video.idx; in takePictureLiveshot()
1520 … dataCb(CAMERA_MSG_RAW_IMAGE, mHalCamCtrl->mRecordingMemory.camera_memory[frame->video.video.idx], in takePictureLiveshot()
1632 recvd_frame->snapshot.main.idx); in encodeData()
1960 buf_index = recvd_frame->def.idx; in receiveRawPicture()
2658 … mHalCamCtrl->sendUnMappingBuf(MSM_V4L2_EXT_CAPTURE_MODE_MAIN, frame->snapshot.main.idx, mCameraId, in notifyWDenoiseEvent()
[all …]
/device/generic/goldfish/opengl/system/egl/
DClientAPIExts.cpp64 void initClientFuncs(const EGLClient_glesInterface *iface, int idx) in initClientFuncs() argument
67 s_client_extensions[idx].fname = \ in initClientFuncs()
76 memset(&s_client_extensions[idx], 0, sizeof(struct _ext_table)); in initClientFuncs()
98 int idx = (int)thread->currentContext->version - 1; \
99 if (!s_client_extensions[idx].fname) { \
102 (*s_client_extensions[idx].fname) args; \
112 int idx = (int)thread->currentContext->version - 1; \
113 if (!s_client_extensions[idx].fname) { \
116 return (*s_client_extensions[idx].fname) args; \
DClientAPIExts.h24 void initClientFuncs(const EGLClient_glesInterface *iface, int idx);
/device/lge/mako/camera/QCamera/stack/mm-camera-interface/src/
Dmm_camera_thread.c245 uint8_t idx = 0; in mm_camera_poll_thread_add_poll_fd() local
249 idx = mm_camera_util_get_index_by_handler(handler); in mm_camera_poll_thread_add_poll_fd()
252 idx = 0; in mm_camera_poll_thread_add_poll_fd()
255 if (MM_CAMEAR_STRAEM_NUM_MAX > idx) { in mm_camera_poll_thread_add_poll_fd()
256 poll_cb->poll_entries[idx].fd = fd; in mm_camera_poll_thread_add_poll_fd()
257 poll_cb->poll_entries[idx].handler = handler; in mm_camera_poll_thread_add_poll_fd()
258 poll_cb->poll_entries[idx].notify_cb = notify_cb; in mm_camera_poll_thread_add_poll_fd()
259 poll_cb->poll_entries[idx].user_data = userdata; in mm_camera_poll_thread_add_poll_fd()
264 __func__, handler, idx); in mm_camera_poll_thread_add_poll_fd()
273 uint8_t idx = 0; in mm_camera_poll_thread_del_poll_fd() local
[all …]
Dmm_camera_channel.c645 uint8_t idx = 0; in mm_channel_add_stream() local
651 for (idx = 0; idx < MM_CAMEAR_STRAEM_NUM_MAX; idx++) { in mm_channel_add_stream()
652 if (MM_STREAM_STATE_NOTUSED == my_obj->streams[idx].state) { in mm_channel_add_stream()
653 stream_obj = &my_obj->streams[idx]; in mm_channel_add_stream()
664 stream_obj->my_hdl = mm_camera_util_generate_handler(idx); in mm_channel_add_stream()
1227 uint8_t idx; in mm_channel_reg_stream_cb() local
1232 for (idx=0; idx < MM_CAMEAR_STRAEM_NUM_MAX; idx++) { in mm_channel_reg_stream_cb()
1233 if (my_obj->streams[idx].state != MM_STREAM_STATE_NOTUSED && in mm_channel_reg_stream_cb()
1234 my_obj->streams[idx].ext_image_mode == ext_image_mode && in mm_channel_reg_stream_cb()
1235 my_obj->streams[idx].sensor_idx == sensor_idx) { in mm_channel_reg_stream_cb()
[all …]
/device/moto/shamu/camera/QCamera/stack/mm-camera-interface/src/
Dmm_camera_thread.c244 uint8_t idx = 0; in mm_camera_poll_thread_add_poll_fd() local
248 idx = mm_camera_util_get_index_by_handler(handler); in mm_camera_poll_thread_add_poll_fd()
251 idx = 0; in mm_camera_poll_thread_add_poll_fd()
254 if (MM_CAMEAR_STRAEM_NUM_MAX > idx) { in mm_camera_poll_thread_add_poll_fd()
255 poll_cb->poll_entries[idx].fd = fd; in mm_camera_poll_thread_add_poll_fd()
256 poll_cb->poll_entries[idx].handler = handler; in mm_camera_poll_thread_add_poll_fd()
257 poll_cb->poll_entries[idx].notify_cb = notify_cb; in mm_camera_poll_thread_add_poll_fd()
258 poll_cb->poll_entries[idx].user_data = userdata; in mm_camera_poll_thread_add_poll_fd()
263 __func__, handler, idx); in mm_camera_poll_thread_add_poll_fd()
272 uint8_t idx = 0; in mm_camera_poll_thread_del_poll_fd() local
[all …]
Dmm_camera_channel.c765 uint8_t idx = 0; in mm_channel_add_stream() local
771 for (idx = 0; idx < MM_CAMEAR_STRAEM_NUM_MAX; idx++) { in mm_channel_add_stream()
772 if (MM_STREAM_STATE_NOTUSED == my_obj->streams[idx].state) { in mm_channel_add_stream()
773 stream_obj = &my_obj->streams[idx]; in mm_channel_add_stream()
784 stream_obj->my_hdl = mm_camera_util_generate_handler(idx); in mm_channel_add_stream()
1320 uint8_t idx; in mm_channel_reg_stream_cb() local
1325 for (idx=0; idx < MM_CAMEAR_STRAEM_NUM_MAX; idx++) { in mm_channel_reg_stream_cb()
1326 if (my_obj->streams[idx].state != MM_STREAM_STATE_NOTUSED && in mm_channel_reg_stream_cb()
1327 my_obj->streams[idx].ext_image_mode == ext_image_mode && in mm_channel_reg_stream_cb()
1328 my_obj->streams[idx].sensor_idx == sensor_idx) { in mm_channel_reg_stream_cb()
[all …]
/device/lge/mako/camera/QCamera/HAL/core/src/
DQCameraHWI_Preview.cpp418 int idx = roi.d.data.idx; in notifyROIEvent() local
419 if (idx >= mHalCamCtrl->mMetadata.number_of_faces) { in notifyROIEvent()
421 … LOGE("%s: idx %d out of boundary %d", __func__, idx, mHalCamCtrl->mMetadata.number_of_faces); in notifyROIEvent()
425 mHalCamCtrl->mFace[idx].id = roi.d.data.face.id; in notifyROIEvent()
426 mHalCamCtrl->mFace[idx].score = roi.d.data.face.score; in notifyROIEvent()
429 mHalCamCtrl->mFace[idx].rect[0] = in notifyROIEvent()
432 mHalCamCtrl->mFace[idx].rect[1] = in notifyROIEvent()
435 mHalCamCtrl->mFace[idx].rect[2] = mHalCamCtrl->mFace[idx].rect[0] + in notifyROIEvent()
438 mHalCamCtrl->mFace[idx].rect[3] = mHalCamCtrl->mFace[idx].rect[1] + in notifyROIEvent()
442 mHalCamCtrl->mFace[idx].left_eye[0] = in notifyROIEvent()
[all …]
/device/moto/shamu/camera/QCamera/HAL/core/src/
DQCameraHWI_Preview.cpp353 int idx = roi.d.data.idx; in notifyROIEvent() local
354 if (idx >= mHalCamCtrl->mMetadata.number_of_faces) { in notifyROIEvent()
357 __func__, idx, mHalCamCtrl->mMetadata.number_of_faces); in notifyROIEvent()
361 mHalCamCtrl->mFace[idx].id = roi.d.data.face.id; in notifyROIEvent()
362 mHalCamCtrl->mFace[idx].score = roi.d.data.face.score; in notifyROIEvent()
365 mHalCamCtrl->mFace[idx].rect[0] = in notifyROIEvent()
368 mHalCamCtrl->mFace[idx].rect[1] = in notifyROIEvent()
371 mHalCamCtrl->mFace[idx].rect[2] = mHalCamCtrl->mFace[idx].rect[0] + in notifyROIEvent()
374 mHalCamCtrl->mFace[idx].rect[3] = mHalCamCtrl->mFace[idx].rect[1] + in notifyROIEvent()
378 mHalCamCtrl->mFace[idx].left_eye[0] = in notifyROIEvent()
[all …]
/device/asus/flo/camera/QCamera2/stack/mm-camera-interface/src/
Dmm_camera_thread.c383 uint8_t idx = 0; in mm_camera_poll_thread_add_poll_fd() local
387 idx = mm_camera_util_get_index_by_handler(handler); in mm_camera_poll_thread_add_poll_fd()
390 idx = 0; in mm_camera_poll_thread_add_poll_fd()
393 if (MAX_STREAM_NUM_IN_BUNDLE > idx) { in mm_camera_poll_thread_add_poll_fd()
394 poll_cb->poll_entries[idx].fd = fd; in mm_camera_poll_thread_add_poll_fd()
395 poll_cb->poll_entries[idx].handler = handler; in mm_camera_poll_thread_add_poll_fd()
396 poll_cb->poll_entries[idx].notify_cb = notify_cb; in mm_camera_poll_thread_add_poll_fd()
397 poll_cb->poll_entries[idx].user_data = userdata; in mm_camera_poll_thread_add_poll_fd()
406 __func__, handler, idx); in mm_camera_poll_thread_add_poll_fd()
428 uint8_t idx = 0; in mm_camera_poll_thread_del_poll_fd() local
[all …]
/device/moto/shamu/camera/QCamera2/stack/mm-camera-interface/src/
Dmm_camera_thread.c413 uint8_t idx = 0; in mm_camera_poll_thread_add_poll_fd() local
417 idx = mm_camera_util_get_index_by_handler(handler); in mm_camera_poll_thread_add_poll_fd()
420 idx = 0; in mm_camera_poll_thread_add_poll_fd()
423 if (MAX_STREAM_NUM_IN_BUNDLE > idx) { in mm_camera_poll_thread_add_poll_fd()
424 poll_cb->poll_entries[idx].fd = fd; in mm_camera_poll_thread_add_poll_fd()
425 poll_cb->poll_entries[idx].handler = handler; in mm_camera_poll_thread_add_poll_fd()
426 poll_cb->poll_entries[idx].notify_cb = notify_cb; in mm_camera_poll_thread_add_poll_fd()
427 poll_cb->poll_entries[idx].user_data = userdata; in mm_camera_poll_thread_add_poll_fd()
436 __func__, handler, idx); in mm_camera_poll_thread_add_poll_fd()
460 uint8_t idx = 0; in mm_camera_poll_thread_del_poll_fd() local
[all …]
/device/lge/hammerhead/camera/QCamera2/stack/mm-camera-interface/src/
Dmm_camera_thread.c407 uint8_t idx = 0; in mm_camera_poll_thread_add_poll_fd() local
411 idx = mm_camera_util_get_index_by_handler(handler); in mm_camera_poll_thread_add_poll_fd()
414 idx = 0; in mm_camera_poll_thread_add_poll_fd()
417 if (MAX_STREAM_NUM_IN_BUNDLE > idx) { in mm_camera_poll_thread_add_poll_fd()
418 poll_cb->poll_entries[idx].fd = fd; in mm_camera_poll_thread_add_poll_fd()
419 poll_cb->poll_entries[idx].handler = handler; in mm_camera_poll_thread_add_poll_fd()
420 poll_cb->poll_entries[idx].notify_cb = notify_cb; in mm_camera_poll_thread_add_poll_fd()
421 poll_cb->poll_entries[idx].user_data = userdata; in mm_camera_poll_thread_add_poll_fd()
430 __func__, handler, idx); in mm_camera_poll_thread_add_poll_fd()
454 uint8_t idx = 0; in mm_camera_poll_thread_del_poll_fd() local
[all …]
/device/moto/shamu/camera/QCamera2/stack/mm-jpeg-interface/test/
Dmm_jpeg_test.c221 int mm_jpeg_test_read(mm_jpeg_intf_test_t *p_obj, int idx) in mm_jpeg_test_read() argument
226 fp = fopen(p_obj->filename[idx], "rb"); in mm_jpeg_test_read()
235 __func__, __LINE__, file_size, p_obj->input[idx].size); in mm_jpeg_test_read()
237 if (p_obj->input[idx].size > file_size) { in mm_jpeg_test_read()
242 fread(p_obj->input[idx].addr, 1, p_obj->input[idx].size, fp); in mm_jpeg_test_read()
480 int idx = 0; in mm_jpeg_test_get_input() local
493 for (idx = optind - 1; idx < argc; idx++) { in mm_jpeg_test_get_input()
494 if (argv[idx][0] == '-') { in mm_jpeg_test_get_input()
497 in_files[in_file_cnt++] = argv[idx]; in mm_jpeg_test_get_input()
499 optind = idx -1; in mm_jpeg_test_get_input()
[all …]
/device/generic/goldfish/opengl/shared/OpenglCodecCommon/
DGLSharedGroup.cpp258 ssize_t idx = m_buffers.indexOfKey(bufferId); in updateBufferData() local
259 if (idx >= 0) { in updateBufferData()
260 delete m_buffers.valueAt(idx); in updateBufferData()
261 m_buffers.editValueAt(idx) = new BufferData(size, data); in updateBufferData()
281 ssize_t idx = m_buffers.indexOfKey(bufferId); in deleteBufferData() local
282 if (idx >= 0) { in deleteBufferData()
283 delete m_buffers.valueAt(idx); in deleteBufferData()
284 m_buffers.removeItemsAt(idx); in deleteBufferData()
335 ssize_t idx = m_shaders.indexOfKey(shader); in attachShader() local
336 if (programData && idx >= 0) { in attachShader()
[all …]
/device/lge/hammerhead/camera/QCamera2/HAL3/
DQCamera3HWI.cpp958 ssize_t idx = 0; in validateCaptureRequest() local
991 __func__, frameNumber, idx); in validateCaptureRequest()
996 __func__, frameNumber, idx); in validateCaptureRequest()
1001 __func__, frameNumber, idx); in validateCaptureRequest()
1006 __func__, frameNumber, idx); in validateCaptureRequest()
1018 __func__, frameNumber, idx); in validateCaptureRequest()
1023 __func__, frameNumber, idx); in validateCaptureRequest()
1028 __func__, frameNumber, idx); in validateCaptureRequest()
1033 __func__, frameNumber, idx); in validateCaptureRequest()
1036 idx++; in validateCaptureRequest()
[all …]
/device/moto/shamu/camera/QCamera2/HAL3/
DQCamera3HWI.cpp1261 ssize_t idx = 0; in validateCaptureRequest() local
1294 __func__, frameNumber, (long)idx); in validateCaptureRequest()
1299 __func__, frameNumber, (long)idx); in validateCaptureRequest()
1304 __func__, frameNumber, (long)idx); in validateCaptureRequest()
1309 __func__, frameNumber, (long)idx); in validateCaptureRequest()
1321 __func__, frameNumber, (long)idx); in validateCaptureRequest()
1326 __func__, frameNumber, (long)idx); in validateCaptureRequest()
1331 __func__, frameNumber, (long)idx); in validateCaptureRequest()
1336 __func__, frameNumber, (long)idx); in validateCaptureRequest()
1341 __func__, frameNumber, (long)idx); in validateCaptureRequest()
[all …]
/device/lge/hammerhead/camera/mm-image-codec/qomx_core/
Dqomx_core.c137 int idx = -1, i = 0; in get_free_inst_idx() local
141 idx = i; in get_free_inst_idx()
145 return idx; in get_free_inst_idx()
/device/moto/shamu/camera/mm-image-codec/qomx_core/
Dqomx_core.c155 int idx = -1, i = 0; in get_free_inst_idx() local
159 idx = i; in get_free_inst_idx()
163 return idx; in get_free_inst_idx()
/device/asus/flo/camera/mm-image-codec/qomx_core/
Dqomx_core.c137 int idx = -1, i = 0; in get_free_inst_idx() local
141 idx = i; in get_free_inst_idx()
145 return idx; in get_free_inst_idx()
/device/lge/mako/camera/QCamera/stack/mm-jpeg-interface/src/
Dmm_jpeg.c827 uint8_t idx; in mm_jpeg_new_client() local
834 for (idx = 0; idx < MAX_JPEG_CLIENT_NUM; idx++) { in mm_jpeg_new_client()
835 if (0 == my_obj->clnt_mgr[idx].is_used) { in mm_jpeg_new_client()
840 if (idx < MAX_JPEG_CLIENT_NUM) { in mm_jpeg_new_client()
843 client_hdl = mm_jpeg_util_generate_handler(idx); in mm_jpeg_new_client()
846 my_obj->clnt_mgr[idx].is_used = 1; in mm_jpeg_new_client()
847 my_obj->clnt_mgr[idx].client_handle = client_hdl; in mm_jpeg_new_client()

123