Lines Matching +full:convert +full:- +full:channels

2 From: Jeffy Chen <jeffy.chen@rock-chips.com>
6 Change-Id: I765bbe0caebe333855bd16fdd0843e0257491246
7 Signed-off-by: shine.liu <shine.liu@rock-chips.com>
8 Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
9 ---
13 diff --git a/gst/playback/gstplaybin3.c b/gst/playback/gstplaybin3.c
15 --- a/gst/playback/gstplaybin3.c
17 @@ -388,6 +388,16 @@ struct _GstPlayBin3Class
19 /* get the last video sample and convert it to the given caps */
34 @@ -421,6 +431,12 @@ enum
47 @@ -454,6 +470,12 @@ enum
60 @@ -473,6 +495,13 @@ static void gst_play_bin3_deep_element_added (GstBin * playbin,
74 @@ -610,6 +639,36 @@ gst_play_bin3_class_init (GstPlayBin3Class * klass)
79 + g_param_spec_int ("n-video", "Number Video",
84 + g_param_spec_int ("current-video", "Current Video",
85 + "Currently playing video stream (-1 = auto)",
86 + -1, G_MAXINT, -1, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
89 + g_param_spec_int ("n-audio", "Number Audio",
94 + g_param_spec_int ("current-audio", "Current audio",
95 + "Currently playing audio stream (-1 = auto)",
96 + -1, G_MAXINT, -1, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
99 + g_param_spec_int ("n-text", "Number Text",
104 + g_param_spec_int ("current-text", "Current Text",
105 + "Currently playing text stream (-1 = auto)",
106 + -1, G_MAXINT, -1, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
109 g_param_spec_string ("subtitle-encoding", "subtitle encoding",
110 "Encoding to assume if input subtitles are not in UTF-8 encoding. "
111 @@ -893,6 +952,41 @@ gst_play_bin3_class_init (GstPlayBin3Class * klass)
112 g_signal_new ("element-setup", G_TYPE_FROM_CLASS (klass),
116 + g_signal_new ("video-changed", G_TYPE_FROM_CLASS (klass),
122 + g_signal_new ("audio-changed", G_TYPE_FROM_CLASS (klass),
128 + g_signal_new ("text-changed", G_TYPE_FROM_CLASS (klass),
134 + g_signal_new ("get-video-tags", G_TYPE_FROM_CLASS (klass),
140 + g_signal_new ("get-audio-tags", G_TYPE_FROM_CLASS (klass),
146 + g_signal_new ("get-text-tags", G_TYPE_FROM_CLASS (klass),
151 * GstPlayBin3::convert-sample
153 @@ -914,6 +1008,10 @@ gst_play_bin3_class_init (GstPlayBin3Class * klass)
157 + klass->get_video_tags = gst_play_bin3_get_video_tags;
158 + klass->get_audio_tags = gst_play_bin3_get_audio_tags;
159 + klass->get_text_tags = gst_play_bin3_get_text_tags;
161 klass->convert_sample = gst_play_bin3_convert_sample;
164 @@ -1232,6 +1330,73 @@ gst_play_bin3_set_flags (GstPlayBin3 * playbin, GstPlayFlags flags)
165 "use-buffering", ((flags & GST_PLAY_FLAG_BUFFERING) != 0), NULL);
172 + GPtrArray *channels;
177 + channels = playbin->combiner[PLAYBIN_STREAM_AUDIO].streams;
180 + channels = playbin->combiner[PLAYBIN_STREAM_VIDEO].streams;
183 + channels = playbin->combiner[PLAYBIN_STREAM_TEXT].streams;
186 + channels = NULL;
190 + if (!channels || stream >= channels->len)
193 + sinkpad = g_ptr_array_index (channels, stream);
238 @@ -1435,6 +1600,15 @@ gst_play_bin3_set_property (GObject * object, guint prop_id,
254 @@ -1595,6 +1769,57 @@ gst_play_bin3_get_property (GObject * object, guint prop_id, GValue * value,
256 g_value_set_flags (value, gst_play_sink_get_flags (playbin->playsink));
264 + (playbin->combiner[PLAYBIN_STREAM_VIDEO].streams ? playbin->
265 + combiner[PLAYBIN_STREAM_VIDEO].streams->len : 0);
272 + g_value_set_int (value, playbin->current_video);
281 + (playbin->combiner[PLAYBIN_STREAM_AUDIO].streams ? playbin->
282 + combiner[PLAYBIN_STREAM_AUDIO].streams->len : 0);
289 + g_value_set_int (value, playbin->current_audio);
298 + (playbin->combiner[PLAYBIN_STREAM_TEXT].streams ? playbin->
299 + combiner[PLAYBIN_STREAM_TEXT].streams->len : 0);
306 + g_value_set_int (value, playbin->current_text);
312 @@ -2429,6 +2654,7 @@ pad_added_cb (GstElement * uridecodebin, GstPad * pad, GstPlayBin3 * playbin)
320 @@ -2476,10 +2702,36 @@ pad_added_cb (GstElement * uridecodebin, GstPad * pad, GstPlayBin3 * playbi…
325 + changed = combine->combiner ? TRUE : FALSE;
327 control_source_pad (playbin, pad, combine_pad, combine->stream_type);
334 + switch (combine->stream_type) {
345 + signal = -1;
357 --