Lines Matching refs:cf

145             header->cf = header->magic;  in lv_bin_decoder_info()
159 header->cf = LV_COLOR_FORMAT_A8; in lv_bin_decoder_info()
216 lv_color_format_t cf = dsc->header.cf; in lv_bin_decoder_open() local
221 else if(LV_COLOR_FORMAT_IS_INDEXED(cf)) { in lv_bin_decoder_open()
230 else if(LV_COLOR_FORMAT_IS_ALPHA_ONLY(cf)) { in lv_bin_decoder_open()
234 else if(cf == LV_COLOR_FORMAT_ARGB8888 \ in lv_bin_decoder_open()
235 || cf == LV_COLOR_FORMAT_XRGB8888 \ in lv_bin_decoder_open()
236 || cf == LV_COLOR_FORMAT_RGB888 \ in lv_bin_decoder_open()
237 || cf == LV_COLOR_FORMAT_RGB565 \ in lv_bin_decoder_open()
238 || cf == LV_COLOR_FORMAT_RGB565A8 \ in lv_bin_decoder_open()
239 || cf == LV_COLOR_FORMAT_ARGB8565) { in lv_bin_decoder_open()
257 lv_color_format_t cf = image->header.cf; in lv_bin_decoder_open() local
261 else if(LV_COLOR_FORMAT_IS_INDEXED(cf)) { in lv_bin_decoder_open()
277 else if(LV_COLOR_FORMAT_IS_ALPHA_ONLY(cf)) { in lv_bin_decoder_open()
278 if(cf == LV_COLOR_FORMAT_A8) { in lv_bin_decoder_open()
307 tmp.header.stride = (tmp.header.w * lv_color_format_get_bpp(cf) + 7) >> 3; in lv_bin_decoder_open()
394 lv_color_format_t cf = dsc->header.cf; in lv_bin_decoder_get_area() local
397 bool supported = LV_COLOR_FORMAT_IS_INDEXED(cf) in lv_bin_decoder_get_area()
398 || cf == LV_COLOR_FORMAT_ARGB8888 \ in lv_bin_decoder_get_area()
399 || cf == LV_COLOR_FORMAT_XRGB8888 \ in lv_bin_decoder_get_area()
400 || cf == LV_COLOR_FORMAT_RGB888 \ in lv_bin_decoder_get_area()
401 || cf == LV_COLOR_FORMAT_RGB565 \ in lv_bin_decoder_get_area()
402 || cf == LV_COLOR_FORMAT_ARGB8565 \ in lv_bin_decoder_get_area()
403 || cf == LV_COLOR_FORMAT_RGB565A8; in lv_bin_decoder_get_area()
405 LV_LOG_WARN("CF: %d is not supported", cf); in lv_bin_decoder_get_area()
417 uint32_t bpp = lv_color_format_get_bpp(cf); in lv_bin_decoder_get_area()
426 … lv_color_format_t cf_decoded = LV_COLOR_FORMAT_IS_INDEXED(cf) ? LV_COLOR_FORMAT_ARGB8888 : cf; in lv_bin_decoder_get_area()
453 if(LV_COLOR_FORMAT_IS_INDEXED(cf)) { in lv_bin_decoder_get_area()
478 decode_indexed_line(cf, dsc->palette, x_fraction, w_px, buf, (lv_color32_t *)img_data); in lv_bin_decoder_get_area()
486 …if(cf == LV_COLOR_FORMAT_ARGB8888 || cf == LV_COLOR_FORMAT_XRGB8888 || cf == LV_COLOR_FORMAT_RGB888 in lv_bin_decoder_get_area()
487 || cf == LV_COLOR_FORMAT_RGB565 || cf == LV_COLOR_FORMAT_ARGB8565) { in lv_bin_decoder_get_area()
500 if(cf == LV_COLOR_FORMAT_RGB565A8) { in lv_bin_decoder_get_area()
572 lv_color_format_t cf = dsc->header.cf; in decode_indexed() local
573 uint32_t palette_len = sizeof(lv_color32_t) * LV_COLOR_INDEXED_PALETTE_SIZE(cf); in decode_indexed()
604 …uf_indexed = lv_draw_buf_create_ex(image_cache_draw_buf_handlers, dsc->header.w, dsc->header.h, cf, in decode_indexed()
639 dsc->palette_size = LV_COLOR_INDEXED_PALETTE_SIZE(cf); in decode_indexed()
657 decode_indexed_line(cf, dsc->palette, 0, dsc->header.w, in, (lv_color32_t *)out); in decode_indexed()
734 lv_color_format_t cf = dsc->header.cf; in load_indexed()
736 … * decoded = lv_draw_buf_create_ex(image_cache_draw_buf_handlers, dsc->header.w, dsc->header.h, cf, in load_indexed()
744 uint32_t palette_len = sizeof(lv_color32_t) * LV_COLOR_INDEXED_PALETTE_SIZE(cf); in load_indexed()
787 lv_color_format_t cf = dsc->header.cf; in decode_rgb() local
790 if(cf == LV_COLOR_FORMAT_RGB565A8) { in decode_rgb()
794 … * decoded = lv_draw_buf_create_ex(image_cache_draw_buf_handlers, dsc->header.w, dsc->header.h, cf, in decode_rgb()
840 uint8_t bpp = lv_color_format_get_bpp(dsc->header.cf); in decode_alpha_only()
873 if(dsc->header.cf != LV_COLOR_FORMAT_A8) { in decode_alpha_only()
995 lv_color_format_t cf = dsc->header.cf; in decode_compressed() local
996 if(LV_COLOR_FORMAT_IS_INDEXED(cf)) { in decode_compressed()
1000 else if(LV_COLOR_FORMAT_IS_ALPHA_ONLY(cf)) { in decode_compressed()
1104 dsc->header.cf, in decompress_image()
1123 if(dsc->header.cf == LV_COLOR_FORMAT_RGB565A8) in decompress_image()
1126 pixel_byte = (lv_color_format_get_bpp(dsc->header.cf) + 7) >> 3; in decompress_image()