jpegenc: add snapshot property
authorMatthieu Crapet <mcrapet@gmail.com>
Wed, 23 Sep 2015 08:01:32 +0000 (10:01 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 31 Jan 2018 17:51:16 +0000 (17:51 +0000)
commitba86a1d99cabf331be5f1460289b013c5bea5aa8
tree5f33c1c1ba8b9118843762e2ae14258ad4bb2904
parentcbb9c3122870208e355da0c76f73db3fb981e2fa
jpegenc: add snapshot property

Like pngenc, automatically send an EOS message.

Example of bin:
appsrc ! jpegenc snapshot=true ! filesink location=out.jpg

This is especially useful for limited/slow hardware.

Otherwise calling gst_video_convert_sample() is a better option
(internally uses videoconvert and videoscale).

https://bugzilla.gnome.org/show_bug.cgi?id=755453
ext/jpeg/gstjpegenc.c
ext/jpeg/gstjpegenc.h