[FFmpeg-cvslog] hevc: derive partially amvp list

Christophe Gisquet git at videolan.org
Tue Aug 12 16:35:55 CEST 2014


ffmpeg | branch: master | Christophe Gisquet <christophe.gisquet at gmail.com> | Fri Aug  8 18:21:00 2014 +0000| [3505b19652ea34089a4cd08d4d3358fcc0a3db8b] | committer: Anton Khirnov

hevc: derive partially amvp list

When the candidate has been found, no need to derive others.

Signed-off-by: Anton Khirnov <anton at khirnov.net>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3505b19652ea34089a4cd08d4d3358fcc0a3db8b
---

 libavcodec/hevc_mvs.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/libavcodec/hevc_mvs.c b/libavcodec/hevc_mvs.c
index 7fa418b..12823c2 100644
--- a/libavcodec/hevc_mvs.c
+++ b/libavcodec/hevc_mvs.c
@@ -722,6 +722,11 @@ void ff_hevc_luma_mv_mvp_mode(HEVCContext *s, int x0, int y0, int nPbW,
             availableFlagLXA0 = MP_MX_LT(A1, pred_flag_index_l1, mxA);
     }
 
+    if (availableFlagLXA0 && !mvp_lx_flag) {
+        mv->mv[LX] = mxA;
+        return;
+    }
+
     // B candidates
     // above right spatial merge candidate
     xB0    = x0 + nPbW;



More information about the ffmpeg-cvslog mailing list