• Home
  • Raw
  • Download

Lines Matching refs:camera

446 static GstElement *camera;  variable
463 static GstMessage *wait_for_element_message (GstElement * camera,
531 GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS (GST_BIN (camera), in capture_bus_cb()
547 GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS (GST_BIN (camera), in capture_bus_cb()
580 check_preview_image (GstElement * camera, const gchar * filename, gint index) in check_preview_image() argument
584 if (!preview_sample && camera) { in check_preview_image()
585 GstMessage *msg = wait_for_element_message (camera, in check_preview_image()
649 camera = gst_check_setup_element ("camerabin"); in setup_camerabin_common()
650 fail_unless (camera != NULL, "failed to create camerabin element"); in setup_camerabin_common()
652 bus = gst_pipeline_get_bus (GST_PIPELINE (camera)); in setup_camerabin_common()
689 g_object_set (G_OBJECT (camera), "camera-source", src, "preview-caps", in setup_wrappercamerabinsrc_videotestsrc()
695 vfbin = gst_bin_get_by_name (GST_BIN (camera), "vf-bin"); in setup_wrappercamerabinsrc_videotestsrc()
730 g_object_set (G_OBJECT (camera), "camera-source", src, "preview-caps", in setup_test_camerasrc()
736 vfbin = gst_bin_get_by_name (GST_BIN (camera), "vf-bin"); in setup_test_camerasrc()
747 gst_element_set_state (camera, GST_STATE_NULL); in teardown()
749 if (camera) in teardown()
750 gst_check_teardown_element (camera); in teardown()
751 camera = NULL; in teardown()
934 wait_for_element_message (GstElement * camera, const gchar * name, in wait_for_element_message() argument
937 GstBus *bus = gst_pipeline_get_bus (GST_PIPELINE (camera)); in wait_for_element_message()
987 g_object_get (camera, "idle", &idle, NULL); in wait_for_idle_state()
1002 if (!camera) in run_single_image_capture_test()
1006 g_object_set (camera, "mode", 1, "location", image_filename, NULL); in run_single_image_capture_test()
1009 g_object_set (camera, "viewfinder-caps", viewfinder_caps, NULL); in run_single_image_capture_test()
1011 g_object_set (camera, "image-capture-caps", image_caps, NULL); in run_single_image_capture_test()
1013 if (gst_element_set_state (GST_ELEMENT (camera), GST_STATE_PLAYING) == in run_single_image_capture_test()
1016 gst_element_set_state (GST_ELEMENT (camera), GST_STATE_NULL); in run_single_image_capture_test()
1017 gst_object_unref (camera); in run_single_image_capture_test()
1018 camera = NULL; in run_single_image_capture_test()
1021 fail_unless (camera != NULL); in run_single_image_capture_test()
1022 g_object_get (camera, "idle", &idle, NULL); in run_single_image_capture_test()
1024 g_signal_emit_by_name (camera, "start-capture", NULL); in run_single_image_capture_test()
1026 msg = wait_for_element_message (camera, "image-done", GST_CLOCK_TIME_NONE); in run_single_image_capture_test()
1031 check_preview_image (camera, image_filename, 0); in run_single_image_capture_test()
1034 gst_element_set_state (GST_ELEMENT (camera), GST_STATE_NULL); in run_single_image_capture_test()
1070 if (!camera) in GST_START_TEST()
1074 g_object_set (camera, "mode", 1, "location", image_filename, NULL); in GST_START_TEST()
1076 if (gst_element_set_state (GST_ELEMENT (camera), GST_STATE_PLAYING) == in GST_START_TEST()
1079 gst_element_set_state (GST_ELEMENT (camera), GST_STATE_NULL); in GST_START_TEST()
1080 gst_object_unref (camera); in GST_START_TEST()
1081 camera = NULL; in GST_START_TEST()
1083 fail_unless (camera != NULL); in GST_START_TEST()
1084 g_object_get (camera, "idle", &idle, NULL); in GST_START_TEST()
1095 g_object_set (camera, "image-capture-caps", caps, NULL); in GST_START_TEST()
1098 g_signal_emit_by_name (camera, "start-capture", NULL); in GST_START_TEST()
1100 msg = wait_for_element_message (camera, "image-done", GST_CLOCK_TIME_NONE); in GST_START_TEST()
1105 check_preview_image (camera, image_filename, i); in GST_START_TEST()
1109 gst_element_set_state (GST_ELEMENT (camera), GST_STATE_NULL); in GST_START_TEST()
1123 if (!camera) in GST_START_TEST()
1127 g_object_set (camera, "mode", 2, "location", video_filename, NULL); in GST_START_TEST()
1129 if (gst_element_set_state (GST_ELEMENT (camera), GST_STATE_PLAYING) == in GST_START_TEST()
1132 gst_element_set_state (GST_ELEMENT (camera), GST_STATE_NULL); in GST_START_TEST()
1133 gst_object_unref (camera); in GST_START_TEST()
1134 camera = NULL; in GST_START_TEST()
1138 fail_unless (camera != NULL); in GST_START_TEST()
1139 g_object_get (camera, "idle", &idle, NULL); in GST_START_TEST()
1141 g_signal_emit_by_name (camera, "start-capture", NULL); in GST_START_TEST()
1143 g_object_get (camera, "idle", &idle, NULL); in GST_START_TEST()
1151 g_signal_emit_by_name (camera, "stop-capture", NULL); in GST_START_TEST()
1153 check_preview_image (camera, video_filename, 0); in GST_START_TEST()
1155 msg = wait_for_element_message (camera, "video-done", GST_CLOCK_TIME_NONE); in GST_START_TEST()
1160 gst_element_set_state (GST_ELEMENT (camera), GST_STATE_NULL); in GST_START_TEST()
1177 if (!camera) in GST_START_TEST()
1181 g_object_set (camera, "mode", 2, "location", video_filename, NULL); in GST_START_TEST()
1183 if (gst_element_set_state (GST_ELEMENT (camera), GST_STATE_PLAYING) == in GST_START_TEST()
1186 gst_element_set_state (GST_ELEMENT (camera), GST_STATE_NULL); in GST_START_TEST()
1187 gst_object_unref (camera); in GST_START_TEST()
1188 camera = NULL; in GST_START_TEST()
1192 fail_unless (camera != NULL); in GST_START_TEST()
1193 g_object_get (camera, "idle", &idle, NULL); in GST_START_TEST()
1203 g_object_set (camera, "video-capture-caps", caps, NULL); in GST_START_TEST()
1208 g_signal_emit_by_name (camera, "start-capture", NULL); in GST_START_TEST()
1210 g_object_get (camera, "idle", &idle, NULL); in GST_START_TEST()
1218 g_signal_emit_by_name (camera, "stop-capture", NULL); in GST_START_TEST()
1220 msg = wait_for_element_message (camera, "video-done", GST_CLOCK_TIME_NONE); in GST_START_TEST()
1225 check_preview_image (camera, video_filename, i); in GST_START_TEST()
1231 gst_element_set_state (GST_ELEMENT (camera), GST_STATE_NULL); in GST_START_TEST()
1246 if (!camera) in GST_START_TEST()
1249 if (gst_element_set_state (GST_ELEMENT (camera), GST_STATE_PLAYING) == in GST_START_TEST()
1252 gst_element_set_state (GST_ELEMENT (camera), GST_STATE_NULL); in GST_START_TEST()
1253 gst_object_unref (camera); in GST_START_TEST()
1254 camera = NULL; in GST_START_TEST()
1267 g_object_set (camera, "mode", 1, NULL); in GST_START_TEST()
1268 g_object_set (camera, "location", img_filename, NULL); in GST_START_TEST()
1269 g_signal_emit_by_name (camera, "start-capture", NULL); in GST_START_TEST()
1271 msg = wait_for_element_message (camera, "image-done", GST_CLOCK_TIME_NONE); in GST_START_TEST()
1275 check_preview_image (camera, img_filename, i); in GST_START_TEST()
1279 g_object_set (camera, "mode", 2, NULL); in GST_START_TEST()
1280 g_object_set (camera, "location", vid_filename, NULL); in GST_START_TEST()
1282 g_signal_emit_by_name (camera, "start-capture", NULL); in GST_START_TEST()
1286 g_signal_emit_by_name (camera, "stop-capture", NULL); in GST_START_TEST()
1288 msg = wait_for_element_message (camera, "video-done", GST_CLOCK_TIME_NONE); in GST_START_TEST()
1292 check_preview_image (camera, vid_filename, i); in GST_START_TEST()
1296 gst_element_set_state (GST_ELEMENT (camera), GST_STATE_NULL); in GST_START_TEST()
1316 if (!camera) in GST_START_TEST()
1320 g_object_set (camera, "mode", 1, "location", image_filename, NULL); in GST_START_TEST()
1322 if (gst_element_set_state (GST_ELEMENT (camera), GST_STATE_PLAYING) == in GST_START_TEST()
1325 gst_element_set_state (GST_ELEMENT (camera), GST_STATE_NULL); in GST_START_TEST()
1326 gst_object_unref (camera); in GST_START_TEST()
1327 camera = NULL; in GST_START_TEST()
1329 fail_unless (camera != NULL); in GST_START_TEST()
1339 g_object_set (camera, "preview-caps", caps, NULL); in GST_START_TEST()
1343 g_signal_emit_by_name (camera, "start-capture", NULL); in GST_START_TEST()
1345 msg = wait_for_element_message (camera, "image-done", GST_CLOCK_TIME_NONE); in GST_START_TEST()
1349 check_preview_image (camera, image_filename, i); in GST_START_TEST()
1358 gst_element_set_state (GST_ELEMENT (camera), GST_STATE_NULL); in GST_START_TEST()
1369 if (!camera) in GST_START_TEST()
1401 g_object_set (camera, "mode", 1, "location", image_filename, NULL); in GST_START_TEST()
1403 if (gst_element_set_state (GST_ELEMENT (camera), GST_STATE_PLAYING) == in GST_START_TEST()
1406 gst_element_set_state (GST_ELEMENT (camera), GST_STATE_NULL); in GST_START_TEST()
1407 gst_object_unref (camera); in GST_START_TEST()
1408 camera = NULL; in GST_START_TEST()
1410 fail_unless (camera != NULL); in GST_START_TEST()
1415 gst_tag_setter_merge_tags (GST_TAG_SETTER (camera), taglists[i], in GST_START_TEST()
1418 g_signal_emit_by_name (camera, "start-capture", NULL); in GST_START_TEST()
1420 msg = wait_for_element_message (camera, "image-done", GST_CLOCK_TIME_NONE); in GST_START_TEST()
1425 gst_element_set_state (GST_ELEMENT (camera), GST_STATE_NULL); in GST_START_TEST()
1442 if (!camera) in GST_START_TEST()
1450 g_object_set (camera, "mode", 2, "location", video_filename, NULL); in GST_START_TEST()
1467 GST_WARNING_OBJECT (camera, "Failed to create encoding profiles"); in GST_START_TEST()
1471 g_object_set (camera, "video-profile", profile, NULL); in GST_START_TEST()
1475 if (gst_element_set_state (GST_ELEMENT (camera), GST_STATE_PLAYING) == in GST_START_TEST()
1478 gst_element_set_state (GST_ELEMENT (camera), GST_STATE_NULL); in GST_START_TEST()
1479 gst_object_unref (camera); in GST_START_TEST()
1480 camera = NULL; in GST_START_TEST()
1482 fail_unless (camera != NULL); in GST_START_TEST()
1488 gst_tag_setter_merge_tags (GST_TAG_SETTER (camera), taglists[i], in GST_START_TEST()
1491 g_signal_emit_by_name (camera, "start-capture", NULL); in GST_START_TEST()
1496 g_signal_emit_by_name (camera, "stop-capture", NULL); in GST_START_TEST()
1498 msg = wait_for_element_message (camera, "video-done", GST_CLOCK_TIME_NONE); in GST_START_TEST()
1503 gst_element_set_state (GST_ELEMENT (camera), GST_STATE_NULL); in GST_START_TEST()
1521 if (!camera) in GST_START_TEST()
1525 g_object_set (camera, "camera-source", src, NULL); in GST_START_TEST()
1528 if (gst_element_set_state (GST_ELEMENT (camera), GST_STATE_PLAYING) == in GST_START_TEST()
1531 gst_element_set_state (GST_ELEMENT (camera), GST_STATE_NULL); in GST_START_TEST()
1532 gst_object_unref (camera); in GST_START_TEST()
1533 camera = NULL; in GST_START_TEST()
1535 g_assert (camera != NULL); in GST_START_TEST()
1538 g_object_get (G_OBJECT (camera), "video-capture-supported-caps", &padcaps, in GST_START_TEST()
1547 g_object_get (G_OBJECT (camera), "image-capture-supported-caps", &padcaps, in GST_START_TEST()
1555 gst_element_set_state (camera, GST_STATE_NULL); in GST_START_TEST()
1565 if (!camera) in GST_START_TEST()
1569 g_object_set (camera, "mode", 2, "location", video_filename, NULL); in GST_START_TEST()
1571 if (gst_element_set_state (GST_ELEMENT (camera), GST_STATE_PLAYING) == in GST_START_TEST()
1574 gst_element_set_state (GST_ELEMENT (camera), GST_STATE_NULL); in GST_START_TEST()
1575 gst_object_unref (camera); in GST_START_TEST()
1576 camera = NULL; in GST_START_TEST()
1580 fail_unless (camera != NULL); in GST_START_TEST()
1581 g_object_get (camera, "idle", &idle, NULL); in GST_START_TEST()
1583 g_signal_emit_by_name (camera, "start-capture", NULL); in GST_START_TEST()
1584 g_object_get (camera, "idle", &idle, NULL); in GST_START_TEST()
1588 g_signal_emit_by_name (camera, "start-capture", NULL); in GST_START_TEST()
1589 g_object_get (camera, "idle", &idle, NULL); in GST_START_TEST()
1597 g_signal_emit_by_name (camera, "stop-capture", NULL); in GST_START_TEST()
1599 msg = wait_for_element_message (camera, "video-done", GST_CLOCK_TIME_NONE); in GST_START_TEST()
1603 check_preview_image (camera, video_filename, 0); in GST_START_TEST()
1607 gst_element_set_state (GST_ELEMENT (camera), GST_STATE_NULL); in GST_START_TEST()
1626 if (!camera) in GST_START_TEST()
1649 g_object_set (camera, "mode", 1, in GST_START_TEST()
1658 if (gst_element_set_state (GST_ELEMENT (camera), GST_STATE_PLAYING) == in GST_START_TEST()
1661 gst_element_set_state (GST_ELEMENT (camera), GST_STATE_NULL); in GST_START_TEST()
1662 gst_object_unref (camera); in GST_START_TEST()
1663 camera = NULL; in GST_START_TEST()
1666 fail_unless (camera != NULL); in GST_START_TEST()
1667 g_signal_emit_by_name (camera, "start-capture", NULL); in GST_START_TEST()
1673 check_preview_image (camera, image_filename, 0); in GST_START_TEST()
1675 gst_element_set_state (GST_ELEMENT (camera), GST_STATE_NULL); in GST_START_TEST()
1699 if (!camera) in GST_START_TEST()
1728 g_object_set (camera, "mode", 2, in GST_START_TEST()
1738 if (gst_element_set_state (GST_ELEMENT (camera), GST_STATE_PLAYING) == in GST_START_TEST()
1741 gst_element_set_state (GST_ELEMENT (camera), GST_STATE_NULL); in GST_START_TEST()
1742 gst_object_unref (camera); in GST_START_TEST()
1743 camera = NULL; in GST_START_TEST()
1746 fail_unless (camera != NULL); in GST_START_TEST()
1747 g_signal_emit_by_name (camera, "start-capture", NULL); in GST_START_TEST()
1752 g_signal_emit_by_name (camera, "stop-capture", NULL); in GST_START_TEST()
1755 check_preview_image (camera, video_filename, 0); in GST_START_TEST()
1757 gst_element_set_state (GST_ELEMENT (camera), GST_STATE_NULL); in GST_START_TEST()
1779 g_object_set (camera, "location", filenames[capture_count], NULL); in image_location_switch_do_capture()
1780 g_signal_emit_by_name (camera, "start-capture", NULL); in image_location_switch_do_capture()
1816 if (!camera) in GST_START_TEST()
1819 g_object_get (camera, "camera-source", &src, NULL); in GST_START_TEST()
1827 g_object_set (camera, "mode", 1, NULL); in GST_START_TEST()
1830 g_object_set (camera, "image-capture-caps", caps, NULL); in GST_START_TEST()
1833 if (gst_element_set_state (GST_ELEMENT (camera), GST_STATE_PLAYING) == in GST_START_TEST()
1836 gst_element_set_state (GST_ELEMENT (camera), GST_STATE_NULL); in GST_START_TEST()
1837 gst_object_unref (camera); in GST_START_TEST()
1838 camera = NULL; in GST_START_TEST()
1840 fail_unless (camera != NULL); in GST_START_TEST()
1853 msg = wait_for_element_message (camera, "image-done", GST_CLOCK_TIME_NONE); in GST_START_TEST()
1866 gst_element_set_state (GST_ELEMENT (camera), GST_STATE_NULL); in GST_START_TEST()