Intra testing

This commit is contained in:
Marko Viitanen 2013-02-24 16:03:40 +02:00
parent 10fe0f8018
commit eba43088b2
3 changed files with 11 additions and 8 deletions

View file

@ -682,12 +682,12 @@ void encode_coding_tree(encoder_control* encoder,uint16_t xCtb,uint16_t yCtb, ui
return;
}
}
/*
if(border_x && border_y)//yCtb == 20 && xCtb == 20)
if(/*border_x && border_y)//*/yCtb == 20 && (xCtb >= 20 && xCtb <= 40))
{
cur_CU->type = CU_INTRA;
}
*/
/* coding_unit( x0, y0, log2CbSize ) */
/* prediction_unit 2Nx2N*/
@ -759,16 +759,16 @@ void encode_coding_tree(encoder_control* encoder,uint16_t xCtb,uint16_t yCtb, ui
Int preds[3] = {-1, -1, -1};
Int predNum = pcCU->getIntraDirLumaPredictor(absPartIdx+partOffset*j, preds);
*/
CABAC_BINS_EP(&cabac, predMode, 5, "intraPredMode");
predMode++;
predMode = predMode % 10;
CABAC_BINS_EP(&cabac, 10, 5, "intraPredMode");
//predMode++;
//predMode = predMode % 10;
if(encoder->in.video_format != FORMAT_400)
{
cabac.ctx = &g_ChromaPredSCModel[0];
CABAC_BIN(&cabac,1,"IntraPredChroma");
CABAC_BINS_EP(&cabac, 0, 2, "intraPredModeChroma");
CABAC_BINS_EP(&cabac, 1, 2, "intraPredModeChroma");
}
/* Coeff */

View file

@ -14,4 +14,5 @@
#define __INTRA_H
#endif

View file

@ -37,10 +37,12 @@ void nal_write(FILE* output, uint8_t* buffer, uint32_t buffer_len, uint8_t nal_r
const uint8_t zero = 0x00;
/*start_code_prefix_one_3bytes */
/*
if(temporal_id == 0)
{
fwrite(&zero, 1, 1, output);
}
}
*/
fwrite(&zero, 1, 1, output);
fwrite(&zero, 1, 1, output);
fwrite(&start_code_prefix_one_3bytes, 1, 1, output);