add API for thread boosting
[platform/core/multimedia/libmm-camcorder.git] / src / mm_camcorder_stillshot.c
index df2dcd7..8bd9bf2 100644 (file)
 #include <libexif/exif-utils.h>
 #include <libexif/exif-data.h>
 
+#ifdef _MMCAMCORDER_CAMERA_BOOST_SUPPORT
+#include "mm_camcorder_boost.h"
+#endif /* _MMCAMCORDER_CAMERA_BOOST_SUPPORT */
+
+
 /*---------------------------------------------------------------------------------------
 |    GLOBAL VARIABLE DEFINITIONS for internal                                          |
 ---------------------------------------------------------------------------------------*/
@@ -1203,6 +1208,10 @@ static int __mmcamcorder_image_cmd_preview_start(MMHandleType handle)
 
                        MMCAM_LOG_INFO("sound status %d", info->sound_status);
                }
+
+#ifdef _MMCAMCORDER_CAMERA_BOOST_SUPPORT
+               _mmcamcorder_start_boosting();
+#endif /* _MMCAMCORDER_CAMERA_BOOST_SUPPORT */
        }
 
 cmd_error:
@@ -1323,6 +1332,11 @@ int _mmcamcorder_video_capture_command(MMHandleType handle, int command)
                break;
        case _MMCamcorder_CMD_PREVIEW_STOP:
                ret = __mmcamcorder_image_cmd_preview_stop(handle);
+
+#ifdef _MMCAMCORDER_CAMERA_BOOST_SUPPORT
+               _mmcamcorder_stop_boosting();
+#endif /*_MMCAMCORDER_CAMERA_BOOST_SUPPORT */
+
                break;
        case _MMCamcorder_CMD_RECORD:
        case _MMCamcorder_CMD_PAUSE: