Mercurial > libavcodec.hg
comparison arm/mpegvideo_arm.c @ 11797:77243f47f39e libavcodec
ARM: NEON optimised dct_unquantize_h263_{intra,inter}
author | mru |
---|---|
date | Sat, 29 May 2010 15:29:40 +0000 |
parents | 58c4d851d1c7 |
children | fda5ab5d31bb |
comparison
equal
deleted
inserted
replaced
11796:f917cd286e41 | 11797:77243f47f39e |
---|---|
21 #include "libavcodec/avcodec.h" | 21 #include "libavcodec/avcodec.h" |
22 #include "libavcodec/dsputil.h" | 22 #include "libavcodec/dsputil.h" |
23 #include "libavcodec/mpegvideo.h" | 23 #include "libavcodec/mpegvideo.h" |
24 #include "mpegvideo_arm.h" | 24 #include "mpegvideo_arm.h" |
25 | 25 |
26 void ff_dct_unquantize_h263_inter_neon(MpegEncContext *s, DCTELEM *block, | |
27 int n, int qscale); | |
28 void ff_dct_unquantize_h263_intra_neon(MpegEncContext *s, DCTELEM *block, | |
29 int n, int qscale); | |
30 | |
26 void MPV_common_init_arm(MpegEncContext *s) | 31 void MPV_common_init_arm(MpegEncContext *s) |
27 { | 32 { |
28 /* IWMMXT support is a superset of armv5te, so | 33 /* IWMMXT support is a superset of armv5te, so |
29 * allow optimized functions for armv5te unless | 34 * allow optimized functions for armv5te unless |
30 * a better iwmmxt function exists | 35 * a better iwmmxt function exists |
33 MPV_common_init_armv5te(s); | 38 MPV_common_init_armv5te(s); |
34 #endif | 39 #endif |
35 #if HAVE_IWMMXT | 40 #if HAVE_IWMMXT |
36 MPV_common_init_iwmmxt(s); | 41 MPV_common_init_iwmmxt(s); |
37 #endif | 42 #endif |
43 | |
44 if (HAVE_NEON) { | |
45 s->dct_unquantize_h263_intra = ff_dct_unquantize_h263_intra_neon; | |
46 s->dct_unquantize_h263_inter = ff_dct_unquantize_h263_inter_neon; | |
47 } | |
38 } | 48 } |