Mercurial > libavcodec.hg
comparison libpostproc/postprocess_template.c @ 1109:3644e555a20a libavcodec
doxy / cosmetics
| author | michaelni |
|---|---|
| date | Thu, 06 Mar 2003 13:51:18 +0000 |
| parents | 804cc05a3f61 |
| children | 57fe9c4e0c6e |
comparison
equal
deleted
inserted
replaced
| 1108:bfc18110d4b6 | 1109:3644e555a20a |
|---|---|
| 13 | 13 |
| 14 You should have received a copy of the GNU General Public License | 14 You should have received a copy of the GNU General Public License |
| 15 along with this program; if not, write to the Free Software | 15 along with this program; if not, write to the Free Software |
| 16 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 16 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 17 */ | 17 */ |
| 18 | |
| 19 /** | |
| 20 * @file postprocess_template.c | |
| 21 * mmx/mmx2/3dnow postprocess code. | |
| 22 */ | |
| 23 | |
| 18 | 24 |
| 19 #undef PAVGB | 25 #undef PAVGB |
| 20 #undef PMINUB | 26 #undef PMINUB |
| 21 #undef PMAXUB | 27 #undef PMAXUB |
| 22 | 28 |
| 1521 #endif | 1527 #endif |
| 1522 #endif | 1528 #endif |
| 1523 } | 1529 } |
| 1524 | 1530 |
| 1525 /** | 1531 /** |
| 1526 * Deinterlaces the given block | 1532 * Deinterlaces the given block by linearly interpolating every second line. |
| 1527 * will be called for every 8x8 block and can read & write from line 4-15 | 1533 * will be called for every 8x8 block and can read & write from line 4-15 |
| 1528 * lines 0-3 have been passed through the deblock / dering filters allready, but can be read too | 1534 * lines 0-3 have been passed through the deblock / dering filters allready, but can be read too |
| 1529 * lines 4-12 will be read into the deblocking filter and should be deinterlaced | 1535 * lines 4-12 will be read into the deblocking filter and should be deinterlaced |
| 1530 */ | 1536 */ |
| 1531 static inline void RENAME(deInterlaceInterpolateLinear)(uint8_t src[], int stride) | 1537 static inline void RENAME(deInterlaceInterpolateLinear)(uint8_t src[], int stride) |
| 1568 } | 1574 } |
| 1569 #endif | 1575 #endif |
| 1570 } | 1576 } |
| 1571 | 1577 |
| 1572 /** | 1578 /** |
| 1573 * Deinterlaces the given block | 1579 * Deinterlaces the given block by cubic interpolating every second line. |
| 1574 * will be called for every 8x8 block and can read & write from line 4-15 | 1580 * will be called for every 8x8 block and can read & write from line 4-15 |
| 1575 * lines 0-3 have been passed through the deblock / dering filters allready, but can be read too | 1581 * lines 0-3 have been passed through the deblock / dering filters allready, but can be read too |
| 1576 * lines 4-12 will be read into the deblocking filter and should be deinterlaced | 1582 * lines 4-12 will be read into the deblocking filter and should be deinterlaced |
| 1577 * this filter will read lines 3-15 and write 7-13 | 1583 * this filter will read lines 3-15 and write 7-13 |
| 1578 * no cliping in C version | 1584 * no cliping in C version |
| 1633 } | 1639 } |
| 1634 #endif | 1640 #endif |
| 1635 } | 1641 } |
| 1636 | 1642 |
| 1637 /** | 1643 /** |
| 1638 * Deinterlaces the given block | 1644 * Deinterlaces the given block by filtering every second line with a (-1 4 2 4 -1) filter. |
| 1639 * will be called for every 8x8 block and can read & write from line 4-15 | 1645 * will be called for every 8x8 block and can read & write from line 4-15 |
| 1640 * lines 0-3 have been passed through the deblock / dering filters allready, but can be read too | 1646 * lines 0-3 have been passed through the deblock / dering filters allready, but can be read too |
| 1641 * lines 4-12 will be read into the deblocking filter and should be deinterlaced | 1647 * lines 4-12 will be read into the deblocking filter and should be deinterlaced |
| 1642 * this filter will read lines 4-13 and write 5-11 | 1648 * this filter will read lines 4-13 and write 5-11 |
| 1643 * no cliping in C version | 1649 * no cliping in C version |
| 1712 } | 1718 } |
| 1713 #endif | 1719 #endif |
| 1714 } | 1720 } |
| 1715 | 1721 |
| 1716 /** | 1722 /** |
| 1717 * Deinterlaces the given block | 1723 * Deinterlaces the given block by filtering all lines with a (1 2 1) filter. |
| 1718 * will be called for every 8x8 block and can read & write from line 4-15 | 1724 * will be called for every 8x8 block and can read & write from line 4-15 |
| 1719 * lines 0-3 have been passed through the deblock / dering filters allready, but can be read too | 1725 * lines 0-3 have been passed through the deblock / dering filters allready, but can be read too |
| 1720 * lines 4-12 will be read into the deblocking filter and should be deinterlaced | 1726 * lines 4-12 will be read into the deblocking filter and should be deinterlaced |
| 1721 * will shift the image up by 1 line (FIXME if this is a problem) | 1727 * will shift the image up by 1 line (FIXME if this is a problem) |
| 1722 * this filter will read lines 4-13 and write 4-11 | 1728 * this filter will read lines 4-13 and write 4-11 |
| 1787 } | 1793 } |
| 1788 #endif | 1794 #endif |
| 1789 } | 1795 } |
| 1790 | 1796 |
| 1791 /** | 1797 /** |
| 1792 * Deinterlaces the given block | 1798 * Deinterlaces the given block by applying a median filter to every second line. |
| 1793 * will be called for every 8x8 block and can read & write from line 4-15, | 1799 * will be called for every 8x8 block and can read & write from line 4-15, |
| 1794 * lines 0-3 have been passed through the deblock / dering filters allready, but can be read too | 1800 * lines 0-3 have been passed through the deblock / dering filters allready, but can be read too |
| 1795 * lines 4-12 will be read into the deblocking filter and should be deinterlaced | 1801 * lines 4-12 will be read into the deblocking filter and should be deinterlaced |
| 1796 */ | 1802 */ |
| 1797 static inline void RENAME(deInterlaceMedian)(uint8_t src[], int stride) | 1803 static inline void RENAME(deInterlaceMedian)(uint8_t src[], int stride) |
