mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
camerabin2: remove unused code
General cleanup, removing unused bits
This commit is contained in:
parent
ba878c95b2
commit
19e52f35ee
2 changed files with 0 additions and 71 deletions
|
@ -20,45 +20,6 @@
|
||||||
|
|
||||||
#include "gstcamerabin-enum.h"
|
#include "gstcamerabin-enum.h"
|
||||||
|
|
||||||
#define C_FLAGS(v) ((guint) v)
|
|
||||||
|
|
||||||
static void
|
|
||||||
register_gst_camerabin_flags (GType * id)
|
|
||||||
{
|
|
||||||
static const GFlagsValue values[] = {
|
|
||||||
{C_FLAGS (GST_CAMERABIN_FLAG_SOURCE_RESIZE),
|
|
||||||
"Enable source crop and scale", "source-resize"},
|
|
||||||
{C_FLAGS (GST_CAMERABIN_FLAG_SOURCE_COLOR_CONVERSION),
|
|
||||||
"Enable colorspace conversion for video source",
|
|
||||||
"source-colorspace-conversion"},
|
|
||||||
{C_FLAGS (GST_CAMERABIN_FLAG_VIEWFINDER_COLOR_CONVERSION),
|
|
||||||
"Enable colorspace conversion for viewfinder",
|
|
||||||
"viewfinder-colorspace-conversion"},
|
|
||||||
{C_FLAGS (GST_CAMERABIN_FLAG_VIEWFINDER_SCALE),
|
|
||||||
"Enable scale for viewfinder", "viewfinder-scale"},
|
|
||||||
{C_FLAGS (GST_CAMERABIN_FLAG_AUDIO_CONVERSION),
|
|
||||||
"Enable audio conversion for video capture", "audio-conversion"},
|
|
||||||
{C_FLAGS (GST_CAMERABIN_FLAG_DISABLE_AUDIO),
|
|
||||||
"Disable audio elements for video capture", "disable-audio"},
|
|
||||||
{C_FLAGS (GST_CAMERABIN_FLAG_IMAGE_COLOR_CONVERSION),
|
|
||||||
"Enable colorspace conversion for still image",
|
|
||||||
"image-colorspace-conversion"},
|
|
||||||
{0, NULL, NULL}
|
|
||||||
};
|
|
||||||
*id = g_flags_register_static ("GstCameraBinFlags", values);
|
|
||||||
}
|
|
||||||
|
|
||||||
GType
|
|
||||||
gst_camerabin_flags_get_type (void)
|
|
||||||
{
|
|
||||||
static GType id;
|
|
||||||
static GOnce once = G_ONCE_INIT;
|
|
||||||
|
|
||||||
g_once (&once, (GThreadFunc) register_gst_camerabin_flags, &id);
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
GType
|
GType
|
||||||
gst_camerabin_mode_get_type (void)
|
gst_camerabin_mode_get_type (void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -80,38 +80,6 @@ enum
|
||||||
#define DEFAULT_ZOOM MIN_ZOOM
|
#define DEFAULT_ZOOM MIN_ZOOM
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 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);
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GstCameraBinMode:
|
* GstCameraBinMode:
|
||||||
* @MODE_IMAGE: image capture
|
* @MODE_IMAGE: image capture
|
||||||
|
|
Loading…
Reference in a new issue