diff options
author | Niklas Haas <git@haasn.dev> | 2022-04-09 23:58:59 +0200 |
---|---|---|
committer | Niklas Haas <github-daiK1o@haasn.dev> | 2022-04-11 15:43:51 +0200 |
commit | 26a3a0686179627de6c9bffd45ae4c15a0b37771 (patch) | |
tree | d2523ba898c4ca1161767ee81a138035f2301cc1 /video/out/gpu/hwdec.h | |
parent | 2cafe5137f1544df130face8f748cc571ddf0445 (diff) | |
download | mpv-26a3a0686179627de6c9bffd45ae4c15a0b37771.tar.bz2 mpv-26a3a0686179627de6c9bffd45ae4c15a0b37771.tar.xz |
vo_gpu_next: switch to unpooled hwdec mapping
This makes use of the new frame acquire/release callbacks to hold on to
hwdec images only as long as necessary. This should greatly improve the
smoothness/efficiency of hwdec interop, by not holding on to them for
longer than needed.
This also avoids the need to pool hwdec mappers altogether.
Should fix #10067 as well, since frames are now only mapped when we
actually use them.
Diffstat (limited to 'video/out/gpu/hwdec.h')
-rw-r--r-- | video/out/gpu/hwdec.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/gpu/hwdec.h b/video/out/gpu/hwdec.h index 9026f40ef3..24a2efc344 100644 --- a/video/out/gpu/hwdec.h +++ b/video/out/gpu/hwdec.h @@ -138,7 +138,7 @@ void ra_hwdec_uninit(struct ra_hwdec *hwdec); bool ra_hwdec_test_format(struct ra_hwdec *hwdec, int imgfmt); struct ra_hwdec_mapper *ra_hwdec_mapper_create(struct ra_hwdec *hwdec, - struct mp_image_params *params); + const struct mp_image_params *params); void ra_hwdec_mapper_free(struct ra_hwdec_mapper **mapper); void ra_hwdec_mapper_unmap(struct ra_hwdec_mapper *mapper); int ra_hwdec_mapper_map(struct ra_hwdec_mapper *mapper, struct mp_image *img); |