Mercurial > libavcodec.hg
comparison dsputil.c @ 858:43cf04688a38 libavcodec
* quick fix for bit exact setting
(FIXME - add this into context flags)
author | kabi |
---|---|
date | Mon, 11 Nov 2002 21:44:27 +0000 |
parents | b510a7b6decd |
children | 9512471dec40 |
comparison
equal
deleted
inserted
replaced
857:b510a7b6decd | 858:43cf04688a38 |
---|---|
1790 c->avg_no_rnd_qpel_pixels_tab[1][15]= avg_no_rnd_qpel8_mc33_c; | 1790 c->avg_no_rnd_qpel_pixels_tab[1][15]= avg_no_rnd_qpel8_mc33_c; |
1791 */ | 1791 */ |
1792 | 1792 |
1793 #ifdef HAVE_MMX | 1793 #ifdef HAVE_MMX |
1794 dsputil_init_mmx(c, mask); | 1794 dsputil_init_mmx(c, mask); |
1795 if (ff_bit_exact) | |
1796 { | |
1797 /* FIXME - AVCodec context should have flag for bitexact match */ | |
1798 /* fprintf(stderr, "\n\n\nff_bit_exact %d\n\n\n\n", ff_bit_exact); */ | |
1799 dsputil_set_bit_exact_mmx(c, mask); | |
1800 } | |
1795 #endif | 1801 #endif |
1796 #ifdef ARCH_ARMV4L | 1802 #ifdef ARCH_ARMV4L |
1797 dsputil_init_armv4l(c, mask); | 1803 dsputil_init_armv4l(c, mask); |
1798 #endif | 1804 #endif |
1799 #ifdef HAVE_MLIB | 1805 #ifdef HAVE_MLIB |
1815 /* remove any non bit exact operation (testing purpose) */ | 1821 /* remove any non bit exact operation (testing purpose) */ |
1816 void avcodec_set_bit_exact(void) | 1822 void avcodec_set_bit_exact(void) |
1817 { | 1823 { |
1818 ff_bit_exact=1; | 1824 ff_bit_exact=1; |
1819 #ifdef HAVE_MMX | 1825 #ifdef HAVE_MMX |
1820 #warning FIXME - set_bit_exact | 1826 // FIXME - better set_bit_exact |
1821 // dsputil_set_bit_exact_mmx(); | 1827 // dsputil_set_bit_exact_mmx(); |
1822 #endif | 1828 #endif |
1823 } | 1829 } |
1824 | 1830 |
1825 void get_psnr(UINT8 *orig_image[3], UINT8 *coded_image[3], | 1831 void get_psnr(UINT8 *orig_image[3], UINT8 *coded_image[3], |