diff options
author | wm4 <wm4@nowhere> | 2016-01-25 21:00:53 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-01-25 21:46:40 +0100 |
commit | b53cb8de5e8552bfe142df9cea3de6907a187dc7 (patch) | |
tree | 2cd69d9b99a90389be3653bb5dc54e7bbd276ec7 /video/decode/lavc.h | |
parent | 271cabe6a5bd8342b56ab855d033abba63dfead6 (diff) | |
download | mpv-b53cb8de5e8552bfe142df9cea3de6907a187dc7.tar.bz2 mpv-b53cb8de5e8552bfe142df9cea3de6907a187dc7.tar.xz |
vd_lavc: delay images before reading them back
Facilitates hardware pipelining in particular with nvidia/dxva.
Diffstat (limited to 'video/decode/lavc.h')
-rw-r--r-- | video/decode/lavc.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/video/decode/lavc.h b/video/decode/lavc.h index 76b7ac7883..db8b26eefa 100644 --- a/video/decode/lavc.h +++ b/video/decode/lavc.h @@ -9,6 +9,8 @@ #include "video/mp_image.h" #include "video/hwdec.h" +#define HWDEC_DELAY_QUEUE_COUNT 2 + typedef struct lavc_ctx { struct mp_log *log; struct MPOpts *opts; @@ -23,6 +25,10 @@ typedef struct lavc_ctx { bool hwdec_failed; bool hwdec_notified; + struct mp_image **delay_queue; + int num_delay_queue; + int max_delay_queue; + // From VO struct mp_hwdec_info *hwdec_info; |