2007-12-06 12:08:21 +00:00
|
|
|
/* GStreamer
|
|
|
|
* Copyright (C) <2007> Wim Taymans <wim.taymans@gmail.com>
|
|
|
|
*
|
|
|
|
* 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 23:05:09 +00:00
|
|
|
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
|
|
* Boston, MA 02110-1301, USA.
|
2007-12-06 12:08:21 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GST_PLAY_ENUM_H__
|
|
|
|
#define __GST_PLAY_ENUM_H__
|
|
|
|
|
|
|
|
#include <gst/gst.h>
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GstAutoplugSelectResult:
|
|
|
|
* @GST_AUTOPLUG_SELECT_TRY: try to autoplug the current factory
|
|
|
|
* @GST_AUTOPLUG_SELECT_EXPOSE: expose the pad as a raw stream
|
|
|
|
* @GST_AUTOPLUG_SELECT_SKIP: skip the current factory
|
|
|
|
*
|
|
|
|
* return values for the autoplug-select signal.
|
|
|
|
*/
|
|
|
|
typedef enum {
|
|
|
|
GST_AUTOPLUG_SELECT_TRY,
|
|
|
|
GST_AUTOPLUG_SELECT_EXPOSE,
|
|
|
|
GST_AUTOPLUG_SELECT_SKIP
|
|
|
|
} GstAutoplugSelectResult;
|
|
|
|
|
|
|
|
#define GST_TYPE_AUTOPLUG_SELECT_RESULT (gst_autoplug_select_result_get_type())
|
|
|
|
GType gst_autoplug_select_result_get_type (void);
|
|
|
|
|
gst/playback/gstplay-enum.*: Add enums for configuration flags.
Original commit message from CVS:
* gst/playback/gstplay-enum.c:
(register_gst_autoplug_select_result),
(gst_autoplug_select_result_get_type), (register_gst_play_flags),
(gst_play_flags_get_type):
* gst/playback/gstplay-enum.h:
Add enums for configuration flags.
* gst/playback/gstplaybin2.c: (gst_play_bin_class_init),
(init_group), (gst_play_bin_init), (gst_play_bin_set_property),
(gst_play_bin_get_property), (no_more_pads_cb),
(autoplug_select_cb), (gst_play_bin_change_state):
Merge mode with flags.
Add more property getters/setters, defaults and docs.
Add properties to get number of audio/video/text streams.
Create sink object in _init so that we can always rely on it being
there.
* gst/playback/gstplaysink.c: (gst_play_sink_init),
(gen_video_chain), (gen_audio_chain), (gen_vis_chain),
(activate_vis), (gst_play_sink_reconfigure),
(gst_play_sink_set_flags), (gst_play_sink_get_flags),
(gst_play_sink_change_state):
* gst/playback/gstplaysink.h:
Use flags to configure the sink pipelines.
Add tee before audio pipeline so that we can use it for visualisations.
Start working on integrating visualisations.
Remove mode, we can do everything with the flags now.
Add method to configue the sink pipeline.
2008-01-07 11:40:04 +00:00
|
|
|
/**
|
|
|
|
* GstPlayFlags:
|
|
|
|
* @GST_PLAY_FLAG_VIDEO: Enable rendering of the video stream
|
|
|
|
* @GST_PLAY_FLAG_AUDIO: Enable rendering of the audio stream
|
|
|
|
* @GST_PLAY_FLAG_TEXT: Enable rendering of subtitles
|
|
|
|
* @GST_PLAY_FLAG_VIS: Enable rendering of visualisations when there is
|
|
|
|
* no video stream.
|
|
|
|
* @GST_PLAY_FLAG_SOFT_VOLUME: Use software volume
|
|
|
|
* @GST_PLAY_FLAG_NATIVE_AUDIO: only allow native audio formats, this omits
|
|
|
|
* configuration of audioconvert and audioresample.
|
|
|
|
* @GST_PLAY_FLAG_NATIVE_VIDEO: only allow native video formats, this omits
|
2011-06-15 16:08:32 +00:00
|
|
|
* configuration of videoconvert and videoscale.
|
2009-07-10 19:04:33 +00:00
|
|
|
* @GST_PLAY_FLAG_DOWNLOAD: enable progressice download buffering for selected
|
|
|
|
* formats.
|
2009-10-23 18:34:42 +00:00
|
|
|
* @GST_PLAY_FLAG_BUFFERING: enable buffering of the demuxed or parsed data.
|
2012-01-09 11:31:02 +00:00
|
|
|
* @GST_PLAY_FLAG_DEINTERLACE: deinterlace raw video (if native not forced).
|
2015-03-16 08:28:35 +00:00
|
|
|
* @GST_PLAY_FLAG_SOFT_COLORBALANCE: Use a software filter for colour balance
|
2014-03-16 16:00:38 +00:00
|
|
|
* @GST_PLAY_FLAG_FORCE_FILTERS: force audio/video filters to be applied if
|
|
|
|
* set.
|
gst/playback/gstplay-enum.*: Add enums for configuration flags.
Original commit message from CVS:
* gst/playback/gstplay-enum.c:
(register_gst_autoplug_select_result),
(gst_autoplug_select_result_get_type), (register_gst_play_flags),
(gst_play_flags_get_type):
* gst/playback/gstplay-enum.h:
Add enums for configuration flags.
* gst/playback/gstplaybin2.c: (gst_play_bin_class_init),
(init_group), (gst_play_bin_init), (gst_play_bin_set_property),
(gst_play_bin_get_property), (no_more_pads_cb),
(autoplug_select_cb), (gst_play_bin_change_state):
Merge mode with flags.
Add more property getters/setters, defaults and docs.
Add properties to get number of audio/video/text streams.
Create sink object in _init so that we can always rely on it being
there.
* gst/playback/gstplaysink.c: (gst_play_sink_init),
(gen_video_chain), (gen_audio_chain), (gen_vis_chain),
(activate_vis), (gst_play_sink_reconfigure),
(gst_play_sink_set_flags), (gst_play_sink_get_flags),
(gst_play_sink_change_state):
* gst/playback/gstplaysink.h:
Use flags to configure the sink pipelines.
Add tee before audio pipeline so that we can use it for visualisations.
Start working on integrating visualisations.
Remove mode, we can do everything with the flags now.
Add method to configue the sink pipeline.
2008-01-07 11:40:04 +00:00
|
|
|
*
|
|
|
|
* Extra flags to configure the behaviour of the sinks.
|
|
|
|
*/
|
|
|
|
typedef enum {
|
|
|
|
GST_PLAY_FLAG_VIDEO = (1 << 0),
|
|
|
|
GST_PLAY_FLAG_AUDIO = (1 << 1),
|
|
|
|
GST_PLAY_FLAG_TEXT = (1 << 2),
|
|
|
|
GST_PLAY_FLAG_VIS = (1 << 3),
|
|
|
|
GST_PLAY_FLAG_SOFT_VOLUME = (1 << 4),
|
|
|
|
GST_PLAY_FLAG_NATIVE_AUDIO = (1 << 5),
|
2009-07-10 19:04:33 +00:00
|
|
|
GST_PLAY_FLAG_NATIVE_VIDEO = (1 << 6),
|
2009-10-23 18:34:42 +00:00
|
|
|
GST_PLAY_FLAG_DOWNLOAD = (1 << 7),
|
2010-04-26 09:12:43 +00:00
|
|
|
GST_PLAY_FLAG_BUFFERING = (1 << 8),
|
2012-02-22 10:56:59 +00:00
|
|
|
GST_PLAY_FLAG_DEINTERLACE = (1 << 9),
|
2014-03-16 16:00:38 +00:00
|
|
|
GST_PLAY_FLAG_SOFT_COLORBALANCE = (1 << 10),
|
|
|
|
GST_PLAY_FLAG_FORCE_FILTERS = (1 << 11),
|
gst/playback/gstplay-enum.*: Add enums for configuration flags.
Original commit message from CVS:
* gst/playback/gstplay-enum.c:
(register_gst_autoplug_select_result),
(gst_autoplug_select_result_get_type), (register_gst_play_flags),
(gst_play_flags_get_type):
* gst/playback/gstplay-enum.h:
Add enums for configuration flags.
* gst/playback/gstplaybin2.c: (gst_play_bin_class_init),
(init_group), (gst_play_bin_init), (gst_play_bin_set_property),
(gst_play_bin_get_property), (no_more_pads_cb),
(autoplug_select_cb), (gst_play_bin_change_state):
Merge mode with flags.
Add more property getters/setters, defaults and docs.
Add properties to get number of audio/video/text streams.
Create sink object in _init so that we can always rely on it being
there.
* gst/playback/gstplaysink.c: (gst_play_sink_init),
(gen_video_chain), (gen_audio_chain), (gen_vis_chain),
(activate_vis), (gst_play_sink_reconfigure),
(gst_play_sink_set_flags), (gst_play_sink_get_flags),
(gst_play_sink_change_state):
* gst/playback/gstplaysink.h:
Use flags to configure the sink pipelines.
Add tee before audio pipeline so that we can use it for visualisations.
Start working on integrating visualisations.
Remove mode, we can do everything with the flags now.
Add method to configue the sink pipeline.
2008-01-07 11:40:04 +00:00
|
|
|
} GstPlayFlags;
|
|
|
|
|
|
|
|
#define GST_TYPE_PLAY_FLAGS (gst_play_flags_get_type())
|
|
|
|
GType gst_play_flags_get_type (void);
|
|
|
|
|
2007-12-06 12:08:21 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __GST_PLAY_ENUM_H__ */
|