NvMediaLDCProcess + GEOTRANS_TNR3 + Custom Output Resolution

Hello,

When selecting a different output resolution than input resolution for the LDC API in the mode NVMEDIA_LDC_MODE_GEOTRANS it works perfectly fine.

As soon as the mode is set to NVMEDIA_LDC_MODE_GEOTRANS_TNR3 to enable TNR3 on top of the geotrans feature it fails to work unless the input and output resolutions are identical.

When testing the sample app nvmimg_ldc I get the following error:

 ./nvmimg_ldc -cf ldc_GeoTrans_TNR3.conf
NVM_LDC     :  954,  Version 2.1
NVM_LDC     : 1806, ERR: TVMRLDCProcess failed:1
nvmedia: ERROR: NvMediaLDCProcess failed! status = 1

I changed the following lines in the ldc_GeoTrans_TNR3.conf

# Params for NvMediaLDCCreate
# srcWidth width of the source image.
srcWidth = 1936
# srcHeight height of the source image.
srcHeight = 1216

# srcRect Structure containing co-ordinates of the rectangle in the source image.
# Left X co-ordinate. Inclusive.
srcRectx0 = 0
# Top Y co-ordinate. Inclusive.
srcRecty0 = 0
# Right X co-ordinate. Exclusive.
srcRectx1 = 1936
# Bottom Y co-ordinate. Exclusive.
srcRecty1 = 1216

Is it possible to run TNR3 while also changing the resolution at the same time?

Software Version
DRIVE OS Linux 5.2.6

Target Operating System
Linux

Hardware Platform
NVIDIA DRIVE™ AGX Xavier DevKit (E3550)

Hi @richard5

Thanks for raising your issue here. We will check it internally and get back to you.

@richard5 please help share the issue log for our review.

Please help me to understand. What do you mean by issue log?
I attached the entire ldc_GeoTrans_TNR3.conf (13.2 KB) if that helps.

The output of the sample app is only this:

 ./nvmimg_ldc -cf ldc_GeoTrans_TNR3.conf
NVM_LDC     :  954,  Version 2.1
NVM_LDC     : 1806, ERR: TVMRLDCProcess failed:1
nvmedia: ERROR: NvMediaLDCProcess failed! status = 1

Please help provide syslog of the issue. Thanks.

There is nothing in the syslogs about this error

nvidia@ve-camlab-0001a:~/drive-t186ref-linux/samples/nvmedia/img_ldc$ date
Thu Aug 18 12:52:09 CEST 2022
nvidia@ve-camlab-0001a:~/drive-t186ref-linux/samples/nvmedia/img_ldc$ ./nvmimg_ldc -cf ldc_GeoTrans_TNR3.conf
NVM_LDC     :  954,  Version 2.1
NVM_LDC     : 1806, ERR: TVMRLDCProcess failed:1
nvmedia: ERROR: NvMediaLDCProcess failed! status = 1
nvidia@ve-camlab-0001a:~/drive-t186ref-linux/samples/nvmedia/img_ldc$ tail /var/log/syslog
Aug 18 12:46:18 ve-camlab-0001a systemd[27689]: Listening on GnuPG cryptographic agent and passphrase cache (restricted).
Aug 18 12:46:18 ve-camlab-0001a systemd[27689]: Listening on GnuPG cryptographic agent and passphrase cache.
Aug 18 12:46:18 ve-camlab-0001a systemd[27689]: Reached target Paths.
Aug 18 12:46:18 ve-camlab-0001a systemd[27689]: Listening on GnuPG network certificate management daemon.
Aug 18 12:46:18 ve-camlab-0001a systemd[27689]: Listening on D-Bus User Message Bus Socket.
Aug 18 12:46:18 ve-camlab-0001a systemd[27689]: Reached target Sockets.
Aug 18 12:46:18 ve-camlab-0001a systemd[27689]: Reached target Basic System.
Aug 18 12:46:18 ve-camlab-0001a systemd[27689]: Reached target Default.
Aug 18 12:46:18 ve-camlab-0001a systemd[27689]: Startup finished in 79ms.
Aug 18 12:46:18 ve-camlab-0001a systemd[1]: Started User Manager for UID 1000.

Does reproducing the issue need flickering_cam_8_out_1.yuv? Please help us reproduce it for our investigation.

No the file can also be the original. It should be large enough though to support the larger resolution. You can also go with the original resolution but reduce the target resolution. That will produce the same error code.

Please help modify and share ldc_GeoTrans_TNR3.conf to reproduce the same issue with the original input file (fisheye_1280_1080_yuv420.yuv) for our investigation. Thanks.

Please see the attached file.

ldc_GeoTrans_TNR3.conf (13.2 KB)

Please also share the 1936x1216 input file you’re using. Thanks.

I reproduced it using the default files. I reduced the number of frames to process to 1.
Since it is an raw YUV file input it should still work without problems but it does not.
Please run the program with the program with the ldc_GeoTrans_TNR3.conf I attached to my previous message.

It would also be possible to leave the original resolution as is and reduce the target resolution. That results in the same error code.

Last time I had a quick try and saw a different error code. Please share this modified conf file with which you saw the same error code. Thanks.