Imported Debian version 2.4.3~trusty1
[deb_ffmpeg.git] / ffmpeg / libavcodec / dsputil_compat.c
CommitLineData
2ba45a60
DM
1/*
2 * DSP utils
3 *
4 * This file is part of FFmpeg.
5 *
6 * FFmpeg is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * FFmpeg is distributed in the hope that it will be useful,
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
17 * License along with FFmpeg; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20
21#include "me_cmp.h"
22#include "dsputil.h"
23
24#if FF_API_DSPUTIL
25
26void avpriv_dsputil_init(DSPContext* p, AVCodecContext *avctx)
27{
28 MECmpContext mecc;
29
30 ff_me_cmp_init(&mecc, avctx);
31#define COPY(name) memcpy(&p->name, &mecc.name, sizeof(p->name))
32 COPY(sum_abs_dctelem);
33 COPY(sad);
34 COPY(sse);
35 COPY(hadamard8_diff);
36 COPY(dct_sad);
37 COPY(quant_psnr);
38 COPY(bit);
39 COPY(rd);
40 COPY(vsad);
41 COPY(vsse);
42 COPY(nsse);
43 COPY(w53);
44 COPY(w97);
45 COPY(dct_max);
46 COPY(dct264_sad);
47 COPY(me_pre_cmp);
48 COPY(me_cmp);
49 COPY(me_sub_cmp);
50 COPY(mb_cmp);
51 COPY(ildct_cmp);
52 COPY(frame_skip_cmp);
53 COPY(pix_abs);
54}
55
56#endif