unsigned i,num_pixels=src_size/3; for(i=0; i<num_pixels; i+=3)
unsigned j,i,num_pixels=src_size/3; uint16_t *d = (uint16_t *)dst; for(i=0,j=0; j<num_pixels; i+=3,j++)
void rgb24to16(const uint8_t *src, uint8_t *dst, unsigned src_size){	unsigned i,num_pixels=src_size/3;	for(i=0; i<num_pixels; i+=3)	{		const int b= src[i+0];		const int g= src[i+1];		const int r= src[i+2];		((uint16_t *)dst)[i]= (b>>3) | ((g&0xFC)<<3) | ((r&0xF8)<<8);	}}