# NvJpeg available for DriveOS

**URL:** <https://forums.developer.nvidia.com/t/nvjpeg-available-for-driveos/186493>\
**Category:** DRIVE AGX Xavier General\
**Tags:** driveos-nvmedia\
**Created:** [August 13, 2021, 11:04am UTC](https://forums.developer.nvidia.com/t/nvjpeg-available-for-driveos/186493 "2021-08-13T11:04:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![AutonomousFabian](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@AutonomousFabian](https://forums.developer.nvidia.com/u/AutonomousFabian)\
**Post date:** [August 13, 2021, 11:04am UTC](https://forums.developer.nvidia.com/t/nvjpeg-available-for-driveos/186493/1 "2021-08-13T11:04:37Z")

</div>

Please provide the following info (check/uncheck the boxes after clicking “+ Create Topic”):  
**Software Version**  
 DRIVE OS Linux 5.2.0  
 DRIVE OS Linux 5.2.0 and DriveWorks 3.5  
 NVIDIA DRIVE™ Software 10.0 (Linux)  
 NVIDIA DRIVE™ Software 9.0 (Linux)  
 other DRIVE OS version  
 other

**Target Operating System**  
 Linux  
 QNX  
 other

**Hardware Platform**  
 NVIDIA DRIVE™ AGX Xavier DevKit (E3550)  
 NVIDIA DRIVE™ AGX Pegasus DevKit (E3550)  
 other

**SDK Manager Version**  
 1.6.0.8170  
 1.5.1.7815  
 1.5.0.7774  
 other

**Host Machine Version**  
 native Ubuntu 18.04  
 other

Hi,

are there aarch64 NvJpeg-libs somewhere available for Cuda10.2/DriveOS 5.2?  
Thanks in advance!

---

<div class="post-metadata">

**Author:** ![VickNV](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/vicknv/32/14043_2.png) [@VickNV](https://forums.developer.nvidia.com/u/VickNV)\
**Post date:** [August 13, 2021, 12:39pm UTC](https://forums.developer.nvidia.com/t/nvjpeg-available-for-driveos/186493/2 "2021-08-13T12:39:06Z")

</div>

Hi, @AutonomousFabian

Please take a look at the below documents:

- [https://docs.nvidia.com/drive/drive-os-5.2.0.0L/drive-os/index.html#page/DRIVE\_OS\_Linux\_SDK\_Development\_Guide/NvMedia/nvmedia\_nvmimg\_jpgenc.html#](https://docs.nvidia.com/drive/drive-os-5.2.0.0L/drive-os/index.html#page/DRIVE_OS_Linux_SDK_Development_Guide/NvMedia/nvmedia_nvmimg_jpgenc.html#)
- [https://docs.nvidia.com/drive/drive-os-5.2.0.0L/drive-os/index.html#page/DRIVE\_OS\_Linux\_SDK\_Development\_Guide/NvMedia/nvmedia\_nvmimg\_jpgdec.html#](https://docs.nvidia.com/drive/drive-os-5.2.0.0L/drive-os/index.html#page/DRIVE_OS_Linux_SDK_Development_Guide/NvMedia/nvmedia_nvmimg_jpgdec.html#)
- [NVIDIA DRIVE OS Linux SDK API Reference: nvmedia\_ijpe.h File Reference | NVIDIA Docs](https://docs.nvidia.com/drive/drive-os-5.2.0.0L/drive-os/DRIVE_OS_Linux_SDK_Development_Guide/baggage/nvmedia__ijpe_8h.html)
- [NVIDIA DRIVE OS Linux SDK API Reference: nvmedia\_ijpd.h File Reference | NVIDIA Docs](https://docs.nvidia.com/drive/drive-os-5.2.0.0L/drive-os/DRIVE_OS_Linux_SDK_Development_Guide/baggage/nvmedia__ijpd_8h.html)

---

<div class="post-metadata">

**Author:** ![AutonomousFabian](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@AutonomousFabian](https://forums.developer.nvidia.com/u/AutonomousFabian)\
**Post date:** [August 13, 2021, 1:43pm UTC](https://forums.developer.nvidia.com/t/nvjpeg-available-for-driveos/186493/3 "2021-08-13T13:43:03Z")

</div>

First of all, thank you @VickNV for your quick response!

I know the NvMedia decoding. Unfortunately I need the decoded data being processed with CUDA API. But the NvMedia decoder returns a NvMediaImage-type. So how to get this data to Cuda?  
I’m aware of the `NvMediaImageGetBits` method, but to my understanding this returns the data in a cpu buffer, right? This seems inefficient as we would need another back-copying step to gpu buffer.  
Another possibility could be using an EGLstream. But this looks like a huge workaround compared to just using the nvJpeg libs.

---

<div class="post-metadata">

**Author:** ![VickNV](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/vicknv/32/14043_2.png) [@VickNV](https://forums.developer.nvidia.com/u/VickNV)\
**Post date:** [August 13, 2021, 5:23pm UTC](https://forums.developer.nvidia.com/t/nvjpeg-available-for-driveos/186493/4 "2021-08-13T17:23:41Z")

</div>

You may want to take a look at NvStreams.  
Below are relevant documents and a sample application.

- [https://docs.nvidia.com/drive/drive-os-5.2.0.0L/drive-os/index.html#page/DRIVE\_OS\_Linux\_SDK\_Development\_Guide/Graphics/nvsci.html#](https://docs.nvidia.com/drive/drive-os-5.2.0.0L/drive-os/index.html#page/DRIVE_OS_Linux_SDK_Development_Guide/Graphics/nvsci.html#)
- [https://docs.nvidia.com/drive/drive-os-5.2.0.0L/drive-os/index.html#page/DRIVE\_OS\_Linux\_SDK\_Development\_Guide/Graphics/nvsci\_nvscistream\_sample\_app.html#](https://docs.nvidia.com/drive/drive-os-5.2.0.0L/drive-os/index.html#page/DRIVE_OS_Linux_SDK_Development_Guide/Graphics/nvsci_nvscistream_sample_app.html#)
- ~/nvidia/nvidia\_sdk/DRIVE\_OS\_5.2.0\_SDK\_Linux\_OS\_DRIVE\_AGX\_XAVIER/DRIVEOS/drive-t186ref-linux/samples/nvsci/nvscistream

---

<div class="post-metadata">

**Author:** ![TomNVIDIA](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/tomnvidia/32/14181_2.png) [@TomNVIDIA](https://forums.developer.nvidia.com/u/TomNVIDIA)\
**Post date:** [October 12, 2021, 8:03pm UTC](https://forums.developer.nvidia.com/t/nvjpeg-available-for-driveos/186493/5 "2021-10-12T20:03:08Z")

</div>

Closed on October 12, 2021, 8:03pm UTC


