Lines Matching refs:pme
56 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
59 //pme->cam->ops->get_parm(pme->cam->camera_handle,MM_CAMERA_PARM_DIMENSION, &dim);
73 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
75 if (pme->cam_mode == RDI_MODE) {
83 pme->cam_mode = RDI_MODE;
89 void rdi_cb_signal(mm_camera_app_obj_t *pme)
91 if (pme->cam_mode == RDI_MODE) {
101 mm_camera_app_obj_t *pme = NULL;
104 pme = (mm_camera_app_obj_t *)user_data;
108 //dumpFrameToFile(frame->frame,pme->dim.display_width,pme->dim.display_height,"preview", 1);
109 dumpFrameToFile(frame,pme->dim.rdi0_width,pme->dim.rdi0_height,"rdi", 1);
111 if (MM_CAMERA_OK != pme->cam->ops->qbuf(pme->cam->camera_handle,pme->ch_id,frame)) {
116 mm_camera_app_done(pme);
129 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
131 pme->mem_cam->get_buf = mm_stream_initbuf;
132 pme->mem_cam->put_buf = mm_stream_deinitbuf;
133 pme->mem_cam->user_data = pme;
135 //pme->cam->ops->set_parm(pme->cam->camera_handle,MM_CAMERA_PARM_CH_INTERFACE, &value);
136 //pme->cam->ops->get_parm(pme->cam->camera_handle,MM_CAMERA_PARM_CH_INTERFACE, &rdi_mode);
138 pme->stream[MM_CAMERA_RDI].id = pme->cam->ops->add_stream(pme->cam->camera_handle,pme->ch_id,
139 mm_app_rdi_notify_cb,pme,
142 if (!pme->stream[MM_CAMERA_RDI].id) {
147 CDBG("%s :Add RDI stream is successfull stream ID = %d",__func__,pme->stream[MM_CAMERA_RDI].id);
149 mm_app_set_rdi_fmt(cam_id,&pme->stream[MM_CAMERA_RDI].str_config.fmt);
150 pme->stream[MM_CAMERA_RDI].str_config.need_stream_on = 1;
151 pme->stream[MM_CAMERA_RDI].str_config.num_of_bufs = 7;
153 if (MM_CAMERA_OK != (rc = pme->cam->ops->config_stream(pme->cam->camera_handle,pme->ch_id,pme->stream[MM_CAMERA_RDI].id,
154 &pme->stream[MM_CAMERA_RDI].str_config))) {
160 pme->stream[MM_CAMERA_PREVIEW].id = pme->cam->ops->add_stream(pme->cam->camera_handle,pme->ch_id,
161 mm_app_preview_notify_cb,pme,
164 if (!pme->stream[MM_CAMERA_PREVIEW].id) {
170 CDBG("%s :Add stream is successfull stream ID = %d",__func__,pme->stream[MM_CAMERA_PREVIEW].id);
172 mm_app_set_preview_fmt(cam_id,&pme->stream[MM_CAMERA_PREVIEW].str_config.fmt);
173 pme->stream[MM_CAMERA_PREVIEW].str_config.need_stream_on = 1;
174 pme->stream[MM_CAMERA_PREVIEW].str_config.num_of_bufs = PREVIEW_BUF_NUM;
176 if (MM_CAMERA_OK != (rc = pme->cam->ops->config_stream(pme->cam->camera_handle,pme->ch_id,pme->stream[MM_CAMERA_PREVIEW].id,
177 &pme->stream[MM_CAMERA_PREVIEW].str_config))) {
197 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
202 stream[0] = pme->stream[MM_CAMERA_RDI].id;
203 stream[1] = pme->stream[MM_CAMERA_PREVIEW].id;
206 stream[0] = pme->stream[MM_CAMERA_RDI].id;
209 if (MM_CAMERA_OK != (rc = pme->cam->ops->start_streams(pme->cam->camera_handle,pme->ch_id,num_of_streams,&stream))) {
213 pme->cam_state = CAMERA_STATE_RDI;
223 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
226 CDBG("pme = %p, pme->cam =%p, pme->cam->camera_handle = %d",
227 pme,pme->cam,pme->cam->camera_handle);
229 if (pme->cam_state == CAMERA_STATE_RDI) {
254 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
258 stream[0] = pme->stream[MM_CAMERA_RDI].id;
259 stream[1] = pme->stream[MM_CAMERA_PREVIEW].id;
262 stream[0] = pme->stream[MM_CAMERA_RDI].id;
265 if (MM_CAMERA_OK != (rc = pme->cam->ops->stop_streams(pme->cam->camera_handle,pme->ch_id,num_of_streams,&stream))) {
271 if(MM_CAMERA_OK != (rc = pme->cam->ops->del_stream(pme->cam->camera_handle,pme->ch_id,pme->stream[MM_CAMERA_PREVIEW].id)))
277 if (MM_CAMERA_OK != (rc = pme->cam->ops->del_stream(pme->cam->camera_handle,pme->ch_id,pme->stream[MM_CAMERA_RDI].id))) {
282 pme->cam_state = CAMERA_STATE_OPEN;
293 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
297 if (pme->cam_mode == ZSL_MODE || pme->cam_mode == RECORDER_MODE || pme->cam_mode == CAMERA_MODE) {
298 switch (pme->cam_state) {
321 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);