summaryrefslogtreecommitdiffstats
path: root/video/out/vo.h
diff options
context:
space:
mode:
authorAman Gupta <aman@tmm1.net>2017-07-06 10:49:54 -0700
committerwm4 <wm4@nowhere>2017-10-09 18:36:54 +0200
commit6f0fdac6f16880ef46cbcfb399fd6beec5afe735 (patch)
treee22655c08046e79f85e63bedeb87087420660068 /video/out/vo.h
parentd08e407c9eb9b3fb020efa8f1516a68497389416 (diff)
downloadmpv-6f0fdac6f16880ef46cbcfb399fd6beec5afe735.tar.bz2
mpv-6f0fdac6f16880ef46cbcfb399fd6beec5afe735.tar.xz
vo: add VO_CAP_NOREDRAW for upcoming vo_mediacodec_embed
MediaCodec uses a fixed number of output buffers to hold frames, and expects that output buffers will be released as soon as possible. Once rendered, the underlying frame is automatically released and cannot be reused or rerendered. The new VO_CAP_NOREDRAW forces mpv to release frames immediately after they are rendered or dropped, to ensure that MediaCodec decoder does not run out of buffers and stall out.
Diffstat (limited to 'video/out/vo.h')
-rw-r--r--video/out/vo.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/vo.h b/video/out/vo.h
index 50f6e4942e..fc6cf394e4 100644
--- a/video/out/vo.h
+++ b/video/out/vo.h
@@ -172,6 +172,8 @@ enum {
VO_CAP_ROTATE90 = 1 << 0,
// VO does framedrop itself (vo_vdpau). Untimed/encoding VOs never drop.
VO_CAP_FRAMEDROP = 1 << 1,
+ // VO does not support redraws (vo_mediacodec_embed).
+ VO_CAP_NOREDRAW = 1 << 2,
};
#define VO_MAX_REQ_FRAMES 10