Mercurial > libavcodec.hg
annotate 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 |
rev | line source |
---|---|
730 | 1 /* |
2 * Copyright (c) 2002 Michael Niedermayer | |
3 * | |
3947
c8c591fe26f8
Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents:
3036
diff
changeset
|
4 * This file is part of FFmpeg. |
c8c591fe26f8
Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents:
3036
diff
changeset
|
5 * |
c8c591fe26f8
Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents:
3036
diff
changeset
|
6 * FFmpeg is free software; you can redistribute it and/or |
730 | 7 * modify it under the terms of the GNU Lesser General Public |
8 * License as published by the Free Software Foundation; either | |
3947
c8c591fe26f8
Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents:
3036
diff
changeset
|
9 * version 2.1 of the License, or (at your option) any later version. |
730 | 10 * |
3947
c8c591fe26f8
Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents:
3036
diff
changeset
|
11 * FFmpeg is distributed in the hope that it will be useful, |
730 | 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
14 * Lesser General Public License for more details. | |
15 * | |
16 * You should have received a copy of the GNU Lesser General Public | |
3947
c8c591fe26f8
Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents:
3036
diff
changeset
|
17 * License along with FFmpeg; if not, write to the Free Software |
3036
0b546eab515d
Update licensing information: The FSF changed postal address.
diego
parents:
2735
diff
changeset
|
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
730 | 19 */ |
20 | |
6763 | 21 #include "libavcodec/avcodec.h" |
22 #include "libavcodec/dsputil.h" | |
23 #include "libavcodec/mpegvideo.h" | |
11397 | 24 #include "mpegvideo_arm.h" |
2734
aeea63c97878
Better ARM support for mplayer/ffmpeg, ported from atty fork
michael
parents:
1092
diff
changeset
|
25 |
11797
77243f47f39e
ARM: NEON optimised dct_unquantize_h263_{intra,inter}
mru
parents:
11397
diff
changeset
|
26 void ff_dct_unquantize_h263_inter_neon(MpegEncContext *s, DCTELEM *block, |
77243f47f39e
ARM: NEON optimised dct_unquantize_h263_{intra,inter}
mru
parents:
11397
diff
changeset
|
27 int n, int qscale); |
77243f47f39e
ARM: NEON optimised dct_unquantize_h263_{intra,inter}
mru
parents:
11397
diff
changeset
|
28 void ff_dct_unquantize_h263_intra_neon(MpegEncContext *s, DCTELEM *block, |
77243f47f39e
ARM: NEON optimised dct_unquantize_h263_{intra,inter}
mru
parents:
11397
diff
changeset
|
29 int n, int qscale); |
77243f47f39e
ARM: NEON optimised dct_unquantize_h263_{intra,inter}
mru
parents:
11397
diff
changeset
|
30 |
8359 | 31 void MPV_common_init_arm(MpegEncContext *s) |
730 | 32 { |
4713
47ee459ce964
iwmmxt ffmpeg code does not implement dct_unquantize_h263_inter_iwmmxt, but
mru
parents:
4340
diff
changeset
|
33 /* IWMMXT support is a superset of armv5te, so |
5963 | 34 * allow optimized functions for armv5te unless |
4713
47ee459ce964
iwmmxt ffmpeg code does not implement dct_unquantize_h263_inter_iwmmxt, but
mru
parents:
4340
diff
changeset
|
35 * a better iwmmxt function exists |
47ee459ce964
iwmmxt ffmpeg code does not implement dct_unquantize_h263_inter_iwmmxt, but
mru
parents:
4340
diff
changeset
|
36 */ |
8590 | 37 #if HAVE_ARMV5TE |
4713
47ee459ce964
iwmmxt ffmpeg code does not implement dct_unquantize_h263_inter_iwmmxt, but
mru
parents:
4340
diff
changeset
|
38 MPV_common_init_armv5te(s); |
47ee459ce964
iwmmxt ffmpeg code does not implement dct_unquantize_h263_inter_iwmmxt, but
mru
parents:
4340
diff
changeset
|
39 #endif |
8590 | 40 #if HAVE_IWMMXT |
2734
aeea63c97878
Better ARM support for mplayer/ffmpeg, ported from atty fork
michael
parents:
1092
diff
changeset
|
41 MPV_common_init_iwmmxt(s); |
aeea63c97878
Better ARM support for mplayer/ffmpeg, ported from atty fork
michael
parents:
1092
diff
changeset
|
42 #endif |
11797
77243f47f39e
ARM: NEON optimised dct_unquantize_h263_{intra,inter}
mru
parents:
11397
diff
changeset
|
43 |
77243f47f39e
ARM: NEON optimised dct_unquantize_h263_{intra,inter}
mru
parents:
11397
diff
changeset
|
44 if (HAVE_NEON) { |
77243f47f39e
ARM: NEON optimised dct_unquantize_h263_{intra,inter}
mru
parents:
11397
diff
changeset
|
45 s->dct_unquantize_h263_intra = ff_dct_unquantize_h263_intra_neon; |
77243f47f39e
ARM: NEON optimised dct_unquantize_h263_{intra,inter}
mru
parents:
11397
diff
changeset
|
46 s->dct_unquantize_h263_inter = ff_dct_unquantize_h263_inter_neon; |
77243f47f39e
ARM: NEON optimised dct_unquantize_h263_{intra,inter}
mru
parents:
11397
diff
changeset
|
47 } |
730 | 48 } |