Mercurial > libavcodec.hg
comparison msmpeg4data.h @ 706:e65798d228ea libavcodec
idct permutation cleanup, idct can be selected per context now
fixing some threadunsafe code
author | michaelni |
---|---|
date | Sun, 29 Sep 2002 22:44:22 +0000 |
parents | 55b4e2248a45 |
children | caa77cd960c0 |
comparison
equal
deleted
inserted
replaced
705:107a56aa74f5 | 706:e65798d228ea |
---|---|
1817 }; | 1817 }; |
1818 | 1818 |
1819 | 1819 |
1820 #define WMV1_SCANTABLE_COUNT 4 | 1820 #define WMV1_SCANTABLE_COUNT 4 |
1821 | 1821 |
1822 static UINT8 wmv1_scantable00[64]= { | 1822 static const UINT8 wmv1_scantable00[64]= { |
1823 0x00, 0x08, 0x01, 0x02, 0x09, 0x10, 0x18, 0x11, | 1823 0x00, 0x08, 0x01, 0x02, 0x09, 0x10, 0x18, 0x11, |
1824 0x0A, 0x03, 0x04, 0x0B, 0x12, 0x19, 0x20, 0x28, | 1824 0x0A, 0x03, 0x04, 0x0B, 0x12, 0x19, 0x20, 0x28, |
1825 0x30, 0x38, 0x29, 0x21, 0x1A, 0x13, 0x0C, 0x05, | 1825 0x30, 0x38, 0x29, 0x21, 0x1A, 0x13, 0x0C, 0x05, |
1826 0x06, 0x0D, 0x14, 0x1B, 0x22, 0x31, 0x39, 0x3A, | 1826 0x06, 0x0D, 0x14, 0x1B, 0x22, 0x31, 0x39, 0x3A, |
1827 0x32, 0x2A, 0x23, 0x1C, 0x15, 0x0E, 0x07, 0x0F, | 1827 0x32, 0x2A, 0x23, 0x1C, 0x15, 0x0E, 0x07, 0x0F, |
1828 0x16, 0x1D, 0x24, 0x2B, 0x33, 0x3B, 0x3C, 0x34, | 1828 0x16, 0x1D, 0x24, 0x2B, 0x33, 0x3B, 0x3C, 0x34, |
1829 0x2C, 0x25, 0x1E, 0x17, 0x1F, 0x26, 0x2D, 0x35, | 1829 0x2C, 0x25, 0x1E, 0x17, 0x1F, 0x26, 0x2D, 0x35, |
1830 0x3D, 0x3E, 0x36, 0x2E, 0x27, 0x2F, 0x37, 0x3F, | 1830 0x3D, 0x3E, 0x36, 0x2E, 0x27, 0x2F, 0x37, 0x3F, |
1831 }; | 1831 }; |
1832 static UINT8 wmv1_scantable01[64]= { | 1832 static const UINT8 wmv1_scantable01[64]= { |
1833 0x00, 0x08, 0x01, 0x02, 0x09, 0x10, 0x18, 0x11, | 1833 0x00, 0x08, 0x01, 0x02, 0x09, 0x10, 0x18, 0x11, |
1834 0x0A, 0x03, 0x04, 0x0B, 0x12, 0x19, 0x20, 0x28, | 1834 0x0A, 0x03, 0x04, 0x0B, 0x12, 0x19, 0x20, 0x28, |
1835 0x21, 0x30, 0x1A, 0x13, 0x0C, 0x05, 0x06, 0x0D, | 1835 0x21, 0x30, 0x1A, 0x13, 0x0C, 0x05, 0x06, 0x0D, |
1836 0x14, 0x1B, 0x22, 0x29, 0x38, 0x31, 0x39, 0x2A, | 1836 0x14, 0x1B, 0x22, 0x29, 0x38, 0x31, 0x39, 0x2A, |
1837 0x23, 0x1C, 0x15, 0x0E, 0x07, 0x0F, 0x16, 0x1D, | 1837 0x23, 0x1C, 0x15, 0x0E, 0x07, 0x0F, 0x16, 0x1D, |
1838 0x24, 0x2B, 0x32, 0x3A, 0x33, 0x3B, 0x2C, 0x25, | 1838 0x24, 0x2B, 0x32, 0x3A, 0x33, 0x3B, 0x2C, 0x25, |
1839 0x1E, 0x17, 0x1F, 0x26, 0x2D, 0x34, 0x3C, 0x35, | 1839 0x1E, 0x17, 0x1F, 0x26, 0x2D, 0x34, 0x3C, 0x35, |
1840 0x3D, 0x2E, 0x27, 0x2F, 0x36, 0x3E, 0x37, 0x3F, | 1840 0x3D, 0x2E, 0x27, 0x2F, 0x36, 0x3E, 0x37, 0x3F, |
1841 }; | 1841 }; |
1842 static UINT8 wmv1_scantable02[64]= { | 1842 static const UINT8 wmv1_scantable02[64]= { |
1843 0x00, 0x01, 0x08, 0x02, 0x03, 0x09, 0x10, 0x18, | 1843 0x00, 0x01, 0x08, 0x02, 0x03, 0x09, 0x10, 0x18, |
1844 0x11, 0x0A, 0x04, 0x05, 0x0B, 0x12, 0x19, 0x20, | 1844 0x11, 0x0A, 0x04, 0x05, 0x0B, 0x12, 0x19, 0x20, |
1845 0x28, 0x30, 0x21, 0x1A, 0x13, 0x0C, 0x06, 0x07, | 1845 0x28, 0x30, 0x21, 0x1A, 0x13, 0x0C, 0x06, 0x07, |
1846 0x0D, 0x14, 0x1B, 0x22, 0x29, 0x38, 0x31, 0x39, | 1846 0x0D, 0x14, 0x1B, 0x22, 0x29, 0x38, 0x31, 0x39, |
1847 0x2A, 0x23, 0x1C, 0x15, 0x0E, 0x0F, 0x16, 0x1D, | 1847 0x2A, 0x23, 0x1C, 0x15, 0x0E, 0x0F, 0x16, 0x1D, |
1848 0x24, 0x2B, 0x32, 0x3A, 0x33, 0x2C, 0x25, 0x1E, | 1848 0x24, 0x2B, 0x32, 0x3A, 0x33, 0x2C, 0x25, 0x1E, |
1849 0x17, 0x1F, 0x26, 0x2D, 0x34, 0x3B, 0x3C, 0x35, | 1849 0x17, 0x1F, 0x26, 0x2D, 0x34, 0x3B, 0x3C, 0x35, |
1850 0x2E, 0x27, 0x2F, 0x36, 0x3D, 0x3E, 0x37, 0x3F, | 1850 0x2E, 0x27, 0x2F, 0x36, 0x3D, 0x3E, 0x37, 0x3F, |
1851 }; | 1851 }; |
1852 static UINT8 wmv1_scantable03[64]= { | 1852 static const UINT8 wmv1_scantable03[64]= { |
1853 0x00, 0x08, 0x10, 0x01, 0x18, 0x20, 0x28, 0x09, | 1853 0x00, 0x08, 0x10, 0x01, 0x18, 0x20, 0x28, 0x09, |
1854 0x02, 0x03, 0x0A, 0x11, 0x19, 0x30, 0x38, 0x29, | 1854 0x02, 0x03, 0x0A, 0x11, 0x19, 0x30, 0x38, 0x29, |
1855 0x21, 0x1A, 0x12, 0x0B, 0x04, 0x05, 0x0C, 0x13, | 1855 0x21, 0x1A, 0x12, 0x0B, 0x04, 0x05, 0x0C, 0x13, |
1856 0x1B, 0x22, 0x31, 0x39, 0x32, 0x2A, 0x23, 0x1C, | 1856 0x1B, 0x22, 0x31, 0x39, 0x32, 0x2A, 0x23, 0x1C, |
1857 0x14, 0x0D, 0x06, 0x07, 0x0E, 0x15, 0x1D, 0x24, | 1857 0x14, 0x0D, 0x06, 0x07, 0x0E, 0x15, 0x1D, 0x24, |
1858 0x2B, 0x33, 0x3A, 0x3B, 0x34, 0x2C, 0x25, 0x1E, | 1858 0x2B, 0x33, 0x3A, 0x3B, 0x34, 0x2C, 0x25, 0x1E, |
1859 0x16, 0x0F, 0x17, 0x1F, 0x26, 0x2D, 0x3C, 0x35, | 1859 0x16, 0x0F, 0x17, 0x1F, 0x26, 0x2D, 0x3C, 0x35, |
1860 0x2E, 0x27, 0x2F, 0x36, 0x3D, 0x3E, 0x37, 0x3F, | 1860 0x2E, 0x27, 0x2F, 0x36, 0x3D, 0x3E, 0x37, 0x3F, |
1861 }; | 1861 }; |
1862 | 1862 |
1863 static UINT8 *wmv1_scantable[WMV1_SCANTABLE_COUNT+1]={ | 1863 static const UINT8 *wmv1_scantable[WMV1_SCANTABLE_COUNT+1]={ |
1864 wmv1_scantable00, | 1864 wmv1_scantable00, |
1865 wmv1_scantable01, | 1865 wmv1_scantable01, |
1866 wmv1_scantable02, | 1866 wmv1_scantable02, |
1867 wmv1_scantable03, | 1867 wmv1_scantable03, |
1868 }; | 1868 }; |