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 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 #define DEFAULT_WIDTH 640 35 #define DEFAULT_HEIGHT 480 36 #define DEFAULT_CAPTURE_WIDTH 800 37 #define DEFAULT_CAPTURE_HEIGHT 600 38 #define DEFAULT_FPS_N 0 /* makes it use the default */ 39 #define DEFAULT_FPS_D 1 40 #define DEFAULT_ZOOM MIN_ZOOM 41 42 43 /** 44 * GstCameraBinMode: 45 * @MODE_IMAGE: image capture 46 * @MODE_VIDEO: video capture 47 * 48 * Capture mode to use. 49 */ 50 typedef enum 51 { 52 /* MODE_PREVIEW = 0, No use for this */ 53 MODE_IMAGE = 1, 54 MODE_VIDEO = 2, 55 } GstCameraBinMode; 56 57 58 #define GST_TYPE_CAMERABIN_MODE (gst_camerabin_mode_get_type ()) 59 GST_BASE_CAMERA_BIN_SRC_API 60 GType gst_camerabin_mode_get_type (void); 61 62 G_END_DECLS 63 64 #endif /* #ifndef __GST_CAMERABIN_ENUM_H__ */ 65