void Pipeline::setVideoMode() { g_object_set(camerabin, "mode", 1, NULL); // set auto scene mode gst_photography_set_scene_mode(GST_PHOTOGRAPHY(videoSrc), GST_PHOTOGRAPHY_SCENE_MODE_AUTO); // disable autofocus gst_photography_set_autofocus (GST_PHOTOGRAPHY(videoSrc), FALSE); // disable flash g_object_set(videoSrc, "video-torch", FALSE, NULL); }
static void gst_camerabin_set_autofocus (GstPhotography * photo, gboolean on) { GstCameraBin *camera; g_return_if_fail (photo != NULL); camera = GST_CAMERABIN (photo); GST_DEBUG_OBJECT (camera, "setting autofocus %s", on ? "ON" : "OFF"); if (PHOTOGRAPHY_IS_OK (camera->src_vid_src)) { gst_photography_set_autofocus (GST_PHOTOGRAPHY (camera->src_vid_src), on); } }
void CameraBinFocus::_q_stopFocusing() { gst_photography_set_autofocus(m_session->photography(), FALSE); _q_setFocusStatus(QCamera::Unlocked, QCamera::UserRequest); }
void CameraBinFocus::_q_startFocusing() { _q_setFocusStatus(QCamera::Searching, QCamera::UserRequest); gst_photography_set_autofocus(m_session->photography(), TRUE); }