[x264-devel] commit: Fix minor bug in intra pred with intra refresh ( Jason Garrett-Glaser )

git at videolan.org git at videolan.org
Sun Oct 10 23:47:34 CEST 2010


x264 | branch: master | Jason Garrett-Glaser <darkshikari at gmail.com> | Mon Oct  4 13:33:23 2010 -0700| [78c645033d8ff34f83a3b22ac60f0474fbb573d6] | committer: Jason Garrett-Glaser 

Fix minor bug in intra pred with intra refresh
i8x8 blocks didn't properly avoid predicting from top-right when necessary.
This could cause intra refresh to not completely refresh the frame.

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=78c645033d8ff34f83a3b22ac60f0474fbb573d6
---

 encoder/analyse.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/encoder/analyse.c b/encoder/analyse.c
index 6ed13ba..a997425 100644
--- a/encoder/analyse.c
+++ b/encoder/analyse.c
@@ -564,7 +564,7 @@ static ALWAYS_INLINE const int8_t *predict_8x8chroma_mode_available( int i_neigh
 
 static ALWAYS_INLINE const int8_t *predict_8x8_mode_available( int force_intra, int i_neighbour, int i )
 {
-    int avoid_topright = force_intra && (i&4);
+    int avoid_topright = force_intra && (i&1);
     int idx = i_neighbour & (MB_TOP|MB_LEFT|MB_TOPLEFT);
     return i4x4_mode_available[avoid_topright][(idx&MB_TOPLEFT)?4:idx];
 }



More information about the x264-devel mailing list