Hi!
I’m on jetson orin nx with jetpack 6.2.1 and vpi 3.2.4.
This is how I was creating my VPIImageData buffer:
VPIImageData* inputData = reinterpret_cast<VPIImageData*>(inputDataBuffer);
memset(inputData, 0, sizeof(VPIImageData));
inputData->bufferType = VPI_IMAGE_BUFFER_CUDA_PITCH_LINEAR;
inputData->buffer.pitch.format = VPI_IMAGE_FORMAT_RGB8;
inputData->buffer.pitch.numPlanes = 1;
inputData->buffer.pitch.planes[0].data = d_zoomed_img;
inputData->buffer.pitch.planes[0].pitchBytes = prev_width * 3;
inputData->buffer.pitch.planes[0].width = prev_width;
inputData->buffer.pitch.planes[0].height = prev_height;
But now when I tried to compile it with VPI 4 (had to ask someone to run it on their x86 machine as jetpack 6 doesn’t allow to install VPI 4), I’m getting this error:
error: class "VPIImagePlanePitchLinearRec" has no member "data"
Then I realized that the new variable name is changed from .data to .pBase
I’m trying to create a package using VPI which can work across all jetson enviorments but it seems like with every VPI version, there are major changes in the syntax and on jetson enviorments one cannot update their VPI package as suggested on my other post (link).
What should I do now?