uint8_t ff_h264_mlps_state[4*64];
uint8_t ff_h264_lps_range[4*2*64];
-uint8_t ff_h264_lps_state[2*64];
-static uint8_t h264_mps_state[2 * 64];
+static uint8_t h264_lps_state[2*64];
+static uint8_t h264_mps_state[2*64];
static const uint8_t mps_state[64]= {
1, 2, 3, 4, 5, 6, 7, 8,
h264_mps_state[2 * i + 1] = 2 * mps_state[i] + 1;
if( i ){
- ff_h264_lps_state[2*i+0]=
+ h264_lps_state[2*i+0]=
ff_h264_mlps_state[128-2*i-1]= 2*lps_state[i]+0;
- ff_h264_lps_state[2*i+1]=
+ h264_lps_state[2*i+1]=
ff_h264_mlps_state[128-2*i-2]= 2*lps_state[i]+1;
}else{
- ff_h264_lps_state[2*i+0]=
+ h264_lps_state[2*i+0]=
ff_h264_mlps_state[128-2*i-1]= 1;
- ff_h264_lps_state[2*i+1]=
+ h264_lps_state[2*i+1]=
ff_h264_mlps_state[128-2*i-2]= 0;
}
}
}else{
c->low += c->range - RangeLPS;
c->range = RangeLPS;
- *state= ff_h264_lps_state[*state];
+ *state= h264_lps_state[*state];
}
renorm_cabac_encoder(c);