mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-23 18:14:06 +00:00
Add temporary mechanism to force use of prediction units.
This commit is contained in:
parent
fa0bab47f9
commit
48581bdad8
|
@ -26,6 +26,9 @@
|
|||
#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 */
|
||||
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;
|
||||
uint8_t *base = &encoder->in.cur_pic->yData[xCtb*(LCU_WIDTH>>(MAX_DEPTH)) + (yCtb*(LCU_WIDTH>>(MAX_DEPTH))) *encoder->in.width];
|
||||
|
|
Loading…
Reference in a new issue