FFmpeg
Loading...
Searching...
No Matches
vf_fspp_init.c
Go to the documentation of this file.
1/*
2 * Copyright (c) 2003 Michael Niedermayer <michaelni@gmx.at>
3 * Copyright (C) 2005 Nikolaj Poroshin <porosh3@psu.ru>
4 *
5 * This file is part of FFmpeg.
6 *
7 * FFmpeg is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * FFmpeg is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License along
18 * with FFmpeg; if not, write to the Free Software Foundation, Inc.,
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 */
21
23#include "libavutil/x86/cpu.h"
25
26void ff_store_slice_sse2(uint8_t *dst, int16_t *src,
27 ptrdiff_t dst_stride, ptrdiff_t src_stride,
28 ptrdiff_t width, ptrdiff_t height, ptrdiff_t log2_scale);
29void ff_store_slice2_sse2(uint8_t *dst, int16_t *src,
30 ptrdiff_t dst_stride, ptrdiff_t src_stride,
31 ptrdiff_t width, ptrdiff_t height, ptrdiff_t log2_scale);
32void ff_mul_thrmat_sse2(const int16_t *thr_adr_noq, int16_t *thr_adr, int q);
33void ff_column_fidct_sse2(const int16_t *thr_adr, const int16_t *data, int16_t *output, int cnt);
34void ff_row_idct_mmx(const int16_t *workspace, int16_t *output_adr, ptrdiff_t output_stride, int cnt);
35void ff_row_fdct_mmx(int16_t *data, const uint8_t *pixels, ptrdiff_t line_size, int cnt);
36
38{
40
42 s->row_idct = ff_row_idct_mmx;
43 s->row_fdct = ff_row_fdct_mmx;
44 }
46 s->store_slice = ff_store_slice_sse2;
47 s->store_slice2 = ff_store_slice2_sse2;
48 s->mul_thrmat = ff_mul_thrmat_sse2;
49 s->column_fidct = ff_column_fidct_sse2;
50 }
51}
uint8_t ptrdiff_t const uint8_t ptrdiff_t int intptr_t intptr_t int int16_t * dst
Definition dsp.h:87
#define s(width, name)
Definition cbs_vp9.c:198
Macro definitions for various function/variable attributes.
#define av_cold
Definition attributes.h:117
static atomic_int cpu_flags
Definition cpu.c:56
int av_get_cpu_flags(void)
Return the flags which specify extensions supported by the CPU.
Definition cpu.c:109
#define EXTERNAL_MMX(flags)
Definition cpu.h:50
#define EXTERNAL_SSE2(flags)
Definition cpu.h:53
const char data[16]
Definition mxf.c:149
#define src
Definition vp8dsp.c:248
#define height
Definition dsp.h:89
#define width
Definition dsp.h:89
void ff_column_fidct_sse2(const int16_t *thr_adr, const int16_t *data, int16_t *output, int cnt)
av_cold void ff_fsppdsp_init_x86(FSPPDSPContext *s)
void ff_row_idct_mmx(const int16_t *workspace, int16_t *output_adr, ptrdiff_t output_stride, int cnt)
void ff_row_fdct_mmx(int16_t *data, const uint8_t *pixels, ptrdiff_t line_size, int cnt)
void ff_store_slice2_sse2(uint8_t *dst, int16_t *src, ptrdiff_t dst_stride, ptrdiff_t src_stride, ptrdiff_t width, ptrdiff_t height, ptrdiff_t log2_scale)
void ff_mul_thrmat_sse2(const int16_t *thr_adr_noq, int16_t *thr_adr, int q)
void ff_store_slice_sse2(uint8_t *dst, int16_t *src, ptrdiff_t dst_stride, ptrdiff_t src_stride, ptrdiff_t width, ptrdiff_t height, ptrdiff_t log2_scale)