Debian Codegraph @

gst-libs/gst/basecamerabinsrc/gstcamerabin-enum.h

raw
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
21 #ifndef __GST_CAMERABIN_ENUM_H__
22 #define __GST_CAMERABIN_ENUM_H__
23
24 #ifndef GST_USE_UNSTABLE_API
25 #warning "camerabin enums are unstable API and may change in future."
26 #warning "You can define GST_USE_UNSTABLE_API to avoid this warning."
27 #endif
28
29 #include <gst/gst.h>
30 #include "basecamerabinsrc-prelude.h"
31
32 G_BEGIN_DECLS
33
34 /* FIXME: these should be properly namespaced if they're meant as exposed API */
35 #ifndef __GI_SCANNER__
36 #define DEFAULT_WIDTH 640
37 #define DEFAULT_HEIGHT 480
38 #define DEFAULT_CAPTURE_WIDTH 800
39 #define DEFAULT_CAPTURE_HEIGHT 600
40 #define DEFAULT_FPS_N 0 /* makes it use the default */
41 #define DEFAULT_FPS_D 1
42 #define DEFAULT_ZOOM MIN_ZOOM
43 #endif /* !__GI_SCANNER__ */
44
45
46 /* FIXME: properly namespace these enums */
47 /**
48 * GstCameraBinMode:
49 * @MODE_IMAGE: image capture
50 * @MODE_VIDEO: video capture
51 *
52 * Capture mode to use.
53 */
54 typedef enum
55 {
56 /* MODE_PREVIEW = 0, No use for this */
57 MODE_IMAGE = 1,
58 MODE_VIDEO = 2,
59 } GstCameraBinMode;
60
61 /* FIXME: should be CAMERA_BIN_MODE and camera_bin_mode */
62 #define GST_TYPE_CAMERABIN_MODE (gst_camerabin_mode_get_type ())
63 GST_BASE_CAMERA_BIN_SRC_API
64 GType gst_camerabin_mode_get_type (void);
65
66 G_END_DECLS
67
68 #endif /* #ifndef __GST_CAMERABIN_ENUM_H__ */