~ubuntu-branches/ubuntu/oneiric/libav/oneiric

« back to all changes in this revision

Viewing changes to libavcodec/cavsdsp.c

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2011-04-30 14:27:42 UTC
  • mfrom: (1.1.2 experimental)
  • Revision ID: james.westby@ubuntu.com-20110430142742-quvblxk1tj6adlh5
Tags: 4:0.7~b1-1ubuntu1
* Merge from debian. Remaining changes:
  - don't build against libfaad, libdirac, librtmp and libopenjpeg
    (all in universe)
  - explicitly --enable-pic on powerpc, cf. LP #654666
  - different arm configure bits that should probably better be
    merged into debian
* Cherry-picked from git: 
  - install doc/APIChanges and refer to them in NEWS.Debian (Closes: #623682)
  - don't try to install non-existing documentation, fixes FTBFS on powerpc

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 *
6
6
 * Copyright (c) 2006  Stefan Gehrer <stefan.gehrer@gmx.de>
7
7
 *
8
 
 * This file is part of FFmpeg.
 
8
 * This file is part of Libav.
9
9
 *
10
 
 * FFmpeg is free software; you can redistribute it and/or
 
10
 * Libav is free software; you can redistribute it and/or
11
11
 * modify it under the terms of the GNU Lesser General Public
12
12
 * License as published by the Free Software Foundation; either
13
13
 * version 2.1 of the License, or (at your option) any later version.
14
14
 *
15
 
 * FFmpeg is distributed in the hope that it will be useful,
 
15
 * Libav is distributed in the hope that it will be useful,
16
16
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17
17
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18
18
 * Lesser General Public License for more details.
19
19
 *
20
20
 * You should have received a copy of the GNU Lesser General Public
21
 
 * License along with FFmpeg; if not, write to the Free Software
 
21
 * License along with Libav; if not, write to the Free Software
22
22
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23
23
 */
24
24
 
25
25
#include <stdio.h>
26
26
#include "dsputil.h"
 
27
#include "cavsdsp.h"
27
28
 
28
29
/*****************************************************************************
29
30
 *
510
511
CAVS_MC(avg_, 8)
511
512
CAVS_MC(avg_, 16)
512
513
 
513
 
av_cold void ff_cavsdsp_init(DSPContext* c, AVCodecContext *avctx) {
 
514
#define ff_put_cavs_qpel8_mc00_c  ff_put_pixels8x8_c
 
515
#define ff_avg_cavs_qpel8_mc00_c  ff_avg_pixels8x8_c
 
516
#define ff_put_cavs_qpel16_mc00_c ff_put_pixels16x16_c
 
517
#define ff_avg_cavs_qpel16_mc00_c ff_avg_pixels16x16_c
 
518
 
 
519
av_cold void ff_cavsdsp_init(CAVSDSPContext* c, AVCodecContext *avctx) {
514
520
#define dspfunc(PFX, IDX, NUM) \
515
521
    c->PFX ## _pixels_tab[IDX][ 0] = ff_ ## PFX ## NUM ## _mc00_c; \
516
522
    c->PFX ## _pixels_tab[IDX][ 1] = ff_ ## PFX ## NUM ## _mc10_c; \
537
543
    c->cavs_filter_cv = cavs_filter_cv_c;
538
544
    c->cavs_filter_ch = cavs_filter_ch_c;
539
545
    c->cavs_idct8_add = cavs_idct8_add_c;
 
546
 
 
547
    if (HAVE_MMX) ff_cavsdsp_init_mmx(c, avctx);
540
548
}