mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 11:29:55 +00:00
7dac3659c6
Adds flags property to enable runtime configuration of conversion and scaling elements. Also adds flag for disabling audio completely.
60 lines
2.3 KiB
C
60 lines
2.3 KiB
C
/*
|
|
* 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
|
|
/**
|
|
* 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
|
|
*
|
|
* 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),
|
|
GST_CAMERABIN_FLAG_IMAGE_COLOR_CONVERSION = (1 << 6)
|
|
} 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__ */
|