How to convert YUV422 to jpeg on openMV?

I want to use bool jpeg_compress(image_t *src, image_t *dst, int quality, bool realloc) on STM32H743.
but, can I put in *src in YUV422 format?

I need compress YUV422 to jpeg.

The code for the HW encoder only handles GS, RGB565 and YUV444.

Just modify the feeder code to duplicate the U/V parts of YUV422 to get YUV444.