mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-28 04:35:15 +00:00
FS-7655: fix a few functions that need to be disabled without YUV
This commit is contained in:
parent
cf0c5709f2
commit
5734b9b2ce
@ -1838,6 +1838,7 @@ SWITCH_DECLARE(switch_status_t) switch_img_fit(switch_image_t **srcP, int width,
|
|||||||
|
|
||||||
SWITCH_DECLARE(switch_status_t) switch_img_convert(switch_image_t *src, switch_convert_fmt_t fmt, void *dest, switch_size_t *size)
|
SWITCH_DECLARE(switch_status_t) switch_img_convert(switch_image_t *src, switch_convert_fmt_t fmt, void *dest, switch_size_t *size)
|
||||||
{
|
{
|
||||||
|
#ifdef SWITCH_HAVE_YUV
|
||||||
switch_assert(src->fmt == SWITCH_IMG_FMT_I420);
|
switch_assert(src->fmt == SWITCH_IMG_FMT_I420);
|
||||||
|
|
||||||
switch (fmt) {
|
switch (fmt) {
|
||||||
@ -1858,12 +1859,14 @@ SWITCH_DECLARE(switch_status_t) switch_img_convert(switch_image_t *src, switch_c
|
|||||||
abort();
|
abort();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
return SWITCH_STATUS_FALSE;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
SWITCH_DECLARE(switch_status_t) switch_img_scale(switch_image_t *src, switch_image_t **destP, int width, int height)
|
SWITCH_DECLARE(switch_status_t) switch_img_scale(switch_image_t *src, switch_image_t **destP, int width, int height)
|
||||||
{
|
{
|
||||||
|
#ifdef SWITCH_HAVE_YUV
|
||||||
switch_image_t *dest = NULL;
|
switch_image_t *dest = NULL;
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
@ -1903,6 +1906,9 @@ SWITCH_DECLARE(switch_status_t) switch_img_scale(switch_image_t *src, switch_ima
|
|||||||
}
|
}
|
||||||
|
|
||||||
return SWITCH_STATUS_SUCCESS;
|
return SWITCH_STATUS_SUCCESS;
|
||||||
|
#else
|
||||||
|
return SWITCH_STATUS_FALSE;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
SWITCH_DECLARE(void) switch_img_find_position(switch_img_position_t pos, int sw, int sh, int iw, int ih, int *xP, int *yP)
|
SWITCH_DECLARE(void) switch_img_find_position(switch_img_position_t pos, int sw, int sh, int iw, int ih, int *xP, int *yP)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user