Sample application modification point to use YUYV custom camera

Sorry for late answer.
I tried with your modify suggestion.
But result is still same.

We tried it with 720p camera firmware(actually we make 720p supporting firmware for camera module)
It worked succesfully.(I mean example 12 working perfectly with our 720p camera module)

I thought that NVrenderer looks only support official resolution.
Could you tell us how to enable it with our camera resolution?

HI @DaneLLL
We are really waiting your answer.
We have no option now. we should use our custom resolution(1824x940).
To use it, we need working NVrenderer for preview test and verification.

Hi wooleeyang,
We have tried to simulate your case by modifying the sample:

// Create EGL renderer
    ctx->renderer = NvEglRenderer::createEglRenderer("renderer0",
            1824, 940, 0, 0);
input_params.width = 1824;
    input_params.height = 940;
    // Create Render buffer
    if (-1 == NvBufferCreateEx(&ctx->render_dmabuf_fd, &input_params))
        ERROR_RETURN("Failed to create NvBuffer");
$ ./camera_v4l2_cuda -d /dev/video1 -s 1920x1080 -f UYVY

And it runs well without issues. The difference is that the source is 1920x1080 and yours is 1824x940.

We would like to help, but don’t have the sensor and cannot reproduce the issue. Please consider to contact NVIDIA salesperson. Let’s see if we can have further cooperation.

Below is debug log when it excuted.
Please tell me if have any clue in this log. I will find sales person
nvidia@:$ ./camera_v4l2_cuda -d /dev/video0 -s 1824x941 -f YUYV
[INFO] (NvEglRenderer.cpp:109) Setting Screen width 1824 height 941
[INFO] (NvEglRenderer.cpp:111) :Display opened successfully 4724960
[INFO] (NvEglRenderer.cpp:199) :Egl Got display 547407009040
[INFO] (NvEglRenderer.cpp:216) :Got numconfigs as 1
[INFO] (NvEglRenderer.cpp:667) :Shaders intialized
[INFO] (NvEglRenderer.cpp:253) :Starting render thread
[INFO] (NvEglRenderer.cpp:148) :Renderer started successfully
WARN: request_camera_buff(): (line:326) Camera v4l2 buf length is not expected
WARN: request_camera_buff(): (line:326) Camera v4l2 buf length is not expected
WARN: request_camera_buff(): (line:326) Camera v4l2 buf length is not expected
WARN: request_camera_buff(): (line:326) Camera v4l2 buf length is not expected
[INFO] (NvEglRenderer.cpp:364) :Rendering fd=1057
[INFO] (NvEglRenderer.cpp:267) :Rendered fd=1057
[INFO] (NvEglRenderer.cpp:364) :Rendering fd=1057
[INFO] (NvEglRenderer.cpp:267) :Rendered fd=1057
[INFO] (NvEglRenderer.cpp:364) :Rendering fd=1057

Hi wooleeyang, please contact NVIDIA salesperson to have further cooperation.