mirror of
https://github.com/mpv-player/mpv
synced 2025-01-08 16:10:29 +00:00
d4bdd0473d
Tis drops the silly lib prefixes, and attempts to organize the tree in a more logical way. Make the top-level directory less cluttered as well. Renames the following directories: libaf -> audio/filter libao2 -> audio/out libvo -> video/out libmpdemux -> demux Split libmpcodecs: vf* -> video/filter vd*, dec_video.* -> video/decode mp_image*, img_format*, ... -> video/ ad*, dec_audio.* -> audio/decode libaf/format.* is moved to audio/ - this is similar to how mp_image.* is located in video/. Move most top-level .c/.h files to core. (talloc.c/.h is left on top- level, because it's external.) Park some of the more annoying files in compat/. Some of these are relicts from the time mplayer used ffmpeg internals. sub/ is not split, because it's too much of a mess (subtitle code is mixed with OSD display and rendering). Maybe the organization of core is not ideal: it mixes playback core (like mplayer.c) and utility helpers (like bstr.c/h). Should the need arise, the playback core will be moved somewhere else, while core contains all helper and common code.
34 lines
1.2 KiB
C
34 lines
1.2 KiB
C
#ifndef MPLAYER_SWS_UTILS_H
|
|
#define MPLAYER_SWS_UTILS_H
|
|
|
|
#include <stdbool.h>
|
|
#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);
|
|
struct SwsContext *sws_getContextFromCmdLine_hq(int srcW, int srcH,
|
|
int srcFormat, int dstW,
|
|
int dstH,
|
|
int dstFormat);
|
|
int mp_sws_set_colorspace(struct SwsContext *sws, struct mp_csp_details *csp);
|
|
|
|
bool mp_sws_supported_format(int imgfmt);
|
|
|
|
void mp_image_swscale(struct mp_image *dst, struct mp_image *src,
|
|
int my_sws_flags);
|
|
|
|
#endif /* MP_SWS_UTILS_H */
|
|
|
|
// vim: ts=4 sw=4 et tw=80
|