Jpeg resize using the multimedia

Hey! I’ve tried to build myself a jpeg resizer using the sample code (06_jpeg_decode + 05_jpeg_encode). Well its a hack, such that a temp YUV file written (by decoder) and read (be encoder). I’ve been struggling to figure out how to copy from the decoder’s capture plane onto the encoder’s output plane.Any hints/suggestions would be much appreciated.

PS - I did go over the video transcode sample but couldn’t make head or tails of it.

You can create NvBuffer in desired width/height and call NvBufferTransform() to convert decoded frames to the buffer. And then call encodeFromFd() to encode to JPEGs. May refer to code about MJPEG decoding in 12_camera_v4l2_cuda

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