jpegenc

jpegenc — Encode images in JPEG format

Synopsis

                    GstJpegEnc;

Object Hierarchy

  GObject
   +----GstObject
         +----GstElement
               +----GstJpegEnc

Properties

  "quality"                  gint                  : Read / Write
  "idct-method"              GstIDCTMethod         : Read / Write

Signals

  "frame-encoded"                                  : Run Last

Description

Encodes jpeg images.

Example launch line

gst-launch videotestsrc num-buffers=50 ! video/x-raw-yuv, framerate='(fraction)'5/1 ! jpegenc ! avimux ! filesink location=mjpeg.avi
a pipeline to mux 5 JPEG frames per second into a 10 sec. long motion jpeg avi.

Details

GstJpegEnc

typedef struct _GstJpegEnc GstJpegEnc;

Property Details

The "quality" property

  "quality"                  gint                  : Read / Write

Quality of encoding.

Allowed values: [0,100]

Default value: 85


The "idct-method" property

  "idct-method"              GstIDCTMethod         : Read / Write

The IDCT algorithm to use.

Default value: Faster, less accurate integer method

Signal Details

The "frame-encoded" signal

void                user_function                      (GstJpegEnc *gstjpegenc,
                                                        gpointer    user_data)       : Run Last

gstjpegenc :

the object which received the signal.

user_data :

user data set when the signal handler was connected.