Is support YUV to RGB in Image 2D

Please provide the following info (tick the boxes after creating this topic):
Software Version
DRIVE OS 6.0.8.1
DRIVE OS 6.0.6
[√] DRIVE OS 6.0.5
DRIVE OS 6.0.4 (rev. 1)
DRIVE OS 6.0.4 SDK
other

Target Operating System
[√] Linux
QNX
other

Hardware Platform
DRIVE AGX Orin Developer Kit (940-63710-0010-300)
[√] DRIVE AGX Orin Developer Kit (940-63710-0010-200)
DRIVE AGX Orin Developer Kit (940-63710-0010-100)
DRIVE AGX Orin Developer Kit (940-63710-0010-D00)
DRIVE AGX Orin Developer Kit (940-63710-0010-C00)
DRIVE AGX Orin Developer Kit (not sure its number)
other

SDK Manager Version
1.9.3.10904
[√] other

Host Machine Version
[√] native Ubuntu Linux 20.04 Host installed with SDK Manager
native Ubuntu Linux 20.04 Host installed with DRIVE OS Docker Containers
native Ubuntu Linux 18.04 Host installed with DRIVE OS Docker Containers
other

Hi,
I find that Image 2D performs format conversion to/from YUV to RGB in NVIDIA DRIVE OS Linux SDK Developer Guide, but i don’t find some samples, how can i achieve it?

Please always upgrade to the latest release (currently 6.0.8.1). Once upgraded, you can refer to the “Image 2D (nvmimg_2d)” document on setting the destination parameters in configuration file to achieve the desired format conversion from YUV to RGB and vice versa.

Hi @VickNV
I have upgrade to the latest release (currently 6.0.8.1), i find some configuration files, but them can’t achieve the desired format conversion from YUV to RGB, how can i modify the configuration file?
image

the desired format conversion.
You can refer to below template to create and edit a file based on your requirements:

# convert UYVY planar into RGBA
SrcLayer1InputFile = 3840x2048.nv12
SrcLayer1Layout = PitchLinear
SrcLayer1ScanType = Progressive
SrcLayer1Plane1ColorFormat = Y8 
SrcLayer1Plane1Width = 3840 
SrcLayer1Plane1Height = 2048 
SrcLayer1Plane2ColorFormat = U8_V8 
SrcLayer1Plane2Width = 1920 
SrcLayer1Plane2Height = 1024 
SrcLayer1Filtering = Low 

DstOutputFile = 3840x1080.rgba
DstLayout = PitchLinear
DstScanType = Progressive
DstPlane1ColorStandard = REC2020_RGB
DstPlane1ColorFormat = A8B8G8R8
DstPlane1Width = 3840 
DstPlane1Height = 1080 
FileIOMode = LineByLine

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.