comparison dsputil.c @ 1101:a3a8017dee70 libavcodec

more idiot proof dox
author michaelni
date Thu, 06 Mar 2003 02:04:54 +0000
parents 207f27932628
children 1e39f273ecd6
comparison
equal deleted inserted replaced
1100:207f27932628 1101:a3a8017dee70
1625 return pix_abs8x8_c(a,b,stride); 1625 return pix_abs8x8_c(a,b,stride);
1626 } 1626 }
1627 1627
1628 /** 1628 /**
1629 * permutes an 8x8 block. 1629 * permutes an 8x8 block.
1630 * @param block the block :) 1630 * @param block the block which will be permuted according to the given permutation vector
1631 * @param permutation the permutation vector 1631 * @param permutation the permutation vector
1632 * @param last the last non zero coefficient in scantable order, used to speed the permutation up 1632 * @param last the last non zero coefficient in scantable order, used to speed the permutation up
1633 * @param scantable the used scantable, this is only used to speed the permutation up, the block is not
1634 * (inverse) permutated to scantable order!
1633 */ 1635 */
1634 void ff_block_permute(DCTELEM *block, uint8_t *permutation, const uint8_t *scantable, int last) 1636 void ff_block_permute(DCTELEM *block, uint8_t *permutation, const uint8_t *scantable, int last)
1635 { 1637 {
1636 int i; 1638 int i;
1637 DCTELEM temp[64]; 1639 DCTELEM temp[64];
1650 const int perm_j= permutation[j]; 1652 const int perm_j= permutation[j];
1651 block[perm_j]= temp[j]; 1653 block[perm_j]= temp[j];
1652 } 1654 }
1653 } 1655 }
1654 1656
1657 /**
1658 * memset(blocks, 0, sizeof(DCTELEM)*6*64)
1659 */
1655 static void clear_blocks_c(DCTELEM *blocks) 1660 static void clear_blocks_c(DCTELEM *blocks)
1656 { 1661 {
1657 memset(blocks, 0, sizeof(DCTELEM)*6*64); 1662 memset(blocks, 0, sizeof(DCTELEM)*6*64);
1658 } 1663 }
1659 1664