1 /*
2 * GStreamer
3 * Copyright (C) 2009 Nokia Corporation <multimedia@maemo.org>
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
14 *
15 * You should have received a copy of the GNU Library General Public
16 * License along with this library; if not, write to the
17 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19 */
20 #ifdef HAVE_CONFIG_H
21 #include "config.h"
22 #endif
23
24 #include "gstcamerabin-enum.h"
25
26 GType
gst_camerabin_mode_get_type(void)27 gst_camerabin_mode_get_type (void)
28 {
29 static GType gtype = 0;
30
31 if (gtype == 0) {
32 static const GEnumValue values[] = {
33 /* {MODE_PREVIEW, "Preview mode (should be default?)", "mode-preview"}, */
34 {MODE_IMAGE, "Still image capture (default)", "mode-image"},
35 {MODE_VIDEO, "Video recording", "mode-video"},
36 {0, NULL, NULL}
37 };
38
39 gtype = g_enum_register_static ("GstCameraBin2Mode", values);
40 }
41 return gtype;
42 }
43