2012-10-24 17:00:49 +00:00
|
|
|
#ifndef MPLAYER_SWS_UTILS_H
|
|
|
|
#define MPLAYER_SWS_UTILS_H
|
|
|
|
|
2012-10-19 17:11:58 +00:00
|
|
|
#include <stdbool.h>
|
2012-10-24 17:00:49 +00:00
|
|
|
#include <libswscale/swscale.h>
|
|
|
|
|
|
|
|
struct mp_image;
|
|
|
|
struct mp_csp_details;
|
|
|
|
|
|
|
|
// libswscale currently requires 16 bytes alignment for row pointers and
|
|
|
|
// strides. Otherwise, it will print warnings and use slow codepaths.
|
|
|
|
// Guaranteed to be a power of 2 and > 1.
|
|
|
|
#define SWS_MIN_BYTE_ALIGN 16
|
|
|
|
|
|
|
|
void sws_getFlagsAndFilterFromCmdLine(int *flags, SwsFilter **srcFilterParam,
|
|
|
|
SwsFilter **dstFilterParam);
|
|
|
|
struct SwsContext *sws_getContextFromCmdLine(int srcW, int srcH, int srcFormat,
|
|
|
|
int dstW, int dstH,
|
|
|
|
int dstFormat);
|
|
|
|
|
2012-10-19 17:11:58 +00:00
|
|
|
bool mp_sws_supported_format(int imgfmt);
|
|
|
|
|
2012-10-27 16:06:09 +00:00
|
|
|
void mp_image_swscale(struct mp_image *dst, struct mp_image *src,
|
2012-10-19 17:11:58 +00:00
|
|
|
int my_sws_flags);
|
2012-10-24 17:11:42 +00:00
|
|
|
|
2012-11-24 23:06:16 +00:00
|
|
|
void mp_image_sw_blur_scale(struct mp_image *dst, struct mp_image *src,
|
|
|
|
float gblur);
|
|
|
|
|
2012-10-24 17:00:49 +00:00
|
|
|
#endif /* MP_SWS_UTILS_H */
|
|
|
|
|
|
|
|
// vim: ts=4 sw=4 et tw=80
|