Lines Matching refs:cam_id
41 int mm_app_start_preview(int cam_id);
42 int mm_app_start_preview_zsl(int cam_id);
43 int mm_app_stop_preview_zsl(int cam_id);
44 int mm_app_stop_preview_stats(int cam_id);
45 int mm_app_start_preview_stats(int cam_id);
53 extern int mm_app_unprepare_video(int cam_id);
125 int mm_app_set_preview_fmt(int cam_id,mm_camera_image_fmt_t *fmt)
128 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
137 int mm_app_set_aec_stats_fmt(int cam_id,mm_camera_image_fmt_t *fmt)
140 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
149 int mm_app_set_awb_stats_fmt(int cam_id,mm_camera_image_fmt_t *fmt)
152 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
161 int mm_app_set_af_stats_fmt(int cam_id,mm_camera_image_fmt_t *fmt)
164 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
174 int mm_app_set_ihist_stats_fmt(int cam_id,mm_camera_image_fmt_t *fmt)
177 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
215 int mm_app_open_camera(int cam_id)
219 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
225 if (MM_CAMERA_OK != (rc = mm_app_stop_preview(cam_id))) {
232 if (MM_CAMERA_OK != (rc = mm_app_start_preview(cam_id))) {
243 int mm_app_open_camera_stats(int cam_id)
247 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
253 if (MM_CAMERA_OK != (rc = mm_app_stop_preview_stats(cam_id))) {
260 if (MM_CAMERA_OK != (rc = mm_app_start_preview_stats(cam_id))) {
271 int mm_app_open_zsl(int cam_id)
275 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
281 if (MM_CAMERA_OK != (rc = mm_app_stop_preview(cam_id))) {
288 if (MM_CAMERA_OK != (rc = mm_app_start_preview_zsl(cam_id))) {
798 int mm_app_prepare_stats(int cam_id)
804 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
822 mm_app_set_aec_stats_fmt(cam_id,&pme->stream[MM_CAMERA_SAEC].str_config.fmt);
844 mm_app_set_awb_stats_fmt(cam_id,&pme->stream[MM_CAMERA_SAWB].str_config.fmt);
867 mm_app_set_af_stats_fmt(cam_id,&pme->stream[MM_CAMERA_SAFC].str_config.fmt);
890 mm_app_set_ihist_stats_fmt(cam_id,&pme->stream[MM_CAMERA_IHST].str_config.fmt);
904 int mm_app_prepare_preview(int cam_id)
910 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
935 mm_app_set_preview_fmt(cam_id,&pme->stream[MM_CAMERA_PREVIEW].str_config.fmt);
948 int mm_app_unprepare_preview(int cam_id)
954 int mm_app_streamon_stats(int cam_id)
958 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
998 int mm_app_streamon_preview(int cam_id)
1002 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
1019 int mm_app_prepare_preview_zsl(int cam_id)
1025 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
1046 mm_app_set_preview_fmt(cam_id,&pme->stream[MM_CAMERA_PREVIEW].str_config.fmt);
1070 mm_app_set_snapshot_fmt(cam_id,&pme->stream[MM_CAMERA_SNAPSHOT_MAIN].str_config.fmt);
1083 int mm_app_streamon_preview_zsl(int cam_id)
1089 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
1141 int mm_app_start_preview(int cam_id)
1145 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
1162 if (MM_CAMERA_OK != (rc = mm_app_prepare_preview(cam_id))) {
1167 if (MM_CAMERA_OK != (rc = mm_app_streamon_preview(cam_id))) {
1176 int mm_app_start_preview_stats(int cam_id)
1180 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
1197 if (MM_CAMERA_OK != (rc = mm_app_prepare_stats(cam_id))) {
1202 if (MM_CAMERA_OK != (rc = mm_app_prepare_preview(cam_id))) {
1207 if (MM_CAMERA_OK != (rc = mm_app_streamon_stats(cam_id))) {
1212 if (MM_CAMERA_OK != (rc = mm_app_streamon_preview(cam_id))) {
1222 int mm_app_start_preview_zsl(int cam_id)
1226 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
1242 if (MM_CAMERA_OK != (rc = mm_app_prepare_preview_zsl(cam_id))) {
1247 if (MM_CAMERA_OK != (rc = mm_app_streamon_preview_zsl(cam_id))) {
1252 /*if(MM_CAMERA_OK != (rc = mm_app_bundle_zsl_stream(cam_id))){
1262 static int mm_app_streamoff_stats(int cam_id)
1267 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
1331 static int mm_app_streamoff_preview(int cam_id)
1336 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
1357 static int mm_app_streamoff_preview_zsl(int cam_id)
1362 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
1394 int startPreview(int cam_id)
1398 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
1405 if (MM_CAMERA_OK != mm_app_stop_video(cam_id)) {
1410 if (MM_CAMERA_OK != mm_app_open_camera(cam_id)) {
1421 if (MM_CAMERA_OK != (rc = mm_app_start_preview(cam_id))) {
1430 int stopPreview(int cam_id)
1433 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
1438 if (MM_CAMERA_OK != (rc = mm_app_stop_preview(cam_id))) {
1443 if (MM_CAMERA_OK != (rc = mm_app_stop_preview_zsl(cam_id))) {
1448 if (MM_CAMERA_OK != (rc = mm_app_stop_preview(cam_id))) {
1452 mm_app_unprepare_video(cam_id);
1458 int startStats(int cam_id)
1462 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
1469 if (MM_CAMERA_OK != mm_app_stop_video(cam_id)) {
1474 if (MM_CAMERA_OK != mm_app_open_camera_stats(cam_id)) {
1485 if (MM_CAMERA_OK != (rc = mm_app_start_preview_stats(cam_id))) {
1494 int stopStats(int cam_id)
1497 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
1502 if (MM_CAMERA_OK != (rc = mm_app_stop_preview_stats(cam_id))) {
1507 if (MM_CAMERA_OK != (rc = mm_app_stop_preview_zsl(cam_id))) {
1512 if (MM_CAMERA_OK != (rc = mm_app_stop_preview_stats(cam_id))) {
1516 mm_app_unprepare_video(cam_id);
1522 int mm_app_stop_preview(int cam_id)
1526 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
1528 if (MM_CAMERA_OK != (rc = mm_app_streamoff_preview(cam_id))) {
1542 int mm_app_stop_preview_stats(int cam_id)
1546 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
1548 if (MM_CAMERA_OK != (rc = mm_app_streamoff_stats(cam_id))) {
1552 if (MM_CAMERA_OK != (rc = mm_app_streamoff_preview(cam_id))) {
1566 int mm_app_stop_preview_zsl(int cam_id)
1570 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id);
1572 if (MM_CAMERA_OK != (rc = mm_app_streamoff_preview_zsl(cam_id))) {