mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-16 14:28:34 +00:00
FS-8867: create conversion function stubs in the core so modules do not need to use libyuv directly
This commit is contained in:
1 parent
cd2c86b427
commit
ed78d38994
6 files changed
+165
-44
No files matched your search
@@ -34,8 +34,6 @@
|
||||
|
||||
|
||||
#include <switch.h>
|
||||
#include <libyuv.h>
|
||||
|
||||
|
||||
#if defined(__clang__)
|
||||
/* the imagemagick header files are very badly broken on clang. They really should be fixing this, in the mean time, this dirty hack works */
|
||||
@@ -263,12 +261,7 @@ static switch_status_t read_page(pdf_file_context_t *context)
|
||||
return SWITCH_STATUS_FALSE;
|
||||
}
|
||||
|
||||
RAWToI420(storage, w * 3,
|
||||
context->img->planes[0], context->img->stride[0],
|
||||
context->img->planes[1], context->img->stride[1],
|
||||
context->img->planes[2], context->img->stride[2],
|
||||
context->img->d_w, context->img->d_h);
|
||||
|
||||
switch_img_from_raw(context->img, storage, SWITCH_IMG_FMT_BGR24, w, h);
|
||||
free(storage);
|
||||
} else {
|
||||
switch_image_t *img = switch_img_alloc(NULL, SWITCH_IMG_FMT_ARGB, image->columns, image->rows, 0);
|
||||
|
||||
Reference in new issue
Block a user