Home
last modified time | relevance | path

Searched refs:has_alpha (Results 1 – 5 of 5) sorted by relevance

/lvgl-3.4.0/src/widgets/
Dlv_canvas.c293 bool has_alpha = lv_img_cf_has_alpha(canvas->dsc.header.cf); in lv_canvas_blur_hor() local
324 if(has_alpha) opa = lv_img_buf_get_px_alpha(&line_img, x_safe, 0); in lv_canvas_blur_hor()
333 if(has_alpha) asum += opa; in lv_canvas_blur_hor()
337 if(has_alpha == false) asum = LV_OPA_COVER; in lv_canvas_blur_hor()
351 if(has_alpha) opa = asum / r; in lv_canvas_blur_hor()
355 if(has_alpha) lv_img_buf_set_px_alpha(&canvas->dsc, x, y, opa); in lv_canvas_blur_hor()
360 if(has_alpha) opa = lv_img_buf_get_px_alpha(&line_img, x_safe, 0); in lv_canvas_blur_hor()
369 if(has_alpha) asum -= opa; in lv_canvas_blur_hor()
374 if(has_alpha) opa = lv_img_buf_get_px_alpha(&line_img, x_safe, 0); in lv_canvas_blur_hor()
383 if(has_alpha) asum += opa; in lv_canvas_blur_hor()
[all …]
/lvgl-3.4.0/src/extra/libs/ffmpeg/
Dlv_ffmpeg.c56 bool has_alpha; member
173 bool has_alpha = player->ffmpeg_ctx->has_alpha; in lv_ffmpeg_player_set_src() local
178 if(has_alpha) { in lv_ffmpeg_player_set_src()
189 player->imgdsc.header.cf = has_alpha ? LV_IMG_CF_TRUE_COLOR_ALPHA : LV_IMG_CF_TRUE_COLOR; in lv_ffmpeg_player_set_src()
308 if(ffmpeg_ctx->has_alpha) { in decoder_open()
451 if(!ffmpeg_ctx->has_alpha) { in ffmpeg_output_video_frame()
601 bool has_alpha = ffmpeg_pix_fmt_has_alpha(video_dec_ctx->pix_fmt); in ffmpeg_get_img_header() local
607 header->cf = (has_alpha ? LV_IMG_CF_TRUE_COLOR_ALPHA : LV_IMG_CF_TRUE_COLOR); in ffmpeg_get_img_header()
706 ffmpeg_ctx->has_alpha = ffmpeg_pix_fmt_has_alpha(ffmpeg_ctx->video_dec_ctx->pix_fmt); in ffmpeg_open_file()
708 … ffmpeg_ctx->video_dst_pix_fmt = (ffmpeg_ctx->has_alpha ? AV_PIX_FMT_BGRA : AV_PIX_FMT_TRUE_COLOR); in ffmpeg_open_file()
[all …]
/lvgl-3.4.0/src/draw/
Dlv_draw_img.c162 bool has_alpha = false; in lv_img_cf_has_alpha() local
175 has_alpha = true; in lv_img_cf_has_alpha()
178 has_alpha = false; in lv_img_cf_has_alpha()
182 return has_alpha; in lv_img_cf_has_alpha()
Dlv_img_buf.c441 dsc->tmp.has_alpha = lv_img_cf_has_alpha(dsc->cfg.cf) ? 1 : 0; in _lv_img_buf_transform_init()
610 if(dsc->tmp.has_alpha == 0) { in _lv_img_buf_transform()
714 if(dsc->tmp.has_alpha) { in _lv_img_buf_transform_anti_alias()
725 if(dsc->tmp.has_alpha) { in _lv_img_buf_transform_anti_alias()
734 if(dsc->tmp.has_alpha) { in _lv_img_buf_transform_anti_alias()
Dlv_img_buf.h168 uint8_t has_alpha : 1; member