Mercurial > libavcodec.hg
comparison asv1.c @ 3183:8e00b10aeb0a libavcodec
add assert to clarify that we know what we are doing
author | michael |
---|---|
date | Fri, 10 Mar 2006 19:10:46 +0000 |
parents | 072dbc669253 |
children | 0082fb8c77b6 |
comparison
equal
deleted
inserted
replaced
3182:bfb20cb7774b | 3183:8e00b10aeb0a |
---|---|
287 if( (block[index + 0] = (block[index + 0]*a->q_intra_matrix[index + 0] + (1<<15))>>16) ) ccp |= 8; | 287 if( (block[index + 0] = (block[index + 0]*a->q_intra_matrix[index + 0] + (1<<15))>>16) ) ccp |= 8; |
288 if( (block[index + 8] = (block[index + 8]*a->q_intra_matrix[index + 8] + (1<<15))>>16) ) ccp |= 4; | 288 if( (block[index + 8] = (block[index + 8]*a->q_intra_matrix[index + 8] + (1<<15))>>16) ) ccp |= 4; |
289 if( (block[index + 1] = (block[index + 1]*a->q_intra_matrix[index + 1] + (1<<15))>>16) ) ccp |= 2; | 289 if( (block[index + 1] = (block[index + 1]*a->q_intra_matrix[index + 1] + (1<<15))>>16) ) ccp |= 2; |
290 if( (block[index + 9] = (block[index + 9]*a->q_intra_matrix[index + 9] + (1<<15))>>16) ) ccp |= 1; | 290 if( (block[index + 9] = (block[index + 9]*a->q_intra_matrix[index + 9] + (1<<15))>>16) ) ccp |= 1; |
291 | 291 |
292 assert(i || ccp<8); | |
292 if(i) put_bits(&a->pb, ac_ccp_tab[ccp][1], ac_ccp_tab[ccp][0]); | 293 if(i) put_bits(&a->pb, ac_ccp_tab[ccp][1], ac_ccp_tab[ccp][0]); |
293 else put_bits(&a->pb, dc_ccp_tab[ccp][1], dc_ccp_tab[ccp][0]); | 294 else put_bits(&a->pb, dc_ccp_tab[ccp][1], dc_ccp_tab[ccp][0]); |
294 | 295 |
295 if(ccp){ | 296 if(ccp){ |
296 if(ccp&8) asv2_put_level(&a->pb, block[index + 0]); | 297 if(ccp&8) asv2_put_level(&a->pb, block[index + 0]); |