Commit 3187fa14 authored by Christophe Gisquet's avatar Christophe Gisquet Committed by Anton Khirnov

hevc_mvs: avoid deriving tmvp in amvp

Reduces the number of calls to tmvp derivation from 933685 to 586271 on
a sequence.
Reviewed-by: 's avatarMickaël Raulet <mraulet@insa-rennes.fr>
Signed-off-by: 's avatarAnton Khirnov <anton@khirnov.net>
parent 14ca0aa6
...@@ -828,7 +828,8 @@ void ff_hevc_luma_mv_mvp_mode(HEVCContext *s, int x0, int y0, int nPbW, ...@@ -828,7 +828,8 @@ void ff_hevc_luma_mv_mvp_mode(HEVCContext *s, int x0, int y0, int nPbW,
mvpcand_list[numMVPCandLX++] = mxB; mvpcand_list[numMVPCandLX++] = mxB;
//temporal motion vector prediction candidate //temporal motion vector prediction candidate
if (numMVPCandLX < 2 && s->sh.slice_temporal_mvp_enabled_flag) { if (numMVPCandLX < 2 && s->sh.slice_temporal_mvp_enabled_flag &&
mvp_lx_flag == numMVPCandLX) {
Mv mv_col; Mv mv_col;
int available_col = temporal_luma_motion_vector(s, x0, y0, nPbW, int available_col = temporal_luma_motion_vector(s, x0, y0, nPbW,
nPbH, ref_idx, nPbH, ref_idx,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment