Mercurial > libavcodec.hg
comparison mpegvideo_enc.c @ 5909:4e3c522ca492 libavcodec
cosmetics: Fix vissual --> visual typo.
author | diego |
---|---|
date | Sat, 10 Nov 2007 16:39:54 +0000 |
parents | a40edc95456d |
children | 036d93ae3095 |
comparison
equal
deleted
inserted
replaced
5908:4c72e41cd178 | 5909:4e3c522ca492 |
---|---|
1420 | 1420 |
1421 if(overflow && s->avctx->mb_decision == FF_MB_DECISION_SIMPLE) | 1421 if(overflow && s->avctx->mb_decision == FF_MB_DECISION_SIMPLE) |
1422 av_log(s->avctx, AV_LOG_INFO, "warning, clipping %d dct coefficients to %d..%d\n", overflow, minlevel, maxlevel); | 1422 av_log(s->avctx, AV_LOG_INFO, "warning, clipping %d dct coefficients to %d..%d\n", overflow, minlevel, maxlevel); |
1423 } | 1423 } |
1424 | 1424 |
1425 static void get_vissual_weight(int16_t *weight, uint8_t *ptr, int stride){ | 1425 static void get_visual_weight(int16_t *weight, uint8_t *ptr, int stride){ |
1426 int x, y; | 1426 int x, y; |
1427 //FIXME optimize | 1427 //FIXME optimize |
1428 for(y=0; y<8; y++){ | 1428 for(y=0; y<8; y++){ |
1429 for(x=0; x<8; x++){ | 1429 for(x=0; x<8; x++){ |
1430 int x2, y2; | 1430 int x2, y2; |
1624 } | 1624 } |
1625 } | 1625 } |
1626 } | 1626 } |
1627 | 1627 |
1628 if(s->avctx->quantizer_noise_shaping){ | 1628 if(s->avctx->quantizer_noise_shaping){ |
1629 if(!skip_dct[0]) get_vissual_weight(weight[0], ptr_y , wrap_y); | 1629 if(!skip_dct[0]) get_visual_weight(weight[0], ptr_y , wrap_y); |
1630 if(!skip_dct[1]) get_vissual_weight(weight[1], ptr_y + 8, wrap_y); | 1630 if(!skip_dct[1]) get_visual_weight(weight[1], ptr_y + 8, wrap_y); |
1631 if(!skip_dct[2]) get_vissual_weight(weight[2], ptr_y + dct_offset , wrap_y); | 1631 if(!skip_dct[2]) get_visual_weight(weight[2], ptr_y + dct_offset , wrap_y); |
1632 if(!skip_dct[3]) get_vissual_weight(weight[3], ptr_y + dct_offset + 8, wrap_y); | 1632 if(!skip_dct[3]) get_visual_weight(weight[3], ptr_y + dct_offset + 8, wrap_y); |
1633 if(!skip_dct[4]) get_vissual_weight(weight[4], ptr_cb , wrap_c); | 1633 if(!skip_dct[4]) get_visual_weight(weight[4], ptr_cb , wrap_c); |
1634 if(!skip_dct[5]) get_vissual_weight(weight[5], ptr_cr , wrap_c); | 1634 if(!skip_dct[5]) get_visual_weight(weight[5], ptr_cr , wrap_c); |
1635 if(!s->chroma_y_shift){ /* 422 */ | 1635 if(!s->chroma_y_shift){ /* 422 */ |
1636 if(!skip_dct[6]) get_vissual_weight(weight[6], ptr_cb + (dct_offset>>1), wrap_c); | 1636 if(!skip_dct[6]) get_visual_weight(weight[6], ptr_cb + (dct_offset>>1), wrap_c); |
1637 if(!skip_dct[7]) get_vissual_weight(weight[7], ptr_cr + (dct_offset>>1), wrap_c); | 1637 if(!skip_dct[7]) get_visual_weight(weight[7], ptr_cr + (dct_offset>>1), wrap_c); |
1638 } | 1638 } |
1639 memcpy(orig[0], s->block[0], sizeof(DCTELEM)*64*mb_block_count); | 1639 memcpy(orig[0], s->block[0], sizeof(DCTELEM)*64*mb_block_count); |
1640 } | 1640 } |
1641 | 1641 |
1642 /* DCT & quantize */ | 1642 /* DCT & quantize */ |