}
}
-static void code012(PutBitContext *pb, int n)
+void ff_code012(PutBitContext *pb, int n)
{
if (n == 0) {
put_bits(pb, 1, 0);
if(s->msmpeg4_version>2){
if(!s->per_mb_rl_table){
- code012(&s->pb, s->rl_chroma_table_index);
- code012(&s->pb, s->rl_table_index);
+ ff_code012(&s->pb, s->rl_chroma_table_index);
+ ff_code012(&s->pb, s->rl_table_index);
}
put_bits(&s->pb, 1, s->dc_table_index);
if(s->msmpeg4_version>2){
if(!s->per_mb_rl_table)
- code012(&s->pb, s->rl_table_index);
+ ff_code012(&s->pb, s->rl_table_index);
put_bits(&s->pb, 1, s->dc_table_index);
if(w->per_mb_rl_bit) put_bits(&s->pb, 1, s->per_mb_rl_table);
if(!s->per_mb_rl_table){
- code012(&s->pb, s->rl_chroma_table_index);
- code012(&s->pb, s->rl_table_index);
+ ff_code012(&s->pb, s->rl_chroma_table_index);
+ ff_code012(&s->pb, s->rl_table_index);
}
put_bits(&s->pb, 1, s->dc_table_index);
put_bits(&s->pb, 2, SKIP_TYPE_NONE);
- code012(&s->pb, cbp_index=0);
+ ff_code012(&s->pb, cbp_index=0);
if(s->qscale <= 10){
int map[3]= {0,2,1};
w->cbp_table_index= map[cbp_index];
if(w->abt_flag){
put_bits(&s->pb, 1, w->per_mb_abt^1);
if(!w->per_mb_abt){
- code012(&s->pb, w->abt_type);
+ ff_code012(&s->pb, w->abt_type);
}
}
if(w->per_mb_rl_bit) put_bits(&s->pb, 1, s->per_mb_rl_table);
if(!s->per_mb_rl_table){
- code012(&s->pb, s->rl_table_index);
+ ff_code012(&s->pb, s->rl_table_index);
s->rl_chroma_table_index = s->rl_table_index;
}
put_bits(&s->pb, 1, s->dc_table_index);