~medibuntu-maintainers/mplayer/medibuntu.precise

« back to all changes in this revision

Viewing changes to ffmpeg/libavcodec/arm/h264dsp_init_arm.c

  • Committer: Gauvain Pocentek
  • Date: 2012-03-06 11:59:12 UTC
  • mfrom: (66.1.15 precise)
  • Revision ID: gauvain@pocentek.net-20120306115912-h9d6kt9j0l532oo5
* Merge from Ubuntu:
  - put back faac support
  - recommends apport-hooks-medibuntu
  - change Maintainer, Uploaders & Vcs-* fields.
* New upstream snapshot
* upload to unstable
* Build against external libmpeg2
* drop 51_FTBFS_arm.patch again
* no longer build depend on libcdparanoia-dev on the Hurd
* Fix FTBFS on the hurd.
  Thanks to Samuel Thibault <sthibault@debian.org> (Closes: #654974)
* Fix FTBFS on arm
* New upstream snapshot, Closes: #650339, #643621, #481807
* Imported Upstream version 1.0~rc4+svn34492
* Bump standards version
* Bump dependency on libav >= 4:0.8~, Closes: #653887
* Fix build-indep
* Build mplayer-gui again, Closes: #568514
* Drop debian/all-lang-config-mak.sh, no longer needed
* include .dfsg1 in version number
* remove get-orig-source target
* no longer prune compiler flags from the environment
* No longer advertise nor build 3fdx, mga and dxr3 backends,
  Closes: #496106, #442181, #533546
* beautify mplayer version identification string
* Brown paperbag upload.
* Next try to fix build failure on sparce after recent binutils change.
* Brown paperbag upload.
* Really fix build failure on sparc after recent binutils change.
* Properly set Replaces/Conflicts on mplayer2{,-dbg} to avoid
  file overwrite errors.
* Adjust versioning of mplayer listed in the mplayer-dbg's Depends field.
* Fix build failure on sparc after recent binutils change.
* Urgency medium bumped because of RC-level bugfix
  and speeding up x264 transition.
* Update to my @debian.org email.
* Upload to unstable
* Enable joystick support on Linux only, Closes: #638408
* Rebuild fixes toolchain issue on arm, Closes: #637077
* New upstream snapshot
* following the discussion started by Diego Biurrun <diego@biurrun.de>
  in debian-devel, I have prepared a new packaging of 'mplayer'
  (with code that comes from CVS)
* the upstream tar.bz cannot be distributed by Debian, since it contains
   CSS code; so I am repackaging it 
* I have tried my best to address all known issues:
  - the package contains the detailed Copyright made by Diego Biurrun 
  - the package does not contain CSS code, or  AFAIK other code on which 
     there is active patent enforcement
  - there is a script  debian/cvs-changelog.sh  that shows all changes
     done to files included in this source.
    This should comply with GPLv2 sec 2.a  (in spirit if not in letter)
    For this reason, the source code contains CVS directories.
* needs   make (>= 3.80) for 'html-chunked-$(1)' in DOCS/xml/Makefile

* some corrections, as suggested Diego Biurrun
  - binary codecs should go into /usr/lib/codecs (upstream default)
  - better template 'mplayer/install_codecs'
  - an empty 'font=' in mplayer.conf breaks mplayer: postinst corrected
* correction in 'mplayer/cfgnote'
* better mplayer.postinst and mplayer.config

* New upstream release
* better debian/copyright file
* do not ship a skin
* New upstream release
* changed DEB_BUILD_OPTIONS to DEB_BUILD_CONFIGURE ,
  DEB_BUILD_OPTIONS is used as in debian policy
* use gcc-3.4
* changed xlibs-dev to a long list of dependencies, for Debian/etch
* try to adhere to  http://www.mplayerhq.hu/DOCS/tech/binary-packaging.txt
  (see README.Debian for details)
* removed dependency on xlibmesa-dev, disabled opengl
* New upstream release
* Simon McVittie <hacks@pseudorandom.co.uk> wonderful work:
- Work around Debian bug #267442 (glibc's sys/uio.h and gcc's altivec.h have
  conflicting uses for __vector) by re-ordering #includes
- Fix potential symlink attack in ./configure
- Disable support for binary codecs on platforms for which those codecs
  aren't available; also disable the corresponding Debconf note when it's
  inappropriate
- Changed Build-Depends: so it works in pbuilder
- Explicitly build-depend on libjpeg62-dev, libfontconfig1-dev,
  libungif4-dev 
- Tweak debian/rules to avoid certain errors being ignored
- Use --language=all
* provide a target  'debian/rules get-orig-source' 
  that recreates the orig.tar.gz ; then use the above orig.tar.gz
* rewrote some parts of debian/rules
* don't clean and recompile docs if upstream ships them
* mplayer-doc was shipping too much stuff
* translated man pages where not installed properly
* compile with libdv4-dev
* correct README.Debian
* Forgot build-dep on libtheora
* Must not depend on libxvidcore
* New upstream release
* new release.
* rc1 to become 0.90
* new pre-release
* new pre-release
* gtk bug fixed.
* new release.
* version bumped
* 0.60 pre2 release
* 0.60 pre-release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
void ff_h264_h_loop_filter_chroma_neon(uint8_t *pix, int stride, int alpha,
33
33
                                       int beta, int8_t *tc0);
34
34
 
35
 
void ff_weight_h264_pixels_16x16_neon(uint8_t *ds, int stride, int log2_den,
36
 
                                      int weight, int offset);
37
 
void ff_weight_h264_pixels_16x8_neon(uint8_t *ds, int stride, int log2_den,
38
 
                                     int weight, int offset);
39
 
void ff_weight_h264_pixels_8x16_neon(uint8_t *ds, int stride, int log2_den,
40
 
                                     int weight, int offset);
41
 
void ff_weight_h264_pixels_8x8_neon(uint8_t *ds, int stride, int log2_den,
42
 
                                    int weight, int offset);
43
 
void ff_weight_h264_pixels_8x4_neon(uint8_t *ds, int stride, int log2_den,
44
 
                                    int weight, int offset);
45
 
void ff_weight_h264_pixels_4x8_neon(uint8_t *ds, int stride, int log2_den,
46
 
                                    int weight, int offset);
47
 
void ff_weight_h264_pixels_4x4_neon(uint8_t *ds, int stride, int log2_den,
48
 
                                    int weight, int offset);
49
 
void ff_weight_h264_pixels_4x2_neon(uint8_t *ds, int stride, int log2_den,
50
 
                                    int weight, int offset);
 
35
void ff_weight_h264_pixels_16_neon(uint8_t *dst, int stride, int height,
 
36
                                   int log2_den, int weight, int offset);
 
37
void ff_weight_h264_pixels_8_neon(uint8_t *dst, int stride, int height,
 
38
                                  int log2_den, int weight, int offset);
 
39
void ff_weight_h264_pixels_4_neon(uint8_t *dst, int stride, int height,
 
40
                                  int log2_den, int weight, int offset);
51
41
 
52
 
void ff_biweight_h264_pixels_16x16_neon(uint8_t *dst, uint8_t *src, int stride,
53
 
                                        int log2_den, int weightd, int weights,
54
 
                                        int offset);
55
 
void ff_biweight_h264_pixels_16x8_neon(uint8_t *dst, uint8_t *src, int stride,
56
 
                                       int log2_den, int weightd, int weights,
57
 
                                       int offset);
58
 
void ff_biweight_h264_pixels_8x16_neon(uint8_t *dst, uint8_t *src, int stride,
59
 
                                       int log2_den, int weightd, int weights,
60
 
                                       int offset);
61
 
void ff_biweight_h264_pixels_8x8_neon(uint8_t *dst, uint8_t *src, int stride,
62
 
                                      int log2_den, int weightd, int weights,
63
 
                                      int offset);
64
 
void ff_biweight_h264_pixels_8x4_neon(uint8_t *dst, uint8_t *src, int stride,
65
 
                                      int log2_den, int weightd, int weights,
66
 
                                      int offset);
67
 
void ff_biweight_h264_pixels_4x8_neon(uint8_t *dst, uint8_t *src, int stride,
68
 
                                      int log2_den, int weightd, int weights,
69
 
                                      int offset);
70
 
void ff_biweight_h264_pixels_4x4_neon(uint8_t *dst, uint8_t *src, int stride,
71
 
                                      int log2_den, int weightd, int weights,
72
 
                                      int offset);
73
 
void ff_biweight_h264_pixels_4x2_neon(uint8_t *dst, uint8_t *src, int stride,
74
 
                                      int log2_den, int weightd, int weights,
75
 
                                      int offset);
 
42
void ff_biweight_h264_pixels_16_neon(uint8_t *dst, uint8_t *src, int stride,
 
43
                                     int height, int log2_den, int weightd,
 
44
                                     int weights, int offset);
 
45
void ff_biweight_h264_pixels_8_neon(uint8_t *dst, uint8_t *src, int stride,
 
46
                                    int height, int log2_den, int weightd,
 
47
                                    int weights, int offset);
 
48
void ff_biweight_h264_pixels_4_neon(uint8_t *dst, uint8_t *src, int stride,
 
49
                                    int height, int log2_den, int weightd,
 
50
                                    int weights, int offset);
76
51
 
77
52
void ff_h264_idct_add_neon(uint8_t *dst, DCTELEM *block, int stride);
78
53
void ff_h264_idct_dc_add_neon(uint8_t *dst, DCTELEM *block, int stride);
92
67
                             DCTELEM *block, int stride,
93
68
                             const uint8_t nnzc[6*8]);
94
69
 
95
 
static void ff_h264dsp_init_neon(H264DSPContext *c, const int bit_depth)
 
70
static void ff_h264dsp_init_neon(H264DSPContext *c, const int bit_depth, const int chroma_format_idc)
96
71
{
97
72
    if (bit_depth == 8) {
98
73
    c->h264_v_loop_filter_luma   = ff_h264_v_loop_filter_luma_neon;
100
75
    c->h264_v_loop_filter_chroma = ff_h264_v_loop_filter_chroma_neon;
101
76
    c->h264_h_loop_filter_chroma = ff_h264_h_loop_filter_chroma_neon;
102
77
 
103
 
    c->weight_h264_pixels_tab[0] = ff_weight_h264_pixels_16x16_neon;
104
 
    c->weight_h264_pixels_tab[1] = ff_weight_h264_pixels_16x8_neon;
105
 
    c->weight_h264_pixels_tab[2] = ff_weight_h264_pixels_8x16_neon;
106
 
    c->weight_h264_pixels_tab[3] = ff_weight_h264_pixels_8x8_neon;
107
 
    c->weight_h264_pixels_tab[4] = ff_weight_h264_pixels_8x4_neon;
108
 
    c->weight_h264_pixels_tab[5] = ff_weight_h264_pixels_4x8_neon;
109
 
    c->weight_h264_pixels_tab[6] = ff_weight_h264_pixels_4x4_neon;
110
 
    c->weight_h264_pixels_tab[7] = ff_weight_h264_pixels_4x2_neon;
 
78
    c->weight_h264_pixels_tab[0] = ff_weight_h264_pixels_16_neon;
 
79
    c->weight_h264_pixels_tab[1] = ff_weight_h264_pixels_8_neon;
 
80
    c->weight_h264_pixels_tab[2] = ff_weight_h264_pixels_4_neon;
111
81
 
112
 
    c->biweight_h264_pixels_tab[0] = ff_biweight_h264_pixels_16x16_neon;
113
 
    c->biweight_h264_pixels_tab[1] = ff_biweight_h264_pixels_16x8_neon;
114
 
    c->biweight_h264_pixels_tab[2] = ff_biweight_h264_pixels_8x16_neon;
115
 
    c->biweight_h264_pixels_tab[3] = ff_biweight_h264_pixels_8x8_neon;
116
 
    c->biweight_h264_pixels_tab[4] = ff_biweight_h264_pixels_8x4_neon;
117
 
    c->biweight_h264_pixels_tab[5] = ff_biweight_h264_pixels_4x8_neon;
118
 
    c->biweight_h264_pixels_tab[6] = ff_biweight_h264_pixels_4x4_neon;
119
 
    c->biweight_h264_pixels_tab[7] = ff_biweight_h264_pixels_4x2_neon;
 
82
    c->biweight_h264_pixels_tab[0] = ff_biweight_h264_pixels_16_neon;
 
83
    c->biweight_h264_pixels_tab[1] = ff_biweight_h264_pixels_8_neon;
 
84
    c->biweight_h264_pixels_tab[2] = ff_biweight_h264_pixels_4_neon;
120
85
 
121
86
    c->h264_idct_add        = ff_h264_idct_add_neon;
122
87
    c->h264_idct_dc_add     = ff_h264_idct_dc_add_neon;
123
88
    c->h264_idct_add16      = ff_h264_idct_add16_neon;
124
89
    c->h264_idct_add16intra = ff_h264_idct_add16intra_neon;
125
 
    c->h264_idct_add8       = ff_h264_idct_add8_neon;
 
90
    if (chroma_format_idc == 1)
 
91
        c->h264_idct_add8   = ff_h264_idct_add8_neon;
126
92
    c->h264_idct8_add       = ff_h264_idct8_add_neon;
127
93
    c->h264_idct8_dc_add    = ff_h264_idct8_dc_add_neon;
128
94
    c->h264_idct8_add4      = ff_h264_idct8_add4_neon;
129
95
    }
130
96
}
131
97
 
132
 
void ff_h264dsp_init_arm(H264DSPContext *c, const int bit_depth)
 
98
void ff_h264dsp_init_arm(H264DSPContext *c, const int bit_depth, const int chroma_format_idc)
133
99
{
134
 
    if (HAVE_NEON) ff_h264dsp_init_neon(c, bit_depth);
 
100
    if (HAVE_NEON) ff_h264dsp_init_neon(c, bit_depth, chroma_format_idc);
135
101
}