diff options
author | James Zern <jzern@google.com> | 2017-07-06 04:06:30 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-07-06 04:06:30 +0000 |
commit | af3cab7b245fd8f60ed6a0699f6321ac19986515 (patch) | |
tree | edfbcacd9979aa32e939545b6fc476ee0b441f16 /vp9/common | |
parent | 4ffd8350be4c9de82da722f5b1672acabbaf9b51 (diff) | |
parent | 303cb3106b1f7f78038b54fc7b6119b131bfc819 (diff) | |
download | libvpx-af3cab7b245fd8f60ed6a0699f6321ac19986515.tar libvpx-af3cab7b245fd8f60ed6a0699f6321ac19986515.tar.gz libvpx-af3cab7b245fd8f60ed6a0699f6321ac19986515.tar.bz2 libvpx-af3cab7b245fd8f60ed6a0699f6321ac19986515.zip |
Merge changes from topic 'rm-dec-frame-parallel'
* changes:
vp9_onyxc_int,RefCntBuffer: rm unused members
remove vp9_dthread.c
vp9: reduce FRAME_BUFFERS by 3
Diffstat (limited to 'vp9/common')
-rw-r--r-- | vp9/common/vp9_onyxc_int.h | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/vp9/common/vp9_onyxc_int.h b/vp9/common/vp9_onyxc_int.h index 15968e78c..be0dbee34 100644 --- a/vp9/common/vp9_onyxc_int.h +++ b/vp9/common/vp9_onyxc_int.h @@ -37,13 +37,10 @@ extern "C" { #define REF_FRAMES_LOG2 3 #define REF_FRAMES (1 << REF_FRAMES_LOG2) -// 4 scratch frames for the new frames to support a maximum of 4 cores decoding -// in parallel, 3 for scaled references on the encoder. -// TODO(hkuang): Add ondemand frame buffers instead of hardcoding the number -// of framebuffers. +// 1 scratch frame for the new frame, 3 for scaled references on the encoder. // TODO(jkoleszar): These 3 extra references could probably come from the // normal reference pool. -#define FRAME_BUFFERS (REF_FRAMES + 7) +#define FRAME_BUFFERS (REF_FRAMES + 4) #define FRAME_CONTEXTS_LOG2 2 #define FRAME_CONTEXTS (1 << FRAME_CONTEXTS_LOG2) @@ -74,18 +71,6 @@ typedef struct { int mi_cols; vpx_codec_frame_buffer_t raw_frame_buffer; YV12_BUFFER_CONFIG buf; - - // The Following variables will only be used in frame parallel decode. - - // frame_worker_owner indicates which FrameWorker owns this buffer. NULL means - // that no FrameWorker owns, or is decoding, this buffer. - VPxWorker *frame_worker_owner; - - // row and col indicate which position frame has been decoded to in real - // pixel unit. They are reset to -1 when decoding begins and set to INT_MAX - // when the frame is fully decoded. - int row; - int col; } RefCntBuffer; typedef struct BufferPool { |