Is anyone at hand with the YUY2 packed format scale routine in C/C++, without intermediary conversions to another color space? I cannot use any libraries like IPP, because its an embedded linux system…
Ideally such function should have this declaration:
bool YUY2_scale( uint8_t *in_buf, int in_width, int in_height, int in_linesize, uint8_t *out_buf, int out_width, int out_height, int out_linesize );
You can use
libswscalefrom the FFmpeg/libav/mplayer projects. It’s the best there is.