diff options
author | Lynne <dev@lynne.ee> | 2022-04-03 14:17:43 +0200 |
---|---|---|
committer | Niklas Haas <github-daiK1o@haasn.dev> | 2022-04-05 15:02:18 +0200 |
commit | f61eda0f5e9f8085003c4c31111db525a438cbc1 (patch) | |
tree | 59d4f76dded9c8028730d42751b881fa2c76485c /video/out | |
parent | 4149cc2ce31dfb5485fe7a947c3f6356e0bd1583 (diff) | |
download | mpv-f61eda0f5e9f8085003c4c31111db525a438cbc1.tar.bz2 mpv-f61eda0f5e9f8085003c4c31111db525a438cbc1.tar.xz |
vd_lavc: add vo caps and option to set GPU film grain application
Diffstat (limited to 'video/out')
-rw-r--r-- | video/out/vo.h | 2 | ||||
-rw-r--r-- | video/out/vo_gpu_next.c | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/video/out/vo.h b/video/out/vo.h index 63d6c7caa7..8ccfe3ccfe 100644 --- a/video/out/vo.h +++ b/video/out/vo.h @@ -180,6 +180,8 @@ enum { VO_CAP_FRAMEDROP = 1 << 1, // VO does not allow frames to be retained (vo_mediacodec_embed). VO_CAP_NORETAIN = 1 << 2, + // VO supports applying film grain + VO_CAP_FILM_GRAIN = 1 << 3, }; #define VO_MAX_REQ_FRAMES 10 diff --git a/video/out/vo_gpu_next.c b/video/out/vo_gpu_next.c index e6f6c8f415..d54305cf6e 100644 --- a/video/out/vo_gpu_next.c +++ b/video/out/vo_gpu_next.c @@ -1694,7 +1694,11 @@ const struct m_opt_choice_alternatives lut_types[] = { const struct vo_driver video_out_gpu_next = { .description = "Video output based on libplacebo", .name = "gpu-next", - .caps = VO_CAP_ROTATE90, + .caps = VO_CAP_ROTATE90 | +#ifdef PL_HAVE_LAV_FILM_GRAIN + VO_CAP_FILM_GRAIN | +#endif + 0x0, .preinit = preinit, .query_format = query_format, .reconfig = reconfig, |