mirror of
https://github.com/mpv-player/mpv
synced 2025-02-08 16:07:16 +00:00
The new status quo is simple: all messages coming from libplacebo are marked "vo/gpu{-next}/libplacebo", regardless of the backend API (vulkan vs opengl/d3d11). Messages coming from mpv's internal vulkan code will continue to come from "vo/gpu{-next}/vulkan", and messages coming from the vo module itself will be marked "vo/gpu{-next}". This is significantly better than the old status quo of vulkan messages coming from "vo/gpu{-next}/vulkan/libplacebo" whereas opengl/d3d11 messages simply came from "vo/gpu{-next}", even when those messages originated from libplacebo. (It's worth noting that the the destructor for the log is redundant because it's attached to the ctx which is freed on uninit anyway)
30 lines
865 B
C
30 lines
865 B
C
#pragma once
|
|
|
|
#include "common/common.h"
|
|
#include "common/msg.h"
|
|
#include "video/csputils.h"
|
|
|
|
#include <libplacebo/common.h>
|
|
#include <libplacebo/log.h>
|
|
#include <libplacebo/colorspace.h>
|
|
|
|
pl_log mppl_log_create(void *tactx, struct mp_log *log);
|
|
void mppl_log_set_probing(pl_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,
|
|
};
|
|
}
|
|
|
|
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_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);
|