code for converting raw image to jpeg image
nikit
nikitbiraj at gmail.com
Thu Aug 22 04:04:22 PDT 2013
above code is simple to understand.
Now I have another issue. Have wrote C code in gstreamer which reads a raw
file from appsrc and writes it to as raw file in appsink.
To be sure both appsrc and appsink use buffers to store and retrieve data.
Now I linked jpegenc in between appsrc and appsink.
Example :
link_ok = gst_element_link(app->src, app->encoder); ----1
link_ok = gst_element_link(app->encoder, app->imagesink);----2
where :
app->src = gst_element_factory_make("appsrc", "mysrc");
app->encoder = gst_element_factory_make("jpegenc", "mysrc");
app->imagesink = gst_element_factory_make("appsink", "mysrc");
Problem:
link_ok at 1 is 0, and
link_ok is 1
There is problem in linking appsrc and encoder?
Is there an solution to solve this?
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/code-for-converting-raw-image-to-jpeg-image-tp4661629p4661665.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list