diff options
author | Wim Taymans <wim.taymans@gmail.com> | 2008-02-19 15:02:33 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2008-02-19 15:02:33 +0000 |
commit | 81558d6a941e1070fb9ffb8e509c1292c7a15b74 (patch) | |
tree | f31d57e06a20ced9ab770df3ebfc5cf16f500b13 /gst/playback/gstscreenshot.h | |
parent | 58a9fd36227fc5b1b40cfe9927b97b24d1062ae6 (diff) |
gst/playback/: Add screenshot conversion code from totem.
Original commit message from CVS:
* gst/playback/Makefile.am:
* gst/playback/gstscreenshot.c: (feed_fakesrc), (save_result),
(create_element), (gst_play_frame_conv_convert):
* gst/playback/gstscreenshot.h:
Add screenshot conversion code from totem.
* gst/playback/gstplay-marshal.list:
* gst/playback/gstplaybin2.c: (gst_play_marshal_BUFFER__BOXED),
(gst_play_bin_class_init), (gst_play_bin_convert_frame),
(gst_play_bin_get_property), (no_more_pads_cb), (activate_group):
Implement frame property to get a color-unconverted snapshot.
Implement convert-frame action signal to get a converted snapshot image.
Configure connection speed in uridecodebin.
Document some more properties.
* gst/playback/gstplaysink.c: (gst_play_sink_class_init),
(gen_video_chain), (gen_audio_chain), (gst_play_sink_reconfigure),
(gst_play_sink_get_last_frame):
* gst/playback/gstplaysink.h:
Use last-buffer property of the video sink to get a video snapshot.
* tests/examples/seek/seek.c: (shot_cb), (main):
Add snapshot button for playbin2 and use the frame property to save the
frame as a png in the current directory.
Diffstat (limited to 'gst/playback/gstscreenshot.h')
-rw-r--r-- | gst/playback/gstscreenshot.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/gst/playback/gstscreenshot.h b/gst/playback/gstscreenshot.h new file mode 100644 index 000000000..a7f5f0910 --- /dev/null +++ b/gst/playback/gstscreenshot.h @@ -0,0 +1,31 @@ +/* Small helper element for format conversion + * (c) 2004 Ronald Bultje <rbultje@ronald.bitfreak.net> + * + * 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_PLAY_FRAME_CONV_H__ +#define __GST_PLAY_FRAME_CONV_H__ + +#include <gst/gst.h> + +G_BEGIN_DECLS + +GstBuffer * gst_play_frame_conv_convert (GstBuffer *buf, GstCaps *to); + +G_END_DECLS + +#endif /* __GST_PLAY_FRAME_CONV_H__ */ |