summaryrefslogtreecommitdiffstats
path: root/video/out/placebo/utils.h
blob: e6b43fcac3b4b612ffbeb5fdc3209ac38a0f89e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

#include "common/common.h"
#include "common/msg.h"

#include <libplacebo/common.h>
#include <libplacebo/context.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,
    };
}