summaryrefslogtreecommitdiff
path: root/src/render
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2024-12-24 14:52:51 -0500
committerAndrew Opalach <andrew@akon.city> 2024-12-24 14:52:51 -0500
commit5206f05fdf77bb65c125ddb133cf46a59608c671 (patch)
tree69707685b0245f1db508a6bce98d8ab5399a932c /src/render
parent3d55d2722a3129449ab1418e73abd97caa7fd2ae (diff)
downloadcamu-5206f05fdf77bb65c125ddb133cf46a59608c671.tar.gz
camu-5206f05fdf77bb65c125ddb133cf46a59608c671.tar.bz2
camu-5206f05fdf77bb65c125ddb133cf46a59608c671.zip
Bring in line with dependency changes
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'src/render')
-rw-r--r--src/render/queue_libplacebo.c8
-rw-r--r--src/render/renderer_libplacebo.c14
2 files changed, 8 insertions, 14 deletions
diff --git a/src/render/queue_libplacebo.c b/src/render/queue_libplacebo.c
index 8ecf9ce..07ce379 100644
--- a/src/render/queue_libplacebo.c
+++ b/src/render/queue_libplacebo.c
@@ -234,13 +234,7 @@ static void unmap_av_frame(pl_gpu gpu, struct pl_frame *frame, const struct pl_s
}
al_free((struct pl_overlay_part *)current->parts);
}
- struct camu_overlay_lp *roverlay;
- al_array_foreach(lq->overlays, i, roverlay) {
- if (roverlay == overlay) {
- al_array_remove_at(lq->overlays, i);
- break;
- }
- }
+ al_array_remove(lq->overlays, overlay);
al_free(overlay);
}
}
diff --git a/src/render/renderer_libplacebo.c b/src/render/renderer_libplacebo.c
index 49addb0..9fedc5f 100644
--- a/src/render/renderer_libplacebo.c
+++ b/src/render/renderer_libplacebo.c
@@ -1,6 +1,6 @@
#include <al/lib.h>
#include <al/log.h>
-#include <aki/file.h>
+#include <nnwt/file.h>
#ifdef CAMU_HAVE_FFMPEG
#include <libplacebo/utils/libav.h>
#endif
@@ -129,9 +129,9 @@ static bool renderer_lp_create_renderer(struct camu_renderer *renderer, s32 *wid
pl_swapchain_resize(lr->swapchain, width, height);
al_memset(&lr->params, 0, sizeof(struct pl_render_params));
- lr->params = pl_render_fast_params;
+ //lr->params = pl_render_fast_params;
//lr->params.upscaler = &pl_filter_nearest;
- //lr->params = pl_render_default_params;
+ lr->params = pl_render_default_params;
//lr->params = pl_render_high_quality_params;
lr->params.deband_params = NULL;
@@ -139,14 +139,14 @@ static bool renderer_lp_create_renderer(struct camu_renderer *renderer, s32 *wid
lr->params.skip_caching_single_frame = true;
// Clear manually so we can draw multiple images per frame.
lr->params.border = PL_CLEAR_SKIP;
- // Prioritize a more consistant image.
+ // Prioritize a more consistent image.
lr->params.correct_subpixel_offsets = true;
#if 0
- struct aki_file file;
- if (aki_file_open(&file, al_str_c(""), 0)) {
+ struct nn_file file;
+ if (nn_file_open(&file, al_str_c(""), 0)) {
char *str;
- size_t len = aki_file_read_as_c_str(&file, &str);
+ size_t len = nn_file_read_as_c_str(&file, &str);
const struct pl_hook *hook = pl_mpv_user_shader_parse(lr->gpu, (const char *)str, len);
const struct pl_hook **hooks = al_malloc(sizeof(struct pl_hook *));
hooks[0] = al_malloc(sizeof(struct pl_hook));