diff options
Diffstat (limited to 'video/out/placebo/utils.h')
-rw-r--r-- | video/out/placebo/utils.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/video/out/placebo/utils.h b/video/out/placebo/utils.h new file mode 100644 index 0000000000..03bcb0f252 --- /dev/null +++ b/video/out/placebo/utils.h @@ -0,0 +1,18 @@ +#pragma once + +#include "common/common.h" +#include "common/msg.h" + +#include <libplacebo/common.h> + +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, + }; +} |