Tool/software:
If using v4l2 encoding directly, I can set the output image size using the following method:
struct v4l2_selection selection;
selection.type =V4L2_BUF TYPE_VIDEO_OUTPUT_ MPLANE;
selection.target = V4L2_SEL TGT_CROP;
selection.r.left =20;
selection.r.top =20;
selection.r.width =w;
selection.r.height = h;
ioctl(fd,VIDIOC S SELECTION,&selection);
Now I am using v4l2h265enc encoding, how should I set the size of the output image?