2009-10-28 10:47:19 +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
|
|
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
* Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GST_CAMERABIN_ENUM_H__
|
|
|
|
#define __GST_CAMERABIN_ENUM_H__
|
|
|
|
|
|
|
|
#include <gst/gst.h>
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
2009-11-27 12:38:04 +00:00
|
|
|
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
ARG_0,
|
|
|
|
ARG_FILENAME,
|
|
|
|
ARG_MODE,
|
|
|
|
ARG_FLAGS,
|
|
|
|
ARG_MUTE,
|
|
|
|
ARG_ZOOM,
|
|
|
|
ARG_IMAGE_POST,
|
|
|
|
ARG_IMAGE_ENC,
|
2011-05-20 14:06:49 +00:00
|
|
|
ARG_IMAGE_FORMATTER,
|
2009-11-27 12:38:04 +00:00
|
|
|
ARG_VIDEO_POST,
|
|
|
|
ARG_VIDEO_ENC,
|
|
|
|
ARG_AUDIO_ENC,
|
|
|
|
ARG_VIDEO_MUX,
|
|
|
|
ARG_VF_SINK,
|
|
|
|
ARG_VIDEO_SRC,
|
|
|
|
ARG_AUDIO_SRC,
|
|
|
|
ARG_INPUT_CAPS,
|
|
|
|
ARG_FILTER_CAPS,
|
|
|
|
ARG_PREVIEW_CAPS,
|
|
|
|
ARG_WB_MODE,
|
|
|
|
ARG_COLOUR_TONE,
|
|
|
|
ARG_SCENE_MODE,
|
|
|
|
ARG_FLASH_MODE,
|
|
|
|
ARG_FOCUS_STATUS,
|
|
|
|
ARG_CAPABILITIES,
|
|
|
|
ARG_SHAKE_RISK,
|
|
|
|
ARG_EV_COMP,
|
|
|
|
ARG_ISO_SPEED,
|
|
|
|
ARG_APERTURE,
|
2009-09-16 12:11:49 +00:00
|
|
|
ARG_EXPOSURE,
|
2009-09-21 14:47:20 +00:00
|
|
|
ARG_VIDEO_SOURCE_FILTER,
|
2009-10-19 11:31:54 +00:00
|
|
|
ARG_IMAGE_CAPTURE_SUPPORTED_CAPS,
|
2010-01-26 13:18:24 +00:00
|
|
|
ARG_VIEWFINDER_FILTER,
|
|
|
|
ARG_FLICKER_MODE,
|
2010-03-02 12:04:44 +00:00
|
|
|
ARG_FOCUS_MODE,
|
2010-04-13 21:33:40 +00:00
|
|
|
ARG_BLOCK_VIEWFINDER,
|
|
|
|
ARG_IMAGE_CAPTURE_WIDTH,
|
2010-04-13 23:32:50 +00:00
|
|
|
ARG_IMAGE_CAPTURE_HEIGHT,
|
|
|
|
ARG_VIDEO_CAPTURE_WIDTH,
|
|
|
|
ARG_VIDEO_CAPTURE_HEIGHT,
|
2010-06-21 13:17:24 +00:00
|
|
|
ARG_VIDEO_CAPTURE_FRAMERATE,
|
2010-05-05 10:58:07 +00:00
|
|
|
ARG_PREVIEW_SOURCE_FILTER,
|
2010-08-26 20:08:19 +00:00
|
|
|
ARG_READY_FOR_CAPTURE,
|
|
|
|
ARG_IDLE
|
2009-11-27 12:38:04 +00:00
|
|
|
};
|
|
|
|
|
2009-10-28 10:47:19 +00:00
|
|
|
/**
|
|
|
|
* GstCameraBinFlags:
|
|
|
|
* @GST_CAMERABIN_FLAG_SOURCE_RESIZE: enable video crop and scale
|
|
|
|
* after capture
|
|
|
|
* @GST_CAMERABIN_FLAG_SOURCE_COLOR_CONVERSION: enable conversion
|
|
|
|
* of native video format by enabling ffmpegcolorspace
|
|
|
|
* @GST_CAMERABIN_FLAG_VIEWFINDER_COLOR_CONVERSION: enable color
|
|
|
|
* conversion for viewfinder element
|
|
|
|
* @GST_CAMERABIN_FLAG_VIEWFINDER_SCALE: enable scaling in
|
|
|
|
* viewfinder element retaining aspect ratio
|
|
|
|
* @GST_CAMERABIN_FLAG_AUDIO_CONVERSION: enable audioconvert and
|
|
|
|
* audioresample elements
|
|
|
|
* @GST_CAMERABIN_FLAG_DISABLE_AUDIO: disable audio elements
|
|
|
|
* @GST_CAMERABIN_FLAG_IMAGE_COLOR_CONVERSION: enable color
|
|
|
|
* conversion for image output element
|
2010-09-23 02:39:07 +00:00
|
|
|
* @GST_CAMERABIN_FLAG_VIDEO_COLOR_CONVERSION: enable color
|
|
|
|
* conversion for video encoder element
|
2009-10-28 10:47:19 +00:00
|
|
|
*
|
|
|
|
* Extra flags to configure the behaviour of the sinks.
|
|
|
|
*/
|
|
|
|
typedef enum {
|
|
|
|
GST_CAMERABIN_FLAG_SOURCE_RESIZE = (1 << 0),
|
|
|
|
GST_CAMERABIN_FLAG_SOURCE_COLOR_CONVERSION = (1 << 1),
|
|
|
|
GST_CAMERABIN_FLAG_VIEWFINDER_COLOR_CONVERSION = (1 << 2),
|
|
|
|
GST_CAMERABIN_FLAG_VIEWFINDER_SCALE = (1 << 3),
|
|
|
|
GST_CAMERABIN_FLAG_AUDIO_CONVERSION = (1 << 4),
|
|
|
|
GST_CAMERABIN_FLAG_DISABLE_AUDIO = (1 << 5),
|
2010-09-23 02:39:07 +00:00
|
|
|
GST_CAMERABIN_FLAG_IMAGE_COLOR_CONVERSION = (1 << 6),
|
|
|
|
GST_CAMERABIN_FLAG_VIDEO_COLOR_CONVERSION = (1 << 7)
|
2009-10-28 10:47:19 +00:00
|
|
|
} GstCameraBinFlags;
|
|
|
|
|
|
|
|
#define GST_TYPE_CAMERABIN_FLAGS (gst_camerabin_flags_get_type())
|
|
|
|
GType gst_camerabin_flags_get_type (void);
|
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* #ifndef __GST_CAMERABIN_ENUM_H__ */
|