I’m trying to create an encoder that will conditionally output areas of a video stream. These areas are always rectangles with width and height divisible by 16, but they do not always have their origin at the top left of the source frame.
How do I tell the nvidia encoder that I want it to start reading from a non-0 offset of the provided CUDA frame? I see that there is an inputPitch in NV_ENC_PIC_PARAMS, but I cannot see any parameters that allow me to move the read origin.
I understand that I could simply copy a cropped portion via a device to device memcpy, but I’m in a very performance constrained environment, so it would be ideal for NVENC to read at an offset.