2018-11-10 11:53:33 +00:00
|
|
|
#pragma once
|
|
|
|
|
2023-02-14 02:28:40 +00:00
|
|
|
#include "config.h"
|
2018-11-10 11:53:33 +00:00
|
|
|
#include "common/common.h"
|
|
|
|
#include "common/msg.h"
|
2021-04-09 07:14:54 +00:00
|
|
|
#include "video/csputils.h"
|
2023-02-14 02:28:40 +00:00
|
|
|
#include "video/mp_image.h"
|
|
|
|
|
|
|
|
#include <libavutil/buffer.h>
|
2018-11-10 11:53:33 +00:00
|
|
|
|
|
|
|
#include <libplacebo/common.h>
|
2022-07-16 06:20:18 +00:00
|
|
|
#include <libplacebo/log.h>
|
2021-04-09 07:14:54 +00:00
|
|
|
#include <libplacebo/colorspace.h>
|
2023-02-14 02:28:40 +00:00
|
|
|
#include <libplacebo/renderer.h>
|
|
|
|
#include <libplacebo/utils/libav.h>
|
2018-11-10 11:53:33 +00:00
|
|
|
|
2022-10-05 19:41:36 +00:00
|
|
|
pl_log mppl_log_create(void *tactx, struct mp_log *log);
|
2022-02-03 15:20:18 +00:00
|
|
|
void mppl_log_set_probing(pl_log log, bool probing);
|
2018-11-10 11:53:33 +00:00
|
|
|
|
|
|
|
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,
|
|
|
|
};
|
|
|
|
}
|