Merge "Removed pre_mvc"
This commit is contained in:
commit
1338a98d07
@ -42,7 +42,6 @@ typedef struct frame_contexts
|
||||
vp8_prob sub_mv_ref_prob [VP8_SUBMVREFS-1];
|
||||
vp8_prob coef_probs [BLOCK_TYPES] [COEF_BANDS] [PREV_COEF_CONTEXTS] [ENTROPY_NODES];
|
||||
MV_CONTEXT mvc[2];
|
||||
MV_CONTEXT pre_mvc[2]; /* not to caculate the mvcost for the frame if mvc doesn't change. */
|
||||
} FRAME_CONTEXT;
|
||||
|
||||
typedef enum
|
||||
|
@ -939,36 +939,6 @@ void vp8_encode_frame(VP8_COMP *cpi)
|
||||
|
||||
}
|
||||
|
||||
#if 0
|
||||
{
|
||||
int cnt = 0;
|
||||
int flag[2] = {0, 0};
|
||||
|
||||
for (cnt = 0; cnt < MVPcount; cnt++)
|
||||
{
|
||||
if (cm->fc.pre_mvc[0][cnt] != cm->fc.mvc[0][cnt])
|
||||
{
|
||||
flag[0] = 1;
|
||||
vpx_memcpy(cm->fc.pre_mvc[0], cm->fc.mvc[0], MVPcount);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
for (cnt = 0; cnt < MVPcount; cnt++)
|
||||
{
|
||||
if (cm->fc.pre_mvc[1][cnt] != cm->fc.mvc[1][cnt])
|
||||
{
|
||||
flag[1] = 1;
|
||||
vpx_memcpy(cm->fc.pre_mvc[1], cm->fc.mvc[1], MVPcount);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (flag[0] || flag[1])
|
||||
vp8_build_component_cost_table(cpi->mb.mvcost, (const MV_CONTEXT *) cm->fc.mvc, flag);
|
||||
}
|
||||
#endif
|
||||
|
||||
#if ! CONFIG_REALTIME_ONLY
|
||||
/* Adjust the projected reference frame usage probability numbers to
|
||||
* reflect what we have just seen. This may be useful when we make
|
||||
|
@ -310,9 +310,6 @@ void vp8_setup_key_frame(VP8_COMP *cpi)
|
||||
vp8_build_component_cost_table(cpi->mb.mvcost, (const MV_CONTEXT *) cpi->common.fc.mvc, flag);
|
||||
}
|
||||
|
||||
/* initialize pre_mvc to all zero. */
|
||||
vpx_memset(cpi->common.fc.pre_mvc, 0, sizeof(cpi->common.fc.pre_mvc));
|
||||
|
||||
/* Make sure we initialize separate contexts for altref,gold, and normal.
|
||||
* TODO shouldn't need 3 different copies of structure to do this!
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user