code for converting raw image to jpeg image

David Röthlisberger david at rothlis.net
Tue Aug 20 06:46:58 PDT 2013


On 20 Aug 2013, at 13:51, nikit wrote:
> Hi,
> Below is pipeline structure for converting raw to jpeg image :
> 
> gst-launch filesrc location=~/one.raw  blocksize= 608256 ! 'video/x-raw-yuv,
> \
> format=(fourcc)I420, width=(int)704, height=(int)576,
> framerate=(fraction)0/1' ! \
>  jpegenc ! filesink location=image1.jpg 
> 
> I have to convert this pipeline structure to C code.
> raw image is stored in buffer.


Use a jpeg library, not GStreamer.
http://en.wikipedia.org/wiki/Libjpeg



More information about the gstreamer-devel mailing list