#define CAPTURE_COUNT 3
#define VIDEO_DURATION 5
-#define VIDEO_PAD_SUPPORTED_CAPS "video/x-raw, format=rgb, width=600, height=480"
-#define IMAGE_PAD_SUPPORTED_CAPS "video/x-raw, format=rgb, width=800, height=600"
+#define VIDEO_PAD_SUPPORTED_CAPS "video/x-raw, format=RGB, width=600, height=480"
+#define IMAGE_PAD_SUPPORTED_CAPS "video/x-raw, format=RGB, width=800, height=600"
/* custom test camera src element */
#define GST_TYPE_TEST_CAMERA_SRC \
testsrc = gst_element_factory_make ("videotestsrc", NULL);
audiosrc = gst_element_factory_make ("audiotestsrc", NULL);
- preview_caps = gst_caps_new_simple ("video/x-raw-rgb", "width", G_TYPE_INT,
+ preview_caps = gst_caps_new_simple ("video/x-raw", "width", G_TYPE_INT,
320, "height", G_TYPE_INT, 240, NULL);
- g_object_set (G_OBJECT (testsrc), "is-live", TRUE, "peer-alloc", FALSE, NULL);
+ g_object_set (G_OBJECT (testsrc), "is-live", TRUE, NULL);
g_object_set (G_OBJECT (audiosrc), "is-live", TRUE, NULL);
g_object_set (G_OBJECT (src), "video-source", testsrc, NULL);
g_object_set (G_OBJECT (camera), "camera-source", src, "preview-caps",
GstMessage *msg;
GstCaps *caps;
- caps = gst_caps_new_simple ("video/x-raw-rgb", "width", G_TYPE_INT,
+ caps = gst_caps_new_simple ("video/x-raw", "width", G_TYPE_INT,
widths[i], "height", G_TYPE_INT, heights[i], NULL);
g_object_set (camera, "image-capture-caps", caps, NULL);
GstMessage *msg;
GstCaps *caps;
- caps = gst_caps_new_simple ("video/x-raw-rgb", "width", G_TYPE_INT,
+ caps = gst_caps_new_simple ("video/x-raw", "width", G_TYPE_INT,
widths[i], "height", G_TYPE_INT, heights[i], "framerate",
GST_TYPE_FRACTION, fr[i], 1, NULL);
GstMessage *msg;
GstCaps *caps;
- caps = gst_caps_new_simple ("video/x-raw-rgb", "width", G_TYPE_INT,
+ caps = gst_caps_new_simple ("video/x-raw", "width", G_TYPE_INT,
widths[i], "height", G_TYPE_INT, heights[i], NULL);
g_object_set (camera, "preview-caps", caps, NULL);
/* set still image mode */
g_object_set (camera, "mode", 1, NULL);
- caps = gst_caps_new_simple ("video/x-raw-rgb", "width", G_TYPE_INT,
+ caps = gst_caps_new_simple ("video/x-raw", "width", G_TYPE_INT,
800, "height", G_TYPE_INT, 600, NULL);
g_object_set (camera, "image-capture-caps", caps, NULL);
gst_caps_unref (caps);
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
caps =
- gst_caps_from_string
- ("audio/x-raw-int,rate=48000,channels=1,signed=true,width=16,depth=16,endianness=1234");
+ gst_caps_from_string ("audio/x-raw,format=S16LE,rate=48000,channels=1");
fail_unless (caps != NULL);
gst_buffer_set_caps (inbuffer, caps);
gst_caps_unref (caps);
"could not set to playing");
caps =
- gst_caps_from_string
- ("audio/x-raw-int,rate=48000,channels=1,signed=true,width=16,depth=16,endianness=1234");
+ gst_caps_from_string ("audio/x-raw,format=S16LE,rate=48000,channels=1");
fail_unless (caps != NULL);
for (step = 0; step < steps; ++step) {