comparison h264_cabac.c @ 11542:08723d0e5266 libavcodec

h264: Remove unused function argument
author astrange
date Fri, 26 Mar 2010 03:31:56 +0000
parents a3790cd1c9ca
children 0eb476c1730d
comparison
equal deleted inserted replaced
11541:a3790cd1c9ca 11542:08723d0e5266
1169 h->cabac.bytestream= cc.bytestream; 1169 h->cabac.bytestream= cc.bytestream;
1170 #endif 1170 #endif
1171 1171
1172 } 1172 }
1173 1173
1174 static void decode_cabac_residual_dc( H264Context *h, DCTELEM *block, int cat, int n, const uint8_t *scantable, const uint32_t *qmul, int max_coeff ) { 1174 static void decode_cabac_residual_dc( H264Context *h, DCTELEM *block, int cat, int n, const uint8_t *scantable, int max_coeff ) {
1175 decode_cabac_residual_internal(h, block, cat, n, scantable, qmul, max_coeff, 1); 1175 decode_cabac_residual_internal(h, block, cat, n, scantable, NULL, max_coeff, 1);
1176 } 1176 }
1177 1177
1178 static void decode_cabac_residual_nondc( H264Context *h, DCTELEM *block, int cat, int n, const uint8_t *scantable, const uint32_t *qmul, int max_coeff ) { 1178 static void decode_cabac_residual_nondc( H264Context *h, DCTELEM *block, int cat, int n, const uint8_t *scantable, const uint32_t *qmul, int max_coeff ) {
1179 decode_cabac_residual_internal(h, block, cat, n, scantable, qmul, max_coeff, 0); 1179 decode_cabac_residual_internal(h, block, cat, n, scantable, qmul, max_coeff, 0);
1180 } 1180 }
1640 h->last_qscale_diff=0; 1640 h->last_qscale_diff=0;
1641 1641
1642 if( IS_INTRA16x16( mb_type ) ) { 1642 if( IS_INTRA16x16( mb_type ) ) {
1643 int i; 1643 int i;
1644 //av_log( s->avctx, AV_LOG_ERROR, "INTRA16x16 DC\n" ); 1644 //av_log( s->avctx, AV_LOG_ERROR, "INTRA16x16 DC\n" );
1645 decode_cabac_residual_dc( h, h->mb, 0, 0, dc_scan, NULL, 16); 1645 decode_cabac_residual_dc( h, h->mb, 0, 0, dc_scan, 16);
1646 1646
1647 if( cbp&15 ) { 1647 if( cbp&15 ) {
1648 qmul = h->dequant4_coeff[0][s->qscale]; 1648 qmul = h->dequant4_coeff[0][s->qscale];
1649 for( i = 0; i < 16; i++ ) { 1649 for( i = 0; i < 16; i++ ) {
1650 //av_log( s->avctx, AV_LOG_ERROR, "INTRA16x16 AC:%d\n", i ); 1650 //av_log( s->avctx, AV_LOG_ERROR, "INTRA16x16 AC:%d\n", i );
1679 1679
1680 if( cbp&0x30 ){ 1680 if( cbp&0x30 ){
1681 int c; 1681 int c;
1682 for( c = 0; c < 2; c++ ) { 1682 for( c = 0; c < 2; c++ ) {
1683 //av_log( s->avctx, AV_LOG_ERROR, "INTRA C%d-DC\n",c ); 1683 //av_log( s->avctx, AV_LOG_ERROR, "INTRA C%d-DC\n",c );
1684 decode_cabac_residual_dc(h, h->mb + 256 + 16*4*c, 3, c, chroma_dc_scan, NULL, 4); 1684 decode_cabac_residual_dc(h, h->mb + 256 + 16*4*c, 3, c, chroma_dc_scan, 4);
1685 } 1685 }
1686 } 1686 }
1687 1687
1688 if( cbp&0x20 ) { 1688 if( cbp&0x20 ) {
1689 int c, i; 1689 int c, i;