annotate arm/mpegvideo_arm.c @ 12037:1e89f78c8425 libavcodec

fix dependencies of vp5 and vp6 decoders after r23915 they now also depends on cabac.o for ff_h264_norm_shift
author aurel
date Thu, 01 Jul 2010 16:09:38 +0000
parents 7c2369ec6faa
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
730
b24ea84b23e2 trying to fix the non-x86 IDCTs (untested)
michaelni
parents:
diff changeset
1 /*
b24ea84b23e2 trying to fix the non-x86 IDCTs (untested)
michaelni
parents:
diff changeset
2 * Copyright (c) 2002 Michael Niedermayer
b24ea84b23e2 trying to fix the non-x86 IDCTs (untested)
michaelni
parents:
diff changeset
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
b24ea84b23e2 trying to fix the non-x86 IDCTs (untested)
michaelni
parents:
diff changeset
7 * modify it under the terms of the GNU Lesser General Public
b24ea84b23e2 trying to fix the non-x86 IDCTs (untested)
michaelni
parents:
diff changeset
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
b24ea84b23e2 trying to fix the non-x86 IDCTs (untested)
michaelni
parents:
diff changeset
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
b24ea84b23e2 trying to fix the non-x86 IDCTs (untested)
michaelni
parents:
diff changeset
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
b24ea84b23e2 trying to fix the non-x86 IDCTs (untested)
michaelni
parents:
diff changeset
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
b24ea84b23e2 trying to fix the non-x86 IDCTs (untested)
michaelni
parents:
diff changeset
14 * Lesser General Public License for more details.
b24ea84b23e2 trying to fix the non-x86 IDCTs (untested)
michaelni
parents:
diff changeset
15 *
b24ea84b23e2 trying to fix the non-x86 IDCTs (untested)
michaelni
parents:
diff changeset
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
b24ea84b23e2 trying to fix the non-x86 IDCTs (untested)
michaelni
parents:
diff changeset
19 */
b24ea84b23e2 trying to fix the non-x86 IDCTs (untested)
michaelni
parents:
diff changeset
20
6763
f7cbb7733146 Use full path for #includes from another directory.
diego
parents: 6761
diff changeset
21 #include "libavcodec/avcodec.h"
f7cbb7733146 Use full path for #includes from another directory.
diego
parents: 6761
diff changeset
22 #include "libavcodec/dsputil.h"
f7cbb7733146 Use full path for #includes from another directory.
diego
parents: 6761
diff changeset
23 #include "libavcodec/mpegvideo.h"
11397
58c4d851d1c7 ARM: move mpegvideo prototypes to a header file
mru
parents: 8590
diff changeset
24 #include "mpegvideo_arm.h"
11813
fda5ab5d31bb ARM: fail build if hardcoded struct offsets are wrong
mru
parents: 11797
diff changeset
25 #include "asm-offsets.h"
fda5ab5d31bb ARM: fail build if hardcoded struct offsets are wrong
mru
parents: 11797
diff changeset
26
11816
7c2369ec6faa ARM: check struct offsets only when they are used
mru
parents: 11813
diff changeset
27 #if HAVE_NEON
11813
fda5ab5d31bb ARM: fail build if hardcoded struct offsets are wrong
mru
parents: 11797
diff changeset
28 CHK_OFFS(MpegEncContext, y_dc_scale, Y_DC_SCALE);
fda5ab5d31bb ARM: fail build if hardcoded struct offsets are wrong
mru
parents: 11797
diff changeset
29 CHK_OFFS(MpegEncContext, c_dc_scale, C_DC_SCALE);
fda5ab5d31bb ARM: fail build if hardcoded struct offsets are wrong
mru
parents: 11797
diff changeset
30 CHK_OFFS(MpegEncContext, ac_pred, AC_PRED);
fda5ab5d31bb ARM: fail build if hardcoded struct offsets are wrong
mru
parents: 11797
diff changeset
31 CHK_OFFS(MpegEncContext, block_last_index, BLOCK_LAST_INDEX);
fda5ab5d31bb ARM: fail build if hardcoded struct offsets are wrong
mru
parents: 11797
diff changeset
32 CHK_OFFS(MpegEncContext, inter_scantable.raster_end, INTER_SCANTAB_RASTER_END);
fda5ab5d31bb ARM: fail build if hardcoded struct offsets are wrong
mru
parents: 11797
diff changeset
33 CHK_OFFS(MpegEncContext, h263_aic, H263_AIC);
11816
7c2369ec6faa ARM: check struct offsets only when they are used
mru
parents: 11813
diff changeset
34 #endif
2734
aeea63c97878 Better ARM support for mplayer/ffmpeg, ported from atty fork
michael
parents: 1092
diff changeset
35
11797
77243f47f39e ARM: NEON optimised dct_unquantize_h263_{intra,inter}
mru
parents: 11397
diff changeset
36 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
37 int n, int qscale);
77243f47f39e ARM: NEON optimised dct_unquantize_h263_{intra,inter}
mru
parents: 11397
diff changeset
38 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
39 int n, int qscale);
77243f47f39e ARM: NEON optimised dct_unquantize_h263_{intra,inter}
mru
parents: 11397
diff changeset
40
8359
9281a8a9387a ARM: replace "armv4l" with "arm"
mru
parents: 8250
diff changeset
41 void MPV_common_init_arm(MpegEncContext *s)
730
b24ea84b23e2 trying to fix the non-x86 IDCTs (untested)
michaelni
parents:
diff changeset
42 {
4713
47ee459ce964 iwmmxt ffmpeg code does not implement dct_unquantize_h263_inter_iwmmxt, but
mru
parents: 4340
diff changeset
43 /* IWMMXT support is a superset of armv5te, so
5963
80103098c797 spelling
vitor
parents: 5215
diff changeset
44 * 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
45 * a better iwmmxt function exists
47ee459ce964 iwmmxt ffmpeg code does not implement dct_unquantize_h263_inter_iwmmxt, but
mru
parents: 4340
diff changeset
46 */
8590
7a463923ecd1 Change semantic of CONFIG_*, HAVE_* and ARCH_*.
aurel
parents: 8359
diff changeset
47 #if HAVE_ARMV5TE
4713
47ee459ce964 iwmmxt ffmpeg code does not implement dct_unquantize_h263_inter_iwmmxt, but
mru
parents: 4340
diff changeset
48 MPV_common_init_armv5te(s);
47ee459ce964 iwmmxt ffmpeg code does not implement dct_unquantize_h263_inter_iwmmxt, but
mru
parents: 4340
diff changeset
49 #endif
8590
7a463923ecd1 Change semantic of CONFIG_*, HAVE_* and ARCH_*.
aurel
parents: 8359
diff changeset
50 #if HAVE_IWMMXT
2734
aeea63c97878 Better ARM support for mplayer/ffmpeg, ported from atty fork
michael
parents: 1092
diff changeset
51 MPV_common_init_iwmmxt(s);
aeea63c97878 Better ARM support for mplayer/ffmpeg, ported from atty fork
michael
parents: 1092
diff changeset
52 #endif
11797
77243f47f39e ARM: NEON optimised dct_unquantize_h263_{intra,inter}
mru
parents: 11397
diff changeset
53
77243f47f39e ARM: NEON optimised dct_unquantize_h263_{intra,inter}
mru
parents: 11397
diff changeset
54 if (HAVE_NEON) {
77243f47f39e ARM: NEON optimised dct_unquantize_h263_{intra,inter}
mru
parents: 11397
diff changeset
55 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
56 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
57 }
730
b24ea84b23e2 trying to fix the non-x86 IDCTs (untested)
michaelni
parents:
diff changeset
58 }