2018-11-10 11:53:33 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "common/common.h"
|
|
|
|
#include "common/msg.h"
|
2021-04-09 07:14:54 +00:00
|
|
|
#include "video/csputils.h"
|
2018-11-10 11:53:33 +00:00
|
|
|
|
|
|
|
#include <libplacebo/common.h>
|
2021-10-04 09:53:04 +00:00
|
|
|
#include <libplacebo/context.h>
|
2021-04-09 07:14:54 +00:00
|
|
|
#include <libplacebo/colorspace.h>
|
2018-11-10 11:53:33 +00:00
|
|
|
|
|
|
|
void mppl_ctx_set_log(struct pl_context *ctx, struct mp_log *log, bool probing);
|
|
|
|
|
|
|
|
static inline struct pl_rect2d mp_rect2d_to_pl(struct mp_rect rc)
|
|
|
|
{
|
|
|
|
return (struct pl_rect2d) {
|
|
|
|
.x0 = rc.x0,
|
|
|
|
.y0 = rc.y0,
|
|
|
|
.x1 = rc.x1,
|
|
|
|
.y1 = rc.y1,
|
|
|
|
};
|
|
|
|
}
|
2021-04-09 07:14:54 +00:00
|
|
|
|
|
|
|
enum pl_color_primaries mp_prim_to_pl(enum mp_csp_prim prim);
|
|
|
|
enum pl_color_transfer mp_trc_to_pl(enum mp_csp_trc trc);
|
|
|
|
enum pl_color_light mp_light_to_pl(enum mp_csp_light light);
|
|
|
|
enum pl_color_system mp_csp_to_pl(enum mp_csp csp);
|
|
|
|
enum pl_color_levels mp_levels_to_pl(enum mp_csp_levels levels);
|
|
|
|
enum pl_alpha_mode mp_alpha_to_pl(enum mp_alpha_type alpha);
|
|
|
|
enum pl_chroma_location mp_chroma_to_pl(enum mp_chroma_location chroma);
|