mirror of
https://github.com/mpv-player/mpv
synced 2025-01-10 00:49:32 +00:00
564f3dba56
This was removed from common.h upstream since it was a cyclic dependency. We need to re-import it into utils.h manually.
20 lines
405 B
C
20 lines
405 B
C
#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,
|
|
};
|
|
}
|