| 1 |
/* |
| 2 |
* GStreamer |
| 3 |
* Copyright (C) 2009 Nokia Corporation <[email protected]> |
| 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 |
/** |
| 27 |
* GstCameraBin2Mode: |
| 28 |
*/ |
| 29 |
GType |
| 30 |
gst_camerabin_mode_get_type (void) |
| 31 |
{ |
| 32 |
static GType gtype = 0; |
| 33 |
|
| 34 |
if (gtype == 0) { |
| 35 |
static const GEnumValue values[] = { |
| 36 |
/* {MODE_PREVIEW, "Preview mode (should be default?)", "mode-preview"}, */ |
| 37 |
{MODE_IMAGE, "Still image capture (default)", "mode-image"}, |
| 38 |
{MODE_VIDEO, "Video recording", "mode-video"}, |
| 39 |
{0, NULL, NULL} |
| 40 |
}; |
| 41 |
|
| 42 |
gtype = g_enum_register_static ("GstCameraBin2Mode", values); |
| 43 |
} |
| 44 |
return gtype; |
| 45 |
} |