I see crop_and_resize can be used to both crop and resize an image. I want to use it to resize in-place a rgb565 frame from my camera. This is what I'd like to achieve:
capture images in JPEG at high resolution (e.g. 640x480)
convert to 1/8th RGB565 using jpg2rgb565(frame->buf, frame->len, rgb565, JPG_SCALE_8X)
I see
crop_and_resize
can be used to both crop and resize an image. I want to use it to resize in-place a rgb565 frame from my camera. This is what I'd like to achieve:jpg2rgb565(frame->buf, frame->len, rgb565, JPG_SCALE_8X)
dest
to square using the following:Will this work? I want to avoid allocating a new array of size 100x100 to store the resized image.