mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-17 00:34:13 +00:00
FS-7500: refactor to support Alpha channel on core image, only ARGB & I420 are supported
This commit is contained in:
1 parent
8f361ab00b
commit
0ddfea1d1b
6 files changed
+162
-87
No files matched your search
@@ -1227,7 +1227,7 @@ static void layer_set_logo(conference_member_t *member, mcu_layer_t *layer, cons
|
||||
}
|
||||
|
||||
if (path && strcasecmp(path, "clear")) {
|
||||
layer->logo_img = switch_img_read_png(path);
|
||||
layer->logo_img = switch_img_read_png(path, SWITCH_IMG_FMT_ARGB);
|
||||
}
|
||||
|
||||
layer->logo_pos = pos;
|
||||
@@ -1967,7 +1967,7 @@ static void *SWITCH_THREAD_FUNC conference_video_muxing_thread_run(switch_thread
|
||||
clear_layer(conference->canvas, layer);
|
||||
|
||||
if (!layer->mute_img && imember->video_mute_png) {
|
||||
layer->mute_img = switch_img_read_png(imember->video_mute_png);
|
||||
layer->mute_img = switch_img_read_png(imember->video_mute_png, SWITCH_IMG_FMT_I420);
|
||||
}
|
||||
|
||||
if (layer->mute_img) {
|
||||
@@ -3944,7 +3944,7 @@ static switch_status_t conference_add_member(conference_obj_t *conference, confe
|
||||
}
|
||||
|
||||
if (avatar) {
|
||||
member->avatar_png_img = switch_img_read_png(avatar);
|
||||
member->avatar_png_img = switch_img_read_png(avatar, SWITCH_IMG_FMT_I420);
|
||||
}
|
||||
|
||||
if ((var = switch_channel_get_variable_dup(member->channel, "video_mute_png", SWITCH_FALSE, -1))) {
|
||||
|
||||
@@ -74,7 +74,7 @@ static switch_status_t png_file_open(switch_file_handle_t *handle, const char *p
|
||||
|
||||
memset(context, 0, sizeof(png_file_context_t));
|
||||
|
||||
if (!(context->img = switch_img_read_png(path))) {
|
||||
if (!(context->img = switch_img_read_png(path, SWITCH_IMG_FMT_I420))) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error Opening %s\n", path);
|
||||
return SWITCH_STATUS_GENERR;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user