Mercurial > libpostproc.hg
comparison postprocess_template.c @ 90:8e738e0a16f5 libpostproc
typo fixes
author | diego |
---|---|
date | Sat, 15 Mar 2008 16:15:47 +0000 |
parents | 47ff4bd209cd |
children | 8879eafb9431 |
comparison
equal
deleted
inserted
replaced
89:261d086649c5 | 90:8e738e0a16f5 |
---|---|
476 #endif //0 | 476 #endif //0 |
477 | 477 |
478 /** | 478 /** |
479 * Experimental Filter 1 | 479 * Experimental Filter 1 |
480 * will not damage linear gradients | 480 * will not damage linear gradients |
481 * Flat blocks should look like they where passed through the (1,1,2,2,4,2,2,1,1) 9-Tap filter | 481 * Flat blocks should look like they were passed through the (1,1,2,2,4,2,2,1,1) 9-Tap filter |
482 * can only smooth blocks at the expected locations (it cannot smooth them if they did move) | 482 * can only smooth blocks at the expected locations (it cannot smooth them if they did move) |
483 * MMX2 version does correct clipping C version does not | 483 * MMX2 version does correct clipping C version does not |
484 */ | 484 */ |
485 static inline void RENAME(vertX1Filter)(uint8_t *src, int stride, PPContext *co) | 485 static inline void RENAME(vertX1Filter)(uint8_t *src, int stride, PPContext *co) |
486 { | 486 { |
1544 #endif //HAVE_ALTIVEC | 1544 #endif //HAVE_ALTIVEC |
1545 | 1545 |
1546 /** | 1546 /** |
1547 * Deinterlaces the given block by linearly interpolating every second line. | 1547 * Deinterlaces the given block by linearly interpolating every second line. |
1548 * will be called for every 8x8 block and can read & write from line 4-15 | 1548 * will be called for every 8x8 block and can read & write from line 4-15 |
1549 * lines 0-3 have been passed through the deblock / dering filters allready, but can be read too | 1549 * lines 0-3 have been passed through the deblock / dering filters already, but can be read, too. |
1550 * lines 4-12 will be read into the deblocking filter and should be deinterlaced | 1550 * lines 4-12 will be read into the deblocking filter and should be deinterlaced |
1551 */ | 1551 */ |
1552 static inline void RENAME(deInterlaceInterpolateLinear)(uint8_t src[], int stride) | 1552 static inline void RENAME(deInterlaceInterpolateLinear)(uint8_t src[], int stride) |
1553 { | 1553 { |
1554 #if defined (HAVE_MMX2) || defined (HAVE_3DNOW) | 1554 #if defined (HAVE_MMX2) || defined (HAVE_3DNOW) |
1596 } | 1596 } |
1597 | 1597 |
1598 /** | 1598 /** |
1599 * Deinterlaces the given block by cubic interpolating every second line. | 1599 * Deinterlaces the given block by cubic interpolating every second line. |
1600 * will be called for every 8x8 block and can read & write from line 4-15 | 1600 * will be called for every 8x8 block and can read & write from line 4-15 |
1601 * lines 0-3 have been passed through the deblock / dering filters allready, but can be read too | 1601 * lines 0-3 have been passed through the deblock / dering filters already, but can be read, too. |
1602 * lines 4-12 will be read into the deblocking filter and should be deinterlaced | 1602 * lines 4-12 will be read into the deblocking filter and should be deinterlaced |
1603 * this filter will read lines 3-15 and write 7-13 | 1603 * this filter will read lines 3-15 and write 7-13 |
1604 */ | 1604 */ |
1605 static inline void RENAME(deInterlaceInterpolateCubic)(uint8_t src[], int stride) | 1605 static inline void RENAME(deInterlaceInterpolateCubic)(uint8_t src[], int stride) |
1606 { | 1606 { |
1661 } | 1661 } |
1662 | 1662 |
1663 /** | 1663 /** |
1664 * Deinterlaces the given block by filtering every second line with a (-1 4 2 4 -1) filter. | 1664 * Deinterlaces the given block by filtering every second line with a (-1 4 2 4 -1) filter. |
1665 * will be called for every 8x8 block and can read & write from line 4-15 | 1665 * will be called for every 8x8 block and can read & write from line 4-15 |
1666 * lines 0-3 have been passed through the deblock / dering filters allready, but can be read too | 1666 * lines 0-3 have been passed through the deblock / dering filters already, but can be read, too. |
1667 * lines 4-12 will be read into the deblocking filter and should be deinterlaced | 1667 * lines 4-12 will be read into the deblocking filter and should be deinterlaced |
1668 * this filter will read lines 4-13 and write 5-11 | 1668 * this filter will read lines 4-13 and write 5-11 |
1669 */ | 1669 */ |
1670 static inline void RENAME(deInterlaceFF)(uint8_t src[], int stride, uint8_t *tmp) | 1670 static inline void RENAME(deInterlaceFF)(uint8_t src[], int stride, uint8_t *tmp) |
1671 { | 1671 { |
1741 } | 1741 } |
1742 | 1742 |
1743 /** | 1743 /** |
1744 * Deinterlaces the given block by filtering every line with a (-1 2 6 2 -1) filter. | 1744 * Deinterlaces the given block by filtering every line with a (-1 2 6 2 -1) filter. |
1745 * will be called for every 8x8 block and can read & write from line 4-15 | 1745 * will be called for every 8x8 block and can read & write from line 4-15 |
1746 * lines 0-3 have been passed through the deblock / dering filters allready, but can be read too | 1746 * lines 0-3 have been passed through the deblock / dering filters already, but can be read, too. |
1747 * lines 4-12 will be read into the deblocking filter and should be deinterlaced | 1747 * lines 4-12 will be read into the deblocking filter and should be deinterlaced |
1748 * this filter will read lines 4-13 and write 4-11 | 1748 * this filter will read lines 4-13 and write 4-11 |
1749 */ | 1749 */ |
1750 static inline void RENAME(deInterlaceL5)(uint8_t src[], int stride, uint8_t *tmp, uint8_t *tmp2) | 1750 static inline void RENAME(deInterlaceL5)(uint8_t src[], int stride, uint8_t *tmp, uint8_t *tmp2) |
1751 { | 1751 { |
1843 } | 1843 } |
1844 | 1844 |
1845 /** | 1845 /** |
1846 * Deinterlaces the given block by filtering all lines with a (1 2 1) filter. | 1846 * Deinterlaces the given block by filtering all lines with a (1 2 1) filter. |
1847 * will be called for every 8x8 block and can read & write from line 4-15 | 1847 * will be called for every 8x8 block and can read & write from line 4-15 |
1848 * lines 0-3 have been passed through the deblock / dering filters allready, but can be read too | 1848 * lines 0-3 have been passed through the deblock / dering filters already, but can be read, too. |
1849 * lines 4-12 will be read into the deblocking filter and should be deinterlaced | 1849 * lines 4-12 will be read into the deblocking filter and should be deinterlaced |
1850 * this filter will read lines 4-13 and write 4-11 | 1850 * this filter will read lines 4-13 and write 4-11 |
1851 */ | 1851 */ |
1852 static inline void RENAME(deInterlaceBlendLinear)(uint8_t src[], int stride, uint8_t *tmp) | 1852 static inline void RENAME(deInterlaceBlendLinear)(uint8_t src[], int stride, uint8_t *tmp) |
1853 { | 1853 { |
1945 } | 1945 } |
1946 | 1946 |
1947 /** | 1947 /** |
1948 * Deinterlaces the given block by applying a median filter to every second line. | 1948 * Deinterlaces the given block by applying a median filter to every second line. |
1949 * will be called for every 8x8 block and can read & write from line 4-15, | 1949 * will be called for every 8x8 block and can read & write from line 4-15, |
1950 * lines 0-3 have been passed through the deblock / dering filters allready, but can be read too | 1950 * lines 0-3 have been passed through the deblock / dering filters already, but can be read, too. |
1951 * lines 4-12 will be read into the deblocking filter and should be deinterlaced | 1951 * lines 4-12 will be read into the deblocking filter and should be deinterlaced |
1952 */ | 1952 */ |
1953 static inline void RENAME(deInterlaceMedian)(uint8_t src[], int stride) | 1953 static inline void RENAME(deInterlaceMedian)(uint8_t src[], int stride) |
1954 { | 1954 { |
1955 #ifdef HAVE_MMX | 1955 #ifdef HAVE_MMX |