Add temporary mechanism to force use of prediction units.

This commit is contained in:
Ari Koivula 2013-09-16 19:18:24 +03:00
parent fa0bab47f9
commit 48581bdad8

View file

@ -26,6 +26,9 @@
#include "search.h" #include "search.h"
// Temporarily for debugging.
#define USE_INTRA_IN_P 0
/** /**
* *
* *
@ -219,7 +222,7 @@ void search_tree(encoder_control* encoder,uint16_t xCtb,uint16_t yCtb, uint8_t d
} }
/* INTRA SEARCH */ /* INTRA SEARCH */
if(depth >= MIN_SEARCH_DEPTH) if(depth >= MIN_SEARCH_DEPTH && (encoder->in.cur_pic->slicetype == SLICE_I || USE_INTRA_IN_P))
{ {
int x = 0,y = 0; int x = 0,y = 0;
uint8_t *base = &encoder->in.cur_pic->yData[xCtb*(LCU_WIDTH>>(MAX_DEPTH)) + (yCtb*(LCU_WIDTH>>(MAX_DEPTH))) *encoder->in.width]; uint8_t *base = &encoder->in.cur_pic->yData[xCtb*(LCU_WIDTH>>(MAX_DEPTH)) + (yCtb*(LCU_WIDTH>>(MAX_DEPTH))) *encoder->in.width];