.. _DS_plugin_nvjpegenc: Gst-nvjpegenc =============== The Gst-nvjpegenc plugin encodes images on both dGPU and Jetson platforms. It is the preferred method for encoding JPEG images. On the dGPU platform this plugin is based on the ``libnvjpeg`` library, part of the CUDA toolkit. On Jetson it uses a platform-specific hardware accelerator. The plugin accepts I420, RGB input on dGPU platform and I420, NV12 input on Jetson platform and produces JPEG encoded bitstream. On Jetson platform ``nvjpegenc`` can also accept SW RAW buffers in I420, YV12, GRAY8 formats. Inputs and Outputs -------------------- * Inputs * Gst Buffer in I420, RGB format (dGPU) * Gst Buffer in I420, NV12 format (Jetson) * Gst SW Buffer in I420, YV12, GRAY8 format (Jetson) * Control parameters * Enableperf (Jetson Only) * idct-method (Jetson Only) * quality (Both Jetson and dGPU) * OutputGray (dGPU only) * Output * Gst Buffer with encoded output in JPEG format Features -------- The following table summarizes the features of the Gst-nvjpegenc plugin. .. csv-table:: Gst-nvjpegenc plugin features :file: ../text/tables/Gst-nvjpegenc tables/DS_Plugin_gst-nvjpegenc_features.csv :widths: 30, 30, 30 :header-rows: 1 Gst Properties --------------- The following table summarizes the Gst properties of the Gst-nvjpegenc plugin. .. csv-table:: Gst-nvjpegenc plugin gst properties :file: ../text/tables/Gst-nvjpegenc tables/DS_Plugin_gst-nvjpegenc_gst-properties.csv :widths: 20, 20, 20, 20, 20 :header-rows: 1