/*The first byte shows the type of the image source*/
if(u8_p[0]>='A'&&u8_p[0]<='Z')returnLV_IMG_SRC_FILE;/*It's a driver letter*/
elseif(u8_p[0]>=127)returnLV_IMG_SRC_SYMBOL;/*After ASCII letteres only symbols (even UTF-8) can be*/
elseif(((u8_p[0]&0xFC)>>2)==LV_IMG_FORMAT_INTERNAL_RAW)returnLV_IMG_SRC_VARIABLE;/*Mask the file format part og of lv_img_t header. IT should be 0 which means C array */
elseif(u8_p[0]>=' ')returnLV_IMG_SRC_SYMBOL;/*Other printable characters are considered symbols*/