# jpegdec

Decodes jpeg images.

## Example launch line

     gst-launch-1.0 -v filesrc location=mjpeg.avi ! avidemux !  queue ! jpegdec ! videoconvert ! videoscale ! autovideosink

The above pipeline decode the mjpeg stream and renders it to the screen.

## Hierarchy

    GObject
        ╰──GInitiallyUnowned
            ╰──GstObject
                ╰──GstElement
                    ╰──GstVideoDecoder
                        ╰──jpegdec

## Factory details

Authors: – Wim Taymans

Classification: – `Codec/Decoder/Image`

Rank – primary

Plugin – jpeg

Package – GStreamer Good Plug-ins

## Pad Templates

### `sink`

    image/jpeg:

Presence – always

Direction – sink

Object type – GstPad

### `src`

    video/x-raw:
             format: { I420, RGB, BGR, RGBx, xRGB, BGRx, xBGR, GRAY8 }
              width: [ 1, 2147483647 ]
             height: [ 1, 2147483647 ]
          framerate: [ 0/1, 2147483647/1 ]

Presence – always

Direction – src

Object type – GstPad

## Properties

### idct-method

    “idct-method” GstIDCTMethod *

The IDCT algorithm to use

Flags : Read / Write

Default value : ifast (1)

### max-errors

    “max-errors” gint

Error out after receiving N consecutive decoding errors (-1 = never error out, 0 = automatic, 1 = fail on first error, etc.)

Flags : Read / Write

Default value : 0

The results of the search are