FFmpeg
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 
22 #include "libavutil/attributes.h"
23 #include "libavutil/x86/cpu.h"
24 #include "libavfilter/vf_fspp.h"
25 
26 void ff_store_slice_mmx(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);
29 void ff_store_slice2_mmx(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);
32 void ff_mul_thrmat_mmx(int16_t *thr_adr_noq, int16_t *thr_adr, int q);
33 void ff_column_fidct_mmx(int16_t *thr_adr, int16_t *data, int16_t *output, int cnt);
34 void ff_row_idct_mmx(int16_t *workspace, int16_t *output_adr, ptrdiff_t output_stride, int cnt);
35 void ff_row_fdct_mmx(int16_t *data, const uint8_t *pixels, ptrdiff_t line_size, int cnt);
36 
38 {
40 
41  if (EXTERNAL_MMX(cpu_flags)) {
42  s->store_slice = ff_store_slice_mmx;
43  s->store_slice2 = ff_store_slice2_mmx;
44  s->mul_thrmat = ff_mul_thrmat_mmx;
45  s->column_fidct = ff_column_fidct_mmx;
46  s->row_idct = ff_row_idct_mmx;
47  s->row_fdct = ff_row_fdct_mmx;
48  }
49 }
ff_column_fidct_mmx
void ff_column_fidct_mmx(int16_t *thr_adr, int16_t *data, int16_t *output, int cnt)
vf_fspp.h
cpu.h
ff_fspp_init_x86
av_cold void ff_fspp_init_x86(FSPPContext *s)
Definition: vf_fspp_init.c:37
ff_mul_thrmat_mmx
void ff_mul_thrmat_mmx(int16_t *thr_adr_noq, int16_t *thr_adr, int q)
output
filter_frame For filters that do not use the this method is called when a frame is pushed to the filter s input It can be called at any time except in a reentrant way If the input frame is enough to produce output
Definition: filter_design.txt:225
data
const char data[16]
Definition: mxf.c:142
av_get_cpu_flags
int av_get_cpu_flags(void)
Return the flags which specify extensions supported by the CPU.
Definition: cpu.c:95
cpu_flags
static atomic_int cpu_flags
Definition: cpu.c:50
av_cold
#define av_cold
Definition: attributes.h:90
width
#define width
s
#define s(width, name)
Definition: cbs_vp9.c:257
ff_row_idct_mmx
void ff_row_idct_mmx(int16_t *workspace, int16_t *output_adr, ptrdiff_t output_stride, int cnt)
src
#define src
Definition: vp8dsp.c:255
ff_store_slice_mmx
void ff_store_slice_mmx(uint8_t *dst, int16_t *src, ptrdiff_t dst_stride, ptrdiff_t src_stride, ptrdiff_t width, ptrdiff_t height, ptrdiff_t log2_scale)
ff_store_slice2_mmx
void ff_store_slice2_mmx(uint8_t *dst, int16_t *src, ptrdiff_t dst_stride, ptrdiff_t src_stride, ptrdiff_t width, ptrdiff_t height, ptrdiff_t log2_scale)
height
#define height
attributes.h
FSPPContext
Definition: vf_fspp.h:53
ff_row_fdct_mmx
void ff_row_fdct_mmx(int16_t *data, const uint8_t *pixels, ptrdiff_t line_size, int cnt)
EXTERNAL_MMX
#define EXTERNAL_MMX(flags)
Definition: cpu.h:56