# openjpegdec

openjpegdec decodes openjpeg stream.

## Example launch lines

     gst-launch-1.0 -v videotestsrc num-buffers=10 ! openjpegenc ! jpeg2000parse ! openjpegdec ! videoconvert ! autovideosink sync=false

Encode and decode whole frames.

     gst-launch-1.0 -v videotestsrc num-buffers=10 ! openjpegenc num-threads=8 num-stripes=8 ! jpeg2000parse ! openjpegdec max-slice-threads=8 ! videoconvert ! autovideosink sync=fals

Encode and decode frame split with stripes.

## Hierarchy

    GObject
        ╰──GInitiallyUnowned
            ╰──GstObject
                ╰──GstElement
                    ╰──GstVideoDecoder
                        ╰──openjpegdec

## Factory details

Authors: – Sebastian Dröge

Classification: – `Codec/Decoder/Video`

Rank – primary

Plugin – openjpeg

Package – GStreamer Bad Plug-ins

## Pad Templates

### `sink`

    image/x-j2c:
           sampling: { (string)RGB, (string)BGR, (string)RGBA, (string)BGRA, (string)YCbCr-4:4:4, (string)YCbCr-4:2:2, (string)YCbCr-4:2:0, (string)YCbCr-4:1:1, (string)YCbCr-4:1:0, (string)GRAYSCALE, (string)YCbCrA-4:4:4:4 }
    image/x-jpc:
           sampling: { (string)RGB, (string)BGR, (string)RGBA, (string)BGRA, (string)YCbCr-4:4:4, (string)YCbCr-4:2:2, (string)YCbCr-4:2:0, (string)YCbCr-4:1:1, (string)YCbCr-4:1:0, (string)GRAYSCALE, (string)YCbCrA-4:4:4:4 }
    image/jp2:
    image/x-jpc-striped:
        num-stripes: [ 2, 2147483647 ]
           sampling: { (string)RGB, (string)BGR, (string)RGBA, (string)BGRA, (string)YCbCr-4:4:4, (string)YCbCr-4:2:2, (string)YCbCr-4:2:0, (string)YCbCr-4:1:1, (string)YCbCr-4:1:0, (string)GRAYSCALE, (string)YCbCrA-4:4:4:4 }

Presence – always

Direction – sink

Object type – GstPad

### `src`

    video/x-raw:
             format: { ARGB64, ARGB, xRGB, AYUV64, Y444_10LE, I422_10LE, I420_10LE, AYUV, Y444, Y42B, I420, Y41B, YUV9, GRAY8, GRAY16_LE }
              width: [ 1, 2147483647 ]
             height: [ 1, 2147483647 ]
          framerate: [ 0/1, 2147483647/1 ]

Presence – always

Direction – src

Object type – GstPad

## Properties

### max-slice-threads

    “max-slice-threads” gint

Maximum number of worker threads to spawn. (0 = auto)

Flags : Read / Write

Default value : 0

Since : 1.20

### max-threads

    “max-threads” gint

Maximum number of worker threads to spawn used by openjpeg internally. (0 = no thread)

Flags : Read / Write

Default value : 0

Since : 1.18

The results of the search are