2010-11-25 16:00:50 +00:00
|
|
|
/*
|
|
|
|
* GStreamer
|
|
|
|
* Copyright (C) 2009 Nokia Corporation <multimedia@maemo.org>
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this library; if not, write to the
|
2012-11-03 20:38:00 +00:00
|
|
|
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
|
|
* Boston, MA 02110-1301, USA.
|
2010-11-25 16:00:50 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GST_CAMERABIN_ENUM_H__
|
|
|
|
#define __GST_CAMERABIN_ENUM_H__
|
|
|
|
|
2011-04-14 15:14:57 +00:00
|
|
|
#ifndef GST_USE_UNSTABLE_API
|
|
|
|
#warning "camerabin enums are unstable API and may change in future."
|
|
|
|
#warning "You can define GST_USE_UNSTABLE_API to avoid this warning."
|
|
|
|
#endif
|
|
|
|
|
2010-11-25 16:00:50 +00:00
|
|
|
#include <gst/gst.h>
|
2018-03-13 12:29:08 +00:00
|
|
|
#include "basecamerabinsrc-prelude.h"
|
2010-11-25 16:00:50 +00:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
#define DEFAULT_WIDTH 640
|
|
|
|
#define DEFAULT_HEIGHT 480
|
|
|
|
#define DEFAULT_CAPTURE_WIDTH 800
|
|
|
|
#define DEFAULT_CAPTURE_HEIGHT 600
|
|
|
|
#define DEFAULT_FPS_N 0 /* makes it use the default */
|
|
|
|
#define DEFAULT_FPS_D 1
|
|
|
|
#define DEFAULT_ZOOM MIN_ZOOM
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GstCameraBinMode:
|
|
|
|
* @MODE_IMAGE: image capture
|
|
|
|
* @MODE_VIDEO: video capture
|
|
|
|
*
|
|
|
|
* Capture mode to use.
|
|
|
|
*/
|
|
|
|
typedef enum
|
|
|
|
{
|
2010-11-30 12:28:50 +00:00
|
|
|
/* MODE_PREVIEW = 0, No use for this */
|
2010-11-25 16:00:50 +00:00
|
|
|
MODE_IMAGE = 1,
|
|
|
|
MODE_VIDEO = 2,
|
|
|
|
} GstCameraBinMode;
|
|
|
|
|
|
|
|
|
|
|
|
#define GST_TYPE_CAMERABIN_MODE (gst_camerabin_mode_get_type ())
|
2018-03-13 12:29:08 +00:00
|
|
|
GST_BASE_CAMERA_BIN_SRC_API
|
2010-11-25 16:00:50 +00:00
|
|
|
GType gst_camerabin_mode_get_type (void);
|
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* #ifndef __GST_CAMERABIN_ENUM_H__ */
|