annotate x86/vp56dsp_init.c @ 12435:fe78a4548d12 libavcodec

Put ff_ prefix on non-static {put_signed,put,add}_pixels_clamped_mmx() functions.
author rbultje
date Mon, 30 Aug 2010 16:22:27 +0000
parents e17840120b80
children a5ddb39627fd
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
12417
9f06475db098 Move vp6_filter_diag4() from DSPContext to VP56DSPContext.
rbultje
parents:
diff changeset
1 /*
9f06475db098 Move vp6_filter_diag4() from DSPContext to VP56DSPContext.
rbultje
parents:
diff changeset
2 * VP6 MMX/SSE2 optimizations
9f06475db098 Move vp6_filter_diag4() from DSPContext to VP56DSPContext.
rbultje
parents:
diff changeset
3 * Copyright (C) 2009 Sebastien Lucas <sebastien.lucas@gmail.com>
9f06475db098 Move vp6_filter_diag4() from DSPContext to VP56DSPContext.
rbultje
parents:
diff changeset
4 * Copyright (C) 2009 Zuxy Meng <zuxy.meng@gmail.com>
9f06475db098 Move vp6_filter_diag4() from DSPContext to VP56DSPContext.
rbultje
parents:
diff changeset
5 *
9f06475db098 Move vp6_filter_diag4() from DSPContext to VP56DSPContext.
rbultje
parents:
diff changeset
6 * This file is part of FFmpeg.
9f06475db098 Move vp6_filter_diag4() from DSPContext to VP56DSPContext.
rbultje
parents:
diff changeset
7 *
9f06475db098 Move vp6_filter_diag4() from DSPContext to VP56DSPContext.
rbultje
parents:
diff changeset
8 * FFmpeg is free software; you can redistribute it and/or
9f06475db098 Move vp6_filter_diag4() from DSPContext to VP56DSPContext.
rbultje
parents:
diff changeset
9 * modify it under the terms of the GNU Lesser General Public
9f06475db098 Move vp6_filter_diag4() from DSPContext to VP56DSPContext.
rbultje
parents:
diff changeset
10 * License as published by the Free Software Foundation; either
9f06475db098 Move vp6_filter_diag4() from DSPContext to VP56DSPContext.
rbultje
parents:
diff changeset
11 * version 2.1 of the License, or (at your option) any later version.
9f06475db098 Move vp6_filter_diag4() from DSPContext to VP56DSPContext.
rbultje
parents:
diff changeset
12 *
9f06475db098 Move vp6_filter_diag4() from DSPContext to VP56DSPContext.
rbultje
parents:
diff changeset
13 * FFmpeg is distributed in the hope that it will be useful,
9f06475db098 Move vp6_filter_diag4() from DSPContext to VP56DSPContext.
rbultje
parents:
diff changeset
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9f06475db098 Move vp6_filter_diag4() from DSPContext to VP56DSPContext.
rbultje
parents:
diff changeset
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9f06475db098 Move vp6_filter_diag4() from DSPContext to VP56DSPContext.
rbultje
parents:
diff changeset
16 * Lesser General Public License for more details.
9f06475db098 Move vp6_filter_diag4() from DSPContext to VP56DSPContext.
rbultje
parents:
diff changeset
17 *
9f06475db098 Move vp6_filter_diag4() from DSPContext to VP56DSPContext.
rbultje
parents:
diff changeset
18 * You should have received a copy of the GNU Lesser General Public
9f06475db098 Move vp6_filter_diag4() from DSPContext to VP56DSPContext.
rbultje
parents:
diff changeset
19 * License along with FFmpeg; if not, write to the Free Software
9f06475db098 Move vp6_filter_diag4() from DSPContext to VP56DSPContext.
rbultje
parents:
diff changeset
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
9f06475db098 Move vp6_filter_diag4() from DSPContext to VP56DSPContext.
rbultje
parents:
diff changeset
21 */
9f06475db098 Move vp6_filter_diag4() from DSPContext to VP56DSPContext.
rbultje
parents:
diff changeset
22
9f06475db098 Move vp6_filter_diag4() from DSPContext to VP56DSPContext.
rbultje
parents:
diff changeset
23 #include "libavutil/x86_cpu.h"
9f06475db098 Move vp6_filter_diag4() from DSPContext to VP56DSPContext.
rbultje
parents:
diff changeset
24 #include "libavcodec/dsputil.h"
9f06475db098 Move vp6_filter_diag4() from DSPContext to VP56DSPContext.
rbultje
parents:
diff changeset
25 #include "libavcodec/vp56dsp.h"
12418
e17840120b80 Move vp6_filter_diag4() x86 SIMD code from inline ASM to YASM. This should
rbultje
parents: 12417
diff changeset
26
e17840120b80 Move vp6_filter_diag4() x86 SIMD code from inline ASM to YASM. This should
rbultje
parents: 12417
diff changeset
27 void ff_vp6_filter_diag4_mmx(uint8_t *dst, uint8_t *src, int stride,
e17840120b80 Move vp6_filter_diag4() x86 SIMD code from inline ASM to YASM. This should
rbultje
parents: 12417
diff changeset
28 const int16_t *h_weights,const int16_t *v_weights);
e17840120b80 Move vp6_filter_diag4() x86 SIMD code from inline ASM to YASM. This should
rbultje
parents: 12417
diff changeset
29 void ff_vp6_filter_diag4_sse2(uint8_t *dst, uint8_t *src, int stride,
e17840120b80 Move vp6_filter_diag4() x86 SIMD code from inline ASM to YASM. This should
rbultje
parents: 12417
diff changeset
30 const int16_t *h_weights,const int16_t *v_weights);
12417
9f06475db098 Move vp6_filter_diag4() from DSPContext to VP56DSPContext.
rbultje
parents:
diff changeset
31
9f06475db098 Move vp6_filter_diag4() from DSPContext to VP56DSPContext.
rbultje
parents:
diff changeset
32 av_cold void ff_vp56dsp_init_x86(VP56DSPContext* c, enum CodecID codec)
9f06475db098 Move vp6_filter_diag4() from DSPContext to VP56DSPContext.
rbultje
parents:
diff changeset
33 {
12418
e17840120b80 Move vp6_filter_diag4() x86 SIMD code from inline ASM to YASM. This should
rbultje
parents: 12417
diff changeset
34 #if HAVE_YASM
12417
9f06475db098 Move vp6_filter_diag4() from DSPContext to VP56DSPContext.
rbultje
parents:
diff changeset
35 int mm_flags = mm_support();
9f06475db098 Move vp6_filter_diag4() from DSPContext to VP56DSPContext.
rbultje
parents:
diff changeset
36
9f06475db098 Move vp6_filter_diag4() from DSPContext to VP56DSPContext.
rbultje
parents:
diff changeset
37 if (CONFIG_VP6_DECODER && codec == CODEC_ID_VP6) {
9f06475db098 Move vp6_filter_diag4() from DSPContext to VP56DSPContext.
rbultje
parents:
diff changeset
38 if (mm_flags & FF_MM_MMX) {
9f06475db098 Move vp6_filter_diag4() from DSPContext to VP56DSPContext.
rbultje
parents:
diff changeset
39 c->vp6_filter_diag4 = ff_vp6_filter_diag4_mmx;
9f06475db098 Move vp6_filter_diag4() from DSPContext to VP56DSPContext.
rbultje
parents:
diff changeset
40 }
9f06475db098 Move vp6_filter_diag4() from DSPContext to VP56DSPContext.
rbultje
parents:
diff changeset
41
9f06475db098 Move vp6_filter_diag4() from DSPContext to VP56DSPContext.
rbultje
parents:
diff changeset
42 if (mm_flags & FF_MM_SSE2) {
9f06475db098 Move vp6_filter_diag4() from DSPContext to VP56DSPContext.
rbultje
parents:
diff changeset
43 c->vp6_filter_diag4 = ff_vp6_filter_diag4_sse2;
9f06475db098 Move vp6_filter_diag4() from DSPContext to VP56DSPContext.
rbultje
parents:
diff changeset
44 }
9f06475db098 Move vp6_filter_diag4() from DSPContext to VP56DSPContext.
rbultje
parents:
diff changeset
45 }
12418
e17840120b80 Move vp6_filter_diag4() x86 SIMD code from inline ASM to YASM. This should
rbultje
parents: 12417
diff changeset
46 #endif
12417
9f06475db098 Move vp6_filter_diag4() from DSPContext to VP56DSPContext.
rbultje
parents:
diff changeset
47 }