gst/playback/: Add screenshot conversion code from totem.
authorWim Taymans <wim.taymans@gmail.com>
Tue, 19 Feb 2008 15:02:33 +0000 (15:02 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Tue, 19 Feb 2008 15:02:33 +0000 (15:02 +0000)
commit81558d6a941e1070fb9ffb8e509c1292c7a15b74
treef31d57e06a20ced9ab770df3ebfc5cf16f500b13
parent58a9fd36227fc5b1b40cfe9927b97b24d1062ae6
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.
ChangeLog
gst/playback/Makefile.am
gst/playback/gstplay-marshal.list
gst/playback/gstplaybin2.c
gst/playback/gstplaysink.c
gst/playback/gstplaysink.h
gst/playback/gstscreenshot.c [new file with mode: 0644]
gst/playback/gstscreenshot.h [new file with mode: 0644]
tests/examples/seek/seek.c